Rev 1627 | Rev 1631 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1627 | Rev 1628 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | struct acpi_device; |
|
- | 2 | ||
- | 3 | ||
- | 4 | /* |
|
- | 5 | * ACPI Driver |
|
- | 6 | * ----------- |
|
- | 7 | */ |
|
- | 8 | ||
- | 9 | typedef int (*acpi_op_add) (struct acpi_device * device); |
|
- | 10 | typedef int (*acpi_op_remove) (struct acpi_device * device, int type); |
|
- | 11 | typedef int (*acpi_op_start) (struct acpi_device * device); |
|
- | 12 | //typedef int (*acpi_op_suspend) (struct acpi_device * device, |
|
- | 13 | // pm_message_t state); |
|
- | 14 | typedef int (*acpi_op_resume) (struct acpi_device * device); |
|
- | 15 | typedef int (*acpi_op_bind) (struct acpi_device * device); |
|
- | 16 | typedef int (*acpi_op_unbind) (struct acpi_device * device); |
|
- | 17 | typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); |
|
- | 18 | ||
- | 19 | struct acpi_bus_ops { |
|
- | 20 | u32 acpi_op_add:1; |
|
- | 21 | u32 acpi_op_start:1; |
|
- | 22 | }; |
|
- | 23 | ||
- | 24 | struct acpi_device_ops { |
|
- | 25 | acpi_op_add add; |
|
- | 26 | acpi_op_remove remove; |
|
- | 27 | acpi_op_start start; |
|
- | 28 | // acpi_op_suspend suspend; |
|
- | 29 | acpi_op_resume resume; |
|
- | 30 | acpi_op_bind bind; |
|
- | 31 | acpi_op_unbind unbind; |
|
- | 32 | acpi_op_notify notify; |
|
- | 33 | }; |
|
Line 1... | Line 34... | ||
1 | struct resource_list { |
34 | |
2 | struct resource_list *next; |
35 | struct resource_list { |
3 | struct resource *res; |
36 | struct resource_list *next; |
4 | // struct pci_dev *dev; |
37 | struct resource *res; |
Line 34... | Line 67... | ||
34 | #define ACPI_SMBUS_IBM_HID "SMBUSIBM" |
67 | /* Quirk for broken IBM BIOSes */ |
35 | 68 | #define ACPI_SMBUS_IBM_HID "SMBUSIBM" |
|
36 | 69 | ||
Line 37... | Line -... | ||
37 | struct acpi_bus_ops |
- | |
38 | { |
- | |
39 | u32_t acpi_op_add:1; |
- | |
40 | u32_t acpi_op_start:1; |
- | |
41 | }; |
- | |
42 | - | ||
Line 43... | Line 70... | ||
43 | 70 | ||
44 | #define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ |
71 | |
Line 45... | Line 72... | ||
45 | /* to workaround crosscompile issues */ |
72 | #define ACPI_ID_LEN 16 /* only 9 bytes needed here, 16 bytes are used */ |
Line 104... | Line 131... | ||
104 | // struct acpi_device_wakeup wakeup; |
131 | // struct acpi_device_power power; |
105 | // struct acpi_device_perf performance; |
132 | // struct acpi_device_wakeup wakeup; |
106 | // struct acpi_device_dir dir; |
133 | // struct acpi_device_perf performance; |
107 | // struct acpi_device_ops ops; |
134 | // struct acpi_device_dir dir; |
108 | // struct acpi_driver *driver; |
135 | struct acpi_device_ops ops; |
109 | void *driver_data; |
136 | // struct acpi_driver *driver; |
110 | // struct device dev; |
137 | void *driver_data; |
111 | struct acpi_bus_ops bus_ops; /* workaround for different code path for hotplug */ |
138 | // struct device dev; |
112 | // enum acpi_bus_removal_type removal_type; /* indicate for different removal type */ |
139 | struct acpi_bus_ops bus_ops; /* workaround for different code path for hotplug */ |
113 | }; |
140 | // enum acpi_bus_removal_type removal_type; /* indicate for different removal type */ |
114 | 141 | }; |
|
115 | 142 | ||
Line -... | Line 143... | ||
- | 143 | ||
- | 144 | struct acpi_pci_root { |
|
- | 145 | struct list_head node; |
|
- | 146 | struct acpi_device * device; |
|
- | 147 | struct acpi_pci_id id; |
|
- | 148 | struct pci_bus *bus; |
|
- | 149 | u16 segment; |
|
- | 150 | struct resource secondary; /* downstream bus range */ |
|
- | 151 | ||
- | 152 | }; |
|
Line 116... | Line 153... | ||
116 | 153 | ||
117 | #define acpi_device_bid(d) ((d)->pnp.bus_id) |
154 | |
118 | #define acpi_device_adr(d) ((d)->pnp.bus_address) |
155 | #define acpi_device_bid(d) ((d)->pnp.bus_id) |
119 | char *acpi_device_hid(struct acpi_device *device); |
156 | #define acpi_device_adr(d) ((d)->pnp.bus_address) |
Line 124... | Line 161... | ||
124 | const struct acpi_device_ids *ids); |
161 | int acpi_match_device_ids(struct acpi_device *device, |
125 | 162 | const struct acpi_device_ids *ids); |
|
Line 126... | Line 163... | ||
126 | int acpi_pci_irq_add_prt(ACPI_HANDLE handle, struct pci_bus *bus); |
163 | |
- | 164 | int acpi_pci_irq_add_prt(ACPI_HANDLE handle, struct pci_bus *bus); |
|
- | 165 | int acpi_pci_bind_root(struct acpi_device *device); |
|
- | 166 | struct pci_dev *acpi_get_pci_dev(ACPI_HANDLE handle); |
|
- | 167 | int acpi_is_root_bridge(ACPI_HANDLE handle); |