1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef _LINUX_FIRMWARE_MAP_H
17#define _LINUX_FIRMWARE_MAP_H
18
19#include <linux/list.h>
20
21
22
23
24#ifdef CONFIG_FIRMWARE_MEMMAP
25
26int firmware_map_add_early(u64 start, u64 end, const char *type);
27int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
28int firmware_map_remove(u64 start, u64 end, const char *type);
29
30#else
31
32static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
33{
34 return 0;
35}
36
37static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
38{
39 return 0;
40}
41
42static inline int firmware_map_remove(u64 start, u64 end, const char *type)
43{
44 return 0;
45}
46
47#endif
48
49#endif
50