.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * acpi_drivers.h ($Revision: 31 $) |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> |
---|
5 | 6 | * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> |
---|
6 | | - * |
---|
7 | | - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation; either version 2 of the License, or (at |
---|
12 | | - * your option) any later version. |
---|
13 | | - * |
---|
14 | | - * This program is distributed in the hope that it will be useful, but |
---|
15 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
17 | | - * General Public License for more details. |
---|
18 | | - * |
---|
19 | | - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
20 | 7 | */ |
---|
21 | 8 | |
---|
22 | 9 | #ifndef __ACPI_DRIVERS_H__ |
---|
.. | .. |
---|
25 | 12 | #define ACPI_MAX_STRING 80 |
---|
26 | 13 | |
---|
27 | 14 | /* |
---|
28 | | - * Please update drivers/acpi/debug.c and Documentation/acpi/debug.txt |
---|
| 15 | + * Please update drivers/acpi/debug.c and Documentation/firmware-guide/acpi/debug.rst |
---|
29 | 16 | * if you add to this list. |
---|
30 | 17 | */ |
---|
31 | 18 | #define ACPI_BUS_COMPONENT 0x00010000 |
---|
.. | .. |
---|
88 | 75 | |
---|
89 | 76 | struct pci_bus; |
---|
90 | 77 | |
---|
| 78 | +#ifdef CONFIG_PCI |
---|
91 | 79 | struct pci_dev *acpi_get_pci_dev(acpi_handle); |
---|
| 80 | +#else |
---|
| 81 | +static inline struct pci_dev *acpi_get_pci_dev(acpi_handle handle) |
---|
| 82 | +{ |
---|
| 83 | + return NULL; |
---|
| 84 | +} |
---|
| 85 | +#endif |
---|
92 | 86 | |
---|
93 | 87 | /* Arch-defined function to add a bus to the system */ |
---|
94 | 88 | |
---|