acpi_bus.h (59b42fa01fe2d84f3c3f28ee6f25510820ace35b) | acpi_bus.h (be27b3dcb02335ec093b81053fc8c84b32d3106e) |
---|---|
1/* 2 * acpi_bus.h - ACPI Bus Driver ($Revision: 22 $) 3 * 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 129 unchanged lines hidden (view full) --- 138 139/* 140 * ACPI Hotplug Context 141 * -------------------- 142 */ 143 144struct acpi_hotplug_context { 145 struct acpi_device *self; | 1/* 2 * acpi_bus.h - ACPI Bus Driver ($Revision: 22 $) 3 * 4 * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> 5 * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> 6 * 7 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 * --- 129 unchanged lines hidden (view full) --- 138 139/* 140 * ACPI Hotplug Context 141 * -------------------- 142 */ 143 144struct acpi_hotplug_context { 145 struct acpi_device *self; |
146 int (*event)(struct acpi_device *, u32); | 146 int (*notify)(struct acpi_device *, u32); 147 void (*uevent)(struct acpi_device *, u32); |
147 void (*fixup)(struct acpi_device *); 148}; 149 150/* 151 * ACPI Driver 152 * ----------- 153 */ 154 --- 207 unchanged lines hidden (view full) --- 362 363static inline void acpi_set_device_status(struct acpi_device *adev, u32 sta) 364{ 365 *((u32 *)&adev->status) = sta; 366} 367 368static inline void acpi_set_hp_context(struct acpi_device *adev, 369 struct acpi_hotplug_context *hp, | 148 void (*fixup)(struct acpi_device *); 149}; 150 151/* 152 * ACPI Driver 153 * ----------- 154 */ 155 --- 207 unchanged lines hidden (view full) --- 363 364static inline void acpi_set_device_status(struct acpi_device *adev, u32 sta) 365{ 366 *((u32 *)&adev->status) = sta; 367} 368 369static inline void acpi_set_hp_context(struct acpi_device *adev, 370 struct acpi_hotplug_context *hp, |
370 int (*event)(struct acpi_device *, u32), | 371 int (*notify)(struct acpi_device *, u32), 372 void (*uevent)(struct acpi_device *, u32), |
371 void (*fixup)(struct acpi_device *)) 372{ 373 hp->self = adev; | 373 void (*fixup)(struct acpi_device *)) 374{ 375 hp->self = adev; |
374 hp->event = event; | 376 hp->notify = notify; 377 hp->uevent = uevent; |
375 hp->fixup = fixup; 376 adev->hp = hp; 377} 378 379/* acpi_device.dev.bus == &acpi_bus_type */ 380extern struct bus_type acpi_bus_type; 381 382/* --- 204 unchanged lines hidden --- | 378 hp->fixup = fixup; 379 adev->hp = hp; 380} 381 382/* acpi_device.dev.bus == &acpi_bus_type */ 383extern struct bus_type acpi_bus_type; 384 385/* --- 204 unchanged lines hidden --- |