diff options
Diffstat (limited to 'include/acpi/acpi_drivers.h')
-rw-r--r-- | include/acpi/acpi_drivers.h | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index 579fe191b7e..c1b4e1f882e 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -29,7 +29,6 @@ | |||
29 | #include <linux/acpi.h> | 29 | #include <linux/acpi.h> |
30 | #include <acpi/acpi_bus.h> | 30 | #include <acpi/acpi_bus.h> |
31 | 31 | ||
32 | |||
33 | #define ACPI_MAX_STRING 80 | 32 | #define ACPI_MAX_STRING 80 |
34 | 33 | ||
35 | #define ACPI_BUS_COMPONENT 0x00010000 | 34 | #define ACPI_BUS_COMPONENT 0x00010000 |
@@ -44,60 +43,55 @@ | |||
44 | #define ACPI_BUTTON_HID_POWERF "ACPI_FPB" | 43 | #define ACPI_BUTTON_HID_POWERF "ACPI_FPB" |
45 | #define ACPI_BUTTON_HID_SLEEPF "ACPI_FSB" | 44 | #define ACPI_BUTTON_HID_SLEEPF "ACPI_FSB" |
46 | 45 | ||
47 | |||
48 | /* -------------------------------------------------------------------------- | 46 | /* -------------------------------------------------------------------------- |
49 | PCI | 47 | PCI |
50 | -------------------------------------------------------------------------- */ | 48 | -------------------------------------------------------------------------- */ |
51 | 49 | ||
52 | #ifdef CONFIG_ACPI_PCI | ||
53 | |||
54 | #define ACPI_PCI_COMPONENT 0x00400000 | 50 | #define ACPI_PCI_COMPONENT 0x00400000 |
55 | 51 | ||
56 | /* ACPI PCI Interrupt Link (pci_link.c) */ | 52 | /* ACPI PCI Interrupt Link (pci_link.c) */ |
57 | 53 | ||
58 | int acpi_irq_penalty_init (void); | 54 | int acpi_irq_penalty_init(void); |
59 | int acpi_pci_link_allocate_irq (acpi_handle handle, int index, int *edge_level, | 55 | int acpi_pci_link_allocate_irq(acpi_handle handle, int index, int *edge_level, |
60 | int *active_high_low, char **name); | 56 | int *active_high_low, char **name); |
61 | int acpi_pci_link_free_irq(acpi_handle handle); | 57 | int acpi_pci_link_free_irq(acpi_handle handle); |
62 | 58 | ||
63 | /* ACPI PCI Interrupt Routing (pci_irq.c) */ | 59 | /* ACPI PCI Interrupt Routing (pci_irq.c) */ |
64 | 60 | ||
65 | int acpi_pci_irq_add_prt (acpi_handle handle, int segment, int bus); | 61 | int acpi_pci_irq_add_prt(acpi_handle handle, int segment, int bus); |
66 | void acpi_pci_irq_del_prt (int segment, int bus); | 62 | void acpi_pci_irq_del_prt(int segment, int bus); |
67 | 63 | ||
68 | /* ACPI PCI Device Binding (pci_bind.c) */ | 64 | /* ACPI PCI Device Binding (pci_bind.c) */ |
69 | 65 | ||
70 | struct pci_bus; | 66 | struct pci_bus; |
71 | 67 | ||
72 | acpi_status acpi_get_pci_id (acpi_handle handle, struct acpi_pci_id *id); | 68 | acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id); |
73 | int acpi_pci_bind (struct acpi_device *device); | 69 | int acpi_pci_bind(struct acpi_device *device); |
74 | int acpi_pci_unbind (struct acpi_device *device); | 70 | int acpi_pci_unbind(struct acpi_device *device); |
75 | int acpi_pci_bind_root (struct acpi_device *device, struct acpi_pci_id *id, struct pci_bus *bus); | 71 | int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id, |
72 | struct pci_bus *bus); | ||
76 | 73 | ||
77 | /* Arch-defined function to add a bus to the system */ | 74 | /* Arch-defined function to add a bus to the system */ |
78 | 75 | ||
79 | struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain, int bus); | 76 | struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain, |
80 | 77 | int bus); | |
81 | #endif /*CONFIG_ACPI_PCI*/ | ||
82 | |||
83 | 78 | ||
84 | /* -------------------------------------------------------------------------- | 79 | /* -------------------------------------------------------------------------- |
85 | Power Resource | 80 | Power Resource |
86 | -------------------------------------------------------------------------- */ | 81 | -------------------------------------------------------------------------- */ |
87 | 82 | ||
88 | #ifdef CONFIG_ACPI_POWER | 83 | #ifdef CONFIG_ACPI_POWER |
89 | int acpi_enable_wakeup_device_power (struct acpi_device *dev); | 84 | int acpi_enable_wakeup_device_power(struct acpi_device *dev); |
90 | int acpi_disable_wakeup_device_power (struct acpi_device *dev); | 85 | int acpi_disable_wakeup_device_power(struct acpi_device *dev); |
91 | int acpi_power_get_inferred_state (struct acpi_device *device); | 86 | int acpi_power_get_inferred_state(struct acpi_device *device); |
92 | int acpi_power_transition (struct acpi_device *device, int state); | 87 | int acpi_power_transition(struct acpi_device *device, int state); |
93 | #endif | 88 | #endif |
94 | 89 | ||
95 | |||
96 | /* -------------------------------------------------------------------------- | 90 | /* -------------------------------------------------------------------------- |
97 | Embedded Controller | 91 | Embedded Controller |
98 | -------------------------------------------------------------------------- */ | 92 | -------------------------------------------------------------------------- */ |
99 | #ifdef CONFIG_ACPI_EC | 93 | #ifdef CONFIG_ACPI_EC |
100 | int acpi_ec_ecdt_probe (void); | 94 | int acpi_ec_ecdt_probe(void); |
101 | #endif | 95 | #endif |
102 | 96 | ||
103 | /* -------------------------------------------------------------------------- | 97 | /* -------------------------------------------------------------------------- |