Blame view
include/acpi/acpi_drivers.h
4.05 KB
1da177e4c
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
/* * acpi_drivers.h ($Revision: 31 $) * * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * |
1da177e4c
|
19 20 21 22 23 |
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ #ifndef __ACPI_DRIVERS_H__ #define __ACPI_DRIVERS_H__ |
1da177e4c
|
24 |
#define ACPI_MAX_STRING 80 |
bdd727991
|
25 26 27 28 |
/* * Please update drivers/acpi/debug.c and Documentation/acpi/debug.txt * if you add to this list. */ |
1da177e4c
|
29 |
#define ACPI_BUS_COMPONENT 0x00010000 |
89595b8f2
|
30 31 32 |
#define ACPI_AC_COMPONENT 0x00020000 #define ACPI_BATTERY_COMPONENT 0x00040000 #define ACPI_BUTTON_COMPONENT 0x00080000 |
44342f9e8
|
33 |
#define ACPI_SBS_COMPONENT 0x00100000 |
89595b8f2
|
34 35 36 37 |
#define ACPI_FAN_COMPONENT 0x00200000 #define ACPI_PCI_COMPONENT 0x00400000 #define ACPI_POWER_COMPONENT 0x00800000 #define ACPI_CONTAINER_COMPONENT 0x01000000 |
1da177e4c
|
38 |
#define ACPI_SYSTEM_COMPONENT 0x02000000 |
89595b8f2
|
39 40 |
#define ACPI_THERMAL_COMPONENT 0x04000000 #define ACPI_MEMORY_DEVICE_COMPONENT 0x08000000 |
44342f9e8
|
41 42 |
#define ACPI_VIDEO_COMPONENT 0x10000000 #define ACPI_PROCESSOR_COMPONENT 0x20000000 |
1da177e4c
|
43 |
|
8c8eb78f6
|
44 45 46 47 48 |
/* * _HID definitions * HIDs must conform to ACPI spec(6.1.4) * Linux specific HIDs do not apply to this and begin with LNX: */ |
1da177e4c
|
49 |
|
8c8eb78f6
|
50 |
#define ACPI_POWER_HID "LNXPOWER" |
b9417f84e
|
51 |
#define ACPI_PROCESSOR_OBJECT_HID "LNXCPU" |
8c8eb78f6
|
52 53 54 55 56 57 |
#define ACPI_SYSTEM_HID "LNXSYSTM" #define ACPI_THERMAL_HID "LNXTHERM" #define ACPI_BUTTON_HID_POWERF "LNXPWRBN" #define ACPI_BUTTON_HID_SLEEPF "LNXSLPBN" #define ACPI_VIDEO_HID "LNXVIDEO" #define ACPI_BAY_HID "LNXIOBAY" |
a340af14b
|
58 |
#define ACPI_DOCK_HID "LNXDOCK" |
222e82ac9
|
59 60 |
/* Quirk for broken IBM BIOSes */ #define ACPI_SMBUS_IBM_HID "SMBUSIBM" |
8c8eb78f6
|
61 |
|
46ec8598f
|
62 63 64 65 66 67 68 69 70 |
/* * For fixed hardware buttons, we fabricate acpi_devices with HID * ACPI_BUTTON_HID_POWERF or ACPI_BUTTON_HID_SLEEPF. Fixed hardware * signals only an event; it doesn't supply a notification value. * To allow drivers to treat notifications from fixed hardware the * same as those from real devices, we turn the events into this * notification value. */ #define ACPI_FIXED_HARDWARE_EVENT 0x100 |
1da177e4c
|
71 72 73 |
/* -------------------------------------------------------------------------- PCI -------------------------------------------------------------------------- */ |
1da177e4c
|
74 75 |
/* ACPI PCI Interrupt Link (pci_link.c) */ |
4be44fcd3
|
76 |
int acpi_irq_penalty_init(void); |
50eca3eb8
|
77 78 |
int acpi_pci_link_allocate_irq(acpi_handle handle, int index, int *triggering, int *polarity, char **name); |
87bec66b9
|
79 |
int acpi_pci_link_free_irq(acpi_handle handle); |
1da177e4c
|
80 |
|
1da177e4c
|
81 82 83 |
/* ACPI PCI Device Binding (pci_bind.c) */ struct pci_bus; |
2f7bbceb5
|
84 |
struct pci_dev *acpi_get_pci_dev(acpi_handle); |
1da177e4c
|
85 86 |
/* Arch-defined function to add a bus to the system */ |
57283776b
|
87 |
struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root); |
6b90f55f6
|
88 89 |
#ifdef CONFIG_X86 |
7bc5e3f2b
|
90 |
void pci_acpi_crs_quirks(void); |
6b90f55f6
|
91 92 93 |
#else static inline void pci_acpi_crs_quirks(void) { } #endif |
1da177e4c
|
94 |
|
1da177e4c
|
95 |
/* -------------------------------------------------------------------------- |
1da177e4c
|
96 97 98 99 100 101 |
Processor -------------------------------------------------------------------------- */ #define ACPI_PROCESSOR_LIMIT_NONE 0x00 #define ACPI_PROCESSOR_LIMIT_INCREMENT 0x01 #define ACPI_PROCESSOR_LIMIT_DECREMENT 0x02 |
c8f7a62cd
|
102 103 104 |
/*-------------------------------------------------------------------------- Dock Station -------------------------------------------------------------------------- */ |
1253f7aab
|
105 |
|
e6c215f15
|
106 |
#ifdef CONFIG_ACPI_DOCK |
3b52b21fa
|
107 |
extern int is_dock_device(struct acpi_device *adev); |
c8f7a62cd
|
108 |
#else |
3b52b21fa
|
109 |
static inline int is_dock_device(struct acpi_device *adev) |
d94d3dff0
|
110 111 112 |
{ return 0; } |
e6c215f15
|
113 |
#endif /* CONFIG_ACPI_DOCK */ |
aafbcd165
|
114 |
|
1da177e4c
|
115 |
#endif /*__ACPI_DRIVERS_H__*/ |