blob: 71d4fa721db946203536908b5e189ef19e13787e [file] [log] [blame]
Bernhard Walle69ac9cd2008-06-27 13:12:54 +02001/*
2 * include/linux/firmware-map.h:
3 * Copyright (C) 2008 SUSE LINUX Products GmbH
Bernhard Walle97bef7d2009-02-18 14:48:40 -08004 * by Bernhard Walle <bernhard.walle@gmx.de>
Bernhard Walle69ac9cd2008-06-27 13:12:54 +02005 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License v2.0 as published by
8 * the Free Software Foundation
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16#ifndef _LINUX_FIRMWARE_MAP_H
17#define _LINUX_FIRMWARE_MAP_H
18
19#include <linux/list.h>
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020020
21/*
22 * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
23 */
24#ifdef CONFIG_FIRMWARE_MEMMAP
25
Yinghai Lu3b0fde02009-06-16 15:31:16 -070026int firmware_map_add_early(u64 start, u64 end, const char *type);
akpm@linux-foundation.orgd96ae532010-03-05 13:41:58 -080027int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
Yasuaki Ishimatsu46c66c42013-02-22 16:32:56 -080028int firmware_map_remove(u64 start, u64 end, const char *type);
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020029
30#else /* CONFIG_FIRMWARE_MEMMAP */
31
akpm@linux-foundation.orgd96ae532010-03-05 13:41:58 -080032static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020033{
34 return 0;
35}
36
akpm@linux-foundation.orgd96ae532010-03-05 13:41:58 -080037static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020038{
39 return 0;
40}
41
Yasuaki Ishimatsu46c66c42013-02-22 16:32:56 -080042static inline int firmware_map_remove(u64 start, u64 end, const char *type)
43{
44 return 0;
45}
46
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020047#endif /* CONFIG_FIRMWARE_MEMMAP */
48
49#endif /* _LINUX_FIRMWARE_MAP_H */