]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/firmware-map.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / firmware-map.h
CommitLineData
69ac9cd6
BW
1/*
2 * include/linux/firmware-map.h:
3 * Copyright (C) 2008 SUSE LINUX Products GmbH
97bef7dd 4 * by Bernhard Walle <bernhard.walle@gmx.de>
69ac9cd6
BW
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>
69ac9cd6
BW
20
21/*
22 * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
23 */
24#ifdef CONFIG_FIRMWARE_MEMMAP
25
3b0fde0f 26int firmware_map_add_early(u64 start, u64 end, const char *type);
d96ae530 27int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
46c66c4b 28int firmware_map_remove(u64 start, u64 end, const char *type);
69ac9cd6
BW
29
30#else /* CONFIG_FIRMWARE_MEMMAP */
31
d96ae530 32static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
69ac9cd6
BW
33{
34 return 0;
35}
36
d96ae530 37static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
69ac9cd6
BW
38{
39 return 0;
40}
41
46c66c4b
YI
42static inline int firmware_map_remove(u64 start, u64 end, const char *type)
43{
44 return 0;
45}
46
69ac9cd6
BW
47#endif /* CONFIG_FIRMWARE_MEMMAP */
48
49#endif /* _LINUX_FIRMWARE_MAP_H */