Blame view
include/acpi/acpi_drivers.h
4.05 KB
1da177e4c Linux-2.6.12-rc2 |
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 Linux-2.6.12-rc2 |
19 20 21 22 23 |
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ #ifndef __ACPI_DRIVERS_H__ #define __ACPI_DRIVERS_H__ |
1da177e4c Linux-2.6.12-rc2 |
24 |
#define ACPI_MAX_STRING 80 |
bdd727991 ACPI: add driver ... |
25 26 27 28 |
/* * Please update drivers/acpi/debug.c and Documentation/acpi/debug.txt * if you add to this list. */ |
1da177e4c Linux-2.6.12-rc2 |
29 |
#define ACPI_BUS_COMPONENT 0x00010000 |
89595b8f2 ACPI: consolidate... |
30 31 32 |
#define ACPI_AC_COMPONENT 0x00020000 #define ACPI_BATTERY_COMPONENT 0x00040000 #define ACPI_BUTTON_COMPONENT 0x00080000 |
44342f9e8 ACPI: fix conflic... |
33 |
#define ACPI_SBS_COMPONENT 0x00100000 |
89595b8f2 ACPI: consolidate... |
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 Linux-2.6.12-rc2 |
38 |
#define ACPI_SYSTEM_COMPONENT 0x02000000 |
89595b8f2 ACPI: consolidate... |
39 40 |
#define ACPI_THERMAL_COMPONENT 0x04000000 #define ACPI_MEMORY_DEVICE_COMPONENT 0x08000000 |
44342f9e8 ACPI: fix conflic... |
41 42 |
#define ACPI_VIDEO_COMPONENT 0x10000000 #define ACPI_PROCESSOR_COMPONENT 0x20000000 |
1da177e4c Linux-2.6.12-rc2 |
43 |
|
8c8eb78f6 ACPI: autoload mo... |
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 Linux-2.6.12-rc2 |
49 |
|
8c8eb78f6 ACPI: autoload mo... |
50 |
#define ACPI_POWER_HID "LNXPOWER" |
b9417f84e ACPI: use LNXCPU,... |
51 |
#define ACPI_PROCESSOR_OBJECT_HID "LNXCPU" |
8c8eb78f6 ACPI: autoload mo... |
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 ACPI: Add autoloa... |
58 |
#define ACPI_DOCK_HID "LNXDOCK" |
222e82ac9 acpi: Support IBM... |
59 60 |
/* Quirk for broken IBM BIOSes */ #define ACPI_SMBUS_IBM_HID "SMBUSIBM" |
8c8eb78f6 ACPI: autoload mo... |
61 |
|
46ec8598f ACPI: support acp... |
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 Linux-2.6.12-rc2 |
71 72 73 |
/* -------------------------------------------------------------------------- PCI -------------------------------------------------------------------------- */ |
1da177e4c Linux-2.6.12-rc2 |
74 75 |
/* ACPI PCI Interrupt Link (pci_link.c) */ |
4be44fcd3 [ACPI] Lindent al... |
76 |
int acpi_irq_penalty_init(void); |
50eca3eb8 [ACPI] ACPICA 200... |
77 78 |
int acpi_pci_link_allocate_irq(acpi_handle handle, int index, int *triggering, int *polarity, char **name); |
87bec66b9 [ACPI] suspend/re... |
79 |
int acpi_pci_link_free_irq(acpi_handle handle); |
1da177e4c Linux-2.6.12-rc2 |
80 |
|
1da177e4c Linux-2.6.12-rc2 |
81 82 83 |
/* ACPI PCI Device Binding (pci_bind.c) */ struct pci_bus; |
2f7bbceb5 ACPI: Introduce a... |
84 |
struct pci_dev *acpi_get_pci_dev(acpi_handle); |
1da177e4c Linux-2.6.12-rc2 |
85 86 |
/* Arch-defined function to add a bus to the system */ |
57283776b ACPI: pci_root: p... |
87 |
struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root); |
6b90f55f6 ACPI / PCI: Stub ... |
88 89 |
#ifdef CONFIG_X86 |
7bc5e3f2b x86/PCI: use host... |
90 |
void pci_acpi_crs_quirks(void); |
6b90f55f6 ACPI / PCI: Stub ... |
91 92 93 |
#else static inline void pci_acpi_crs_quirks(void) { } #endif |
1da177e4c Linux-2.6.12-rc2 |
94 |
|
1da177e4c Linux-2.6.12-rc2 |
95 |
/* -------------------------------------------------------------------------- |
1da177e4c Linux-2.6.12-rc2 |
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 Revert "Revert "A... |
102 103 104 |
/*-------------------------------------------------------------------------- Dock Station -------------------------------------------------------------------------- */ |
1253f7aab dock: introduce .... |
105 |
|
e6c215f15 ACPI / dock: Do n... |
106 |
#ifdef CONFIG_ACPI_DOCK |
3b52b21fa ACPI / dock: Use ... |
107 |
extern int is_dock_device(struct acpi_device *adev); |
c8f7a62cd Revert "Revert "A... |
108 |
#else |
3b52b21fa ACPI / dock: Use ... |
109 |
static inline int is_dock_device(struct acpi_device *adev) |
d94d3dff0 ACPI: bay: fix bu... |
110 111 112 |
{ return 0; } |
e6c215f15 ACPI / dock: Do n... |
113 |
#endif /* CONFIG_ACPI_DOCK */ |
aafbcd165 ACPI: invoke acpi... |
114 |
|
1da177e4c Linux-2.6.12-rc2 |
115 |
#endif /*__ACPI_DRIVERS_H__*/ |