blob: cca686b39123dca178f26512e5fcbf0db114a41b [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>
20#include <linux/kobject.h>
21
22/*
23 * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
24 */
25#ifdef CONFIG_FIRMWARE_MEMMAP
26
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020027int firmware_map_add(resource_size_t start, resource_size_t end,
28 const char *type);
Bernhard Walle69ac9cd2008-06-27 13:12:54 +020029int firmware_map_add_early(resource_size_t start, resource_size_t end,
30 const char *type);
31
32#else /* CONFIG_FIRMWARE_MEMMAP */
33
34static inline int firmware_map_add(resource_size_t start, resource_size_t end,
35 const char *type)
36{
37 return 0;
38}
39
40static inline int firmware_map_add_early(resource_size_t start,
41 resource_size_t end, const char *type)
42{
43 return 0;
44}
45
46#endif /* CONFIG_FIRMWARE_MEMMAP */
47
48#endif /* _LINUX_FIRMWARE_MAP_H */