0001
0002
0003
0004
0005
0006
0007 #ifndef _LINUX_FIRMWARE_MAP_H
0008 #define _LINUX_FIRMWARE_MAP_H
0009
0010 #include <linux/list.h>
0011
0012
0013
0014
0015 #ifdef CONFIG_FIRMWARE_MEMMAP
0016
0017 int firmware_map_add_early(u64 start, u64 end, const char *type);
0018 int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
0019 int firmware_map_remove(u64 start, u64 end, const char *type);
0020
0021 #else
0022
0023 static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
0024 {
0025 return 0;
0026 }
0027
0028 static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
0029 {
0030 return 0;
0031 }
0032
0033 static inline int firmware_map_remove(u64 start, u64 end, const char *type)
0034 {
0035 return 0;
0036 }
0037
0038 #endif
0039
0040 #endif