1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun * include/linux/firmware-map.h:
4*4882a593Smuzhiyun * Copyright (C) 2008 SUSE LINUX Products GmbH
5*4882a593Smuzhiyun * by Bernhard Walle <bernhard.walle@gmx.de>
6*4882a593Smuzhiyun */
7*4882a593Smuzhiyun #ifndef _LINUX_FIRMWARE_MAP_H
8*4882a593Smuzhiyun #define _LINUX_FIRMWARE_MAP_H
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun #include <linux/list.h>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun /*
13*4882a593Smuzhiyun * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
14*4882a593Smuzhiyun */
15*4882a593Smuzhiyun #ifdef CONFIG_FIRMWARE_MEMMAP
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun int firmware_map_add_early(u64 start, u64 end, const char *type);
18*4882a593Smuzhiyun int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
19*4882a593Smuzhiyun int firmware_map_remove(u64 start, u64 end, const char *type);
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun #else /* CONFIG_FIRMWARE_MEMMAP */
22*4882a593Smuzhiyun
firmware_map_add_early(u64 start,u64 end,const char * type)23*4882a593Smuzhiyun static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
24*4882a593Smuzhiyun {
25*4882a593Smuzhiyun return 0;
26*4882a593Smuzhiyun }
27*4882a593Smuzhiyun
firmware_map_add_hotplug(u64 start,u64 end,const char * type)28*4882a593Smuzhiyun static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
29*4882a593Smuzhiyun {
30*4882a593Smuzhiyun return 0;
31*4882a593Smuzhiyun }
32*4882a593Smuzhiyun
firmware_map_remove(u64 start,u64 end,const char * type)33*4882a593Smuzhiyun static inline int firmware_map_remove(u64 start, u64 end, const char *type)
34*4882a593Smuzhiyun {
35*4882a593Smuzhiyun return 0;
36*4882a593Smuzhiyun }
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun #endif /* CONFIG_FIRMWARE_MEMMAP */
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun #endif /* _LINUX_FIRMWARE_MAP_H */
41