repo: https://github.com/T-head-Semi/linux commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
24 lines
403 B
C
24 lines
403 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;
|
|
}
|
|
void memregion_free(int id)
|
|
{
|
|
}
|
|
#endif
|
|
#endif /* _MEMREGION_H_ */
|