* Based on S666LN-MA66BABCDEFLMNQ-T-OP-240322V1005 * Imported kernel-headers for dummy Change-Id: I639796c449784d67edc65d7f38cf7d7119d117d2 Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
24 lines
417 B
C
24 lines
417 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _MEMREGION_H_
|
|
#define _MEMREGION_H_
|
|
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
|
|
struct memregion_info {
|
|
int target_node;
|
|
};
|
|
|
|
#ifdef CONFIG_MEMREGION
|
|
int memregion_alloc(gfp_t gfp);
|
|
void memregion_free(int id);
|
|
#else
|
|
static inline int memregion_alloc(gfp_t gfp)
|
|
{
|
|
return -ENOMEM;
|
|
}
|
|
static inline void memregion_free(int id)
|
|
{
|
|
}
|
|
#endif
|
|
#endif /* _MEMREGION_H_ */
|