Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * include/linux/firmware-map.h:
0004  *  Copyright (C) 2008 SUSE LINUX Products GmbH
0005  *  by Bernhard Walle <bernhard.walle@gmx.de>
0006  */
0007 #ifndef _LINUX_FIRMWARE_MAP_H
0008 #define _LINUX_FIRMWARE_MAP_H
0009 
0010 #include <linux/list.h>
0011 
0012 /*
0013  * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
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 /* CONFIG_FIRMWARE_MEMMAP */
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 /* CONFIG_FIRMWARE_MEMMAP */
0039 
0040 #endif /* _LINUX_FIRMWARE_MAP_H */