mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 01:31:36 -04:00
029a1760dc
Signed-off-by: suwanghw <wangsu14@huawei.com>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2012-2022 Huawei Technologies Co., Ltd.
|
|
* Description: memory init, register for mailbox pool.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef STATIC_ION_MEM_H
|
|
#define STATIC_ION_MEM_H
|
|
#include <linux/types.h>
|
|
|
|
#define ION_MEM_MAX_SIZE 10
|
|
|
|
struct register_ion_mem_tag {
|
|
uint32_t size;
|
|
uint64_t memaddr[ION_MEM_MAX_SIZE];
|
|
uint32_t memsize[ION_MEM_MAX_SIZE];
|
|
uint32_t memtag[ION_MEM_MAX_SIZE];
|
|
};
|
|
|
|
enum static_mem_tag {
|
|
MEM_TAG_MIN = 0,
|
|
PP_MEM_TAG = 1,
|
|
PRI_PP_MEM_TAG = 2,
|
|
PT_MEM_TAG = 3,
|
|
MEM_TAG_MAX,
|
|
};
|
|
|
|
#ifdef CONFIG_STATIC_ION
|
|
int tc_ns_register_ion_mem(void);
|
|
#else
|
|
static inline int tc_ns_register_ion_mem(void)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif |