diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-13 01:43:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-02-13 01:43:25 -0500 |
commit | d9bc125caf592b7d081021f32ce5b717efdf70c8 (patch) | |
tree | 263b7066ba22ddce21db610c0300f6eaac6f2064 /include/acpi/acpi_bus.h | |
parent | 43d78ef2ba5bec26d0315859e8324bfc0be23766 (diff) | |
parent | ec2f9d1331f658433411c58077871e1eef4ee1b4 (diff) |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_spkm3_token.c
net/sunrpc/clnt.c
Merge with mainline and fix conflicts.
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index fdd10953b2b6..0d9f984a60a1 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -59,7 +59,6 @@ acpi_evaluate_reference(acpi_handle handle, | |||
59 | 59 | ||
60 | #define ACPI_BUS_FILE_ROOT "acpi" | 60 | #define ACPI_BUS_FILE_ROOT "acpi" |
61 | extern struct proc_dir_entry *acpi_root_dir; | 61 | extern struct proc_dir_entry *acpi_root_dir; |
62 | extern struct fadt_descriptor acpi_fadt; | ||
63 | 62 | ||
64 | enum acpi_bus_removal_type { | 63 | enum acpi_bus_removal_type { |
65 | ACPI_BUS_REMOVAL_NORMAL = 0, | 64 | ACPI_BUS_REMOVAL_NORMAL = 0, |
@@ -92,13 +91,12 @@ typedef int (*acpi_op_remove) (struct acpi_device * device, int type); | |||
92 | typedef int (*acpi_op_lock) (struct acpi_device * device, int type); | 91 | typedef int (*acpi_op_lock) (struct acpi_device * device, int type); |
93 | typedef int (*acpi_op_start) (struct acpi_device * device); | 92 | typedef int (*acpi_op_start) (struct acpi_device * device); |
94 | typedef int (*acpi_op_stop) (struct acpi_device * device, int type); | 93 | typedef int (*acpi_op_stop) (struct acpi_device * device, int type); |
95 | typedef int (*acpi_op_suspend) (struct acpi_device * device, int state); | 94 | typedef int (*acpi_op_suspend) (struct acpi_device * device, pm_message_t state); |
96 | typedef int (*acpi_op_resume) (struct acpi_device * device, int state); | 95 | typedef int (*acpi_op_resume) (struct acpi_device * device); |
97 | typedef int (*acpi_op_scan) (struct acpi_device * device); | 96 | typedef int (*acpi_op_scan) (struct acpi_device * device); |
98 | typedef int (*acpi_op_bind) (struct acpi_device * device); | 97 | typedef int (*acpi_op_bind) (struct acpi_device * device); |
99 | typedef int (*acpi_op_unbind) (struct acpi_device * device); | 98 | typedef int (*acpi_op_unbind) (struct acpi_device * device); |
100 | typedef int (*acpi_op_match) (struct acpi_device * device, | 99 | typedef int (*acpi_op_shutdown) (struct acpi_device * device); |
101 | struct acpi_driver * driver); | ||
102 | 100 | ||
103 | struct acpi_bus_ops { | 101 | struct acpi_bus_ops { |
104 | u32 acpi_op_add:1; | 102 | u32 acpi_op_add:1; |
@@ -111,7 +109,7 @@ struct acpi_bus_ops { | |||
111 | u32 acpi_op_scan:1; | 109 | u32 acpi_op_scan:1; |
112 | u32 acpi_op_bind:1; | 110 | u32 acpi_op_bind:1; |
113 | u32 acpi_op_unbind:1; | 111 | u32 acpi_op_unbind:1; |
114 | u32 acpi_op_match:1; | 112 | u32 acpi_op_shutdown:1; |
115 | u32 reserved:21; | 113 | u32 reserved:21; |
116 | }; | 114 | }; |
117 | 115 | ||
@@ -126,16 +124,16 @@ struct acpi_device_ops { | |||
126 | acpi_op_scan scan; | 124 | acpi_op_scan scan; |
127 | acpi_op_bind bind; | 125 | acpi_op_bind bind; |
128 | acpi_op_unbind unbind; | 126 | acpi_op_unbind unbind; |
129 | acpi_op_match match; | 127 | acpi_op_shutdown shutdown; |
130 | }; | 128 | }; |
131 | 129 | ||
132 | struct acpi_driver { | 130 | struct acpi_driver { |
133 | struct list_head node; | ||
134 | char name[80]; | 131 | char name[80]; |
135 | char class[80]; | 132 | char class[80]; |
136 | atomic_t references; | ||
137 | char *ids; /* Supported Hardware IDs */ | 133 | char *ids; /* Supported Hardware IDs */ |
138 | struct acpi_device_ops ops; | 134 | struct acpi_device_ops ops; |
135 | struct device_driver drv; | ||
136 | struct module *owner; | ||
139 | }; | 137 | }; |
140 | 138 | ||
141 | /* | 139 | /* |
@@ -185,7 +183,7 @@ struct acpi_device_dir { | |||
185 | 183 | ||
186 | typedef char acpi_bus_id[5]; | 184 | typedef char acpi_bus_id[5]; |
187 | typedef unsigned long acpi_bus_address; | 185 | typedef unsigned long acpi_bus_address; |
188 | typedef char acpi_hardware_id[9]; | 186 | typedef char acpi_hardware_id[15]; |
189 | typedef char acpi_unique_id[9]; | 187 | typedef char acpi_unique_id[9]; |
190 | typedef char acpi_device_name[40]; | 188 | typedef char acpi_device_name[40]; |
191 | typedef char acpi_device_class[20]; | 189 | typedef char acpi_device_class[20]; |
@@ -296,11 +294,14 @@ struct acpi_device { | |||
296 | struct acpi_device_ops ops; | 294 | struct acpi_device_ops ops; |
297 | struct acpi_driver *driver; | 295 | struct acpi_driver *driver; |
298 | void *driver_data; | 296 | void *driver_data; |
299 | struct kobject kobj; | ||
300 | struct device dev; | 297 | struct device dev; |
298 | struct acpi_bus_ops bus_ops; /* workaround for different code path for hotplug */ | ||
299 | enum acpi_bus_removal_type removal_type; /* indicate for different removal type */ | ||
301 | }; | 300 | }; |
302 | 301 | ||
303 | #define acpi_driver_data(d) ((d)->driver_data) | 302 | #define acpi_driver_data(d) ((d)->driver_data) |
303 | #define to_acpi_device(d) container_of(d, struct acpi_device, dev) | ||
304 | #define to_acpi_driver(d) container_of(d, struct acpi_driver, drv) | ||
304 | 305 | ||
305 | /* | 306 | /* |
306 | * Events | 307 | * Events |