Linux 3.9-rc4
[linux-2.6/cjktty.git] / include / linux / firmware-map.h
blob71d4fa721db946203536908b5e189ef19e13787e
1 /*
2 * include/linux/firmware-map.h:
3 * Copyright (C) 2008 SUSE LINUX Products GmbH
4 * by Bernhard Walle <bernhard.walle@gmx.de>
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
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.
16 #ifndef _LINUX_FIRMWARE_MAP_H
17 #define _LINUX_FIRMWARE_MAP_H
19 #include <linux/list.h>
22 * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
24 #ifdef CONFIG_FIRMWARE_MEMMAP
26 int firmware_map_add_early(u64 start, u64 end, const char *type);
27 int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
28 int firmware_map_remove(u64 start, u64 end, const char *type);
30 #else /* CONFIG_FIRMWARE_MEMMAP */
32 static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
34 return 0;
37 static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
39 return 0;
42 static inline int firmware_map_remove(u64 start, u64 end, const char *type)
44 return 0;
47 #endif /* CONFIG_FIRMWARE_MEMMAP */
49 #endif /* _LINUX_FIRMWARE_MAP_H */