blob: 3e1077e99002ec4bc7689a93202d6ca18a433cdf [file] [log] [blame]
Thomas Gleixnerd9523672019-05-29 07:18:01 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Bernhard Walle69ac9cd2008-06-27 13:12:54 +02002/*
3 * include/linux/firmware-map.h:
4 * Copyright (C) 2008 SUSE LINUX Products GmbH
Bernhard Walle97bef7d2009-02-18 14:48:40 -08005 * by Bernhard Walle <bernhard.walle@gmx.de>
Bernhard Walle69ac9cd2008-06-27 13:12:54 +02006 */
7#ifndef _LINUX_FIRMWARE_MAP_H
8#define _LINUX_FIRMWARE_MAP_H
9
10#include <linux/list.h>
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020011
12/*
13 * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
14 */
15#ifdef CONFIG_FIRMWARE_MEMMAP
16
Yinghai Lu3b0fde02009-06-16 15:31:16 -070017int firmware_map_add_early(u64 start, u64 end, const char *type);
akpm@linux-foundation.orgd96ae532010-03-05 13:41:58 -080018int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
Yasuaki Ishimatsu46c66c42013-02-22 16:32:56 -080019int firmware_map_remove(u64 start, u64 end, const char *type);
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020020
21#else /* CONFIG_FIRMWARE_MEMMAP */
22
akpm@linux-foundation.orgd96ae532010-03-05 13:41:58 -080023static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020024{
25 return 0;
26}
27
akpm@linux-foundation.orgd96ae532010-03-05 13:41:58 -080028static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020029{
30 return 0;
31}
32
Yasuaki Ishimatsu46c66c42013-02-22 16:32:56 -080033static inline int firmware_map_remove(u64 start, u64 end, const char *type)
34{
35 return 0;
36}
37
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020038#endif /* CONFIG_FIRMWARE_MEMMAP */
39
40#endif /* _LINUX_FIRMWARE_MAP_H */