Bernhard Walle | 69ac9cd | 2008-06-27 13:12:54 +0200 | [diff] [blame] | 1 | /* |
| 2 | * include/linux/firmware-map.h: |
| 3 | * Copyright (C) 2008 SUSE LINUX Products GmbH |
Bernhard Walle | 97bef7d | 2009-02-18 14:48:40 -0800 | [diff] [blame] | 4 | * by Bernhard Walle <bernhard.walle@gmx.de> |
Bernhard Walle | 69ac9cd | 2008-06-27 13:12:54 +0200 | [diff] [blame] | 5 | * |
| 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 Walle | 69ac9cd | 2008-06-27 13:12:54 +0200 | [diff] [blame] | 20 | |
| 21 | /* |
| 22 | * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled |
| 23 | */ |
| 24 | #ifdef CONFIG_FIRMWARE_MEMMAP |
| 25 | |
Yinghai Lu | 3b0fde0 | 2009-06-16 15:31:16 -0700 | [diff] [blame] | 26 | int firmware_map_add_early(u64 start, u64 end, const char *type); |
akpm@linux-foundation.org | d96ae53 | 2010-03-05 13:41:58 -0800 | [diff] [blame] | 27 | int firmware_map_add_hotplug(u64 start, u64 end, const char *type); |
Bernhard Walle | 69ac9cd | 2008-06-27 13:12:54 +0200 | [diff] [blame] | 28 | |
| 29 | #else /* CONFIG_FIRMWARE_MEMMAP */ |
| 30 | |
akpm@linux-foundation.org | d96ae53 | 2010-03-05 13:41:58 -0800 | [diff] [blame] | 31 | static inline int firmware_map_add_early(u64 start, u64 end, const char *type) |
Bernhard Walle | 69ac9cd | 2008-06-27 13:12:54 +0200 | [diff] [blame] | 32 | { |
| 33 | return 0; |
| 34 | } |
| 35 | |
akpm@linux-foundation.org | d96ae53 | 2010-03-05 13:41:58 -0800 | [diff] [blame] | 36 | static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type) |
Bernhard Walle | 69ac9cd | 2008-06-27 13:12:54 +0200 | [diff] [blame] | 37 | { |
| 38 | return 0; |
| 39 | } |
| 40 | |
| 41 | #endif /* CONFIG_FIRMWARE_MEMMAP */ |
| 42 | |
| 43 | #endif /* _LINUX_FIRMWARE_MAP_H */ |