diff options
Diffstat (limited to 'drivers/pci/hotplug/acpiphp.h')
-rw-r--r-- | drivers/pci/hotplug/acpiphp.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h index 885838a2e93..de9df80ffb5 100644 --- a/drivers/pci/hotplug/acpiphp.h +++ b/drivers/pci/hotplug/acpiphp.h | |||
@@ -60,10 +60,7 @@ struct acpiphp_slot; | |||
60 | * struct slot - slot information for each *physical* slot | 60 | * struct slot - slot information for each *physical* slot |
61 | */ | 61 | */ |
62 | struct slot { | 62 | struct slot { |
63 | u8 number; | ||
64 | struct hotplug_slot *hotplug_slot; | 63 | struct hotplug_slot *hotplug_slot; |
65 | struct list_head slot_list; | ||
66 | |||
67 | struct acpiphp_slot *acpi_slot; | 64 | struct acpiphp_slot *acpi_slot; |
68 | }; | 65 | }; |
69 | 66 | ||
@@ -119,9 +116,9 @@ struct acpiphp_slot { | |||
119 | struct acpiphp_bridge *bridge; /* parent */ | 116 | struct acpiphp_bridge *bridge; /* parent */ |
120 | struct list_head funcs; /* one slot may have different | 117 | struct list_head funcs; /* one slot may have different |
121 | objects (i.e. for each function) */ | 118 | objects (i.e. for each function) */ |
119 | struct slot *slot; | ||
122 | struct mutex crit_sect; | 120 | struct mutex crit_sect; |
123 | 121 | ||
124 | u32 id; /* slot id (serial #) for hotplug core */ | ||
125 | u8 device; /* pci device# */ | 122 | u8 device; /* pci device# */ |
126 | 123 | ||
127 | u32 sun; /* ACPI _SUN (slot unique number) */ | 124 | u32 sun; /* ACPI _SUN (slot unique number) */ |
@@ -229,12 +226,13 @@ struct acpiphp_dock_station { | |||
229 | /* acpiphp_core.c */ | 226 | /* acpiphp_core.c */ |
230 | extern int acpiphp_register_attention(struct acpiphp_attention_info*info); | 227 | extern int acpiphp_register_attention(struct acpiphp_attention_info*info); |
231 | extern int acpiphp_unregister_attention(struct acpiphp_attention_info *info); | 228 | extern int acpiphp_unregister_attention(struct acpiphp_attention_info *info); |
229 | extern int acpiphp_register_hotplug_slot(struct acpiphp_slot *slot); | ||
230 | extern void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot); | ||
232 | 231 | ||
233 | /* acpiphp_glue.c */ | 232 | /* acpiphp_glue.c */ |
234 | extern int acpiphp_glue_init (void); | 233 | extern int acpiphp_glue_init (void); |
235 | extern void acpiphp_glue_exit (void); | 234 | extern void acpiphp_glue_exit (void); |
236 | extern int acpiphp_get_num_slots (void); | 235 | extern int acpiphp_get_num_slots (void); |
237 | extern struct acpiphp_slot *get_slot_from_id (int id); | ||
238 | typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data); | 236 | typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data); |
239 | void handle_hotplug_event_func(acpi_handle, u32, void*); | 237 | void handle_hotplug_event_func(acpi_handle, u32, void*); |
240 | 238 | ||