diff options
Diffstat (limited to 'drivers/pci/hotplug/shpchp.h')
-rw-r--r-- | drivers/pci/hotplug/shpchp.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h index 052c11f14a79..ade8ec145e1e 100644 --- a/drivers/pci/hotplug/shpchp.h +++ b/drivers/pci/hotplug/shpchp.h | |||
@@ -32,8 +32,6 @@ | |||
32 | #include <linux/types.h> | 32 | #include <linux/types.h> |
33 | #include <linux/pci.h> | 33 | #include <linux/pci.h> |
34 | #include <linux/delay.h> | 34 | #include <linux/delay.h> |
35 | #include <asm/semaphore.h> | ||
36 | #include <asm/io.h> | ||
37 | #include "pci_hotplug.h" | 35 | #include "pci_hotplug.h" |
38 | 36 | ||
39 | #if !defined(MODULE) | 37 | #if !defined(MODULE) |
@@ -80,7 +78,7 @@ struct event_info { | |||
80 | struct controller { | 78 | struct controller { |
81 | struct controller *next; | 79 | struct controller *next; |
82 | struct semaphore crit_sect; /* critical section semaphore */ | 80 | struct semaphore crit_sect; /* critical section semaphore */ |
83 | void * hpc_ctlr_handle; /* HPC controller handle */ | 81 | struct php_ctlr_state_s *hpc_ctlr_handle; /* HPC controller handle */ |
84 | int num_slots; /* Number of slots on ctlr */ | 82 | int num_slots; /* Number of slots on ctlr */ |
85 | int slot_num_inc; /* 1 or -1 */ | 83 | int slot_num_inc; /* 1 or -1 */ |
86 | struct pci_dev *pci_dev; | 84 | struct pci_dev *pci_dev; |
@@ -234,7 +232,7 @@ enum ctrl_offsets { | |||
234 | SLOT11 = offsetof(struct ctrl_reg, slot11), | 232 | SLOT11 = offsetof(struct ctrl_reg, slot11), |
235 | SLOT12 = offsetof(struct ctrl_reg, slot12), | 233 | SLOT12 = offsetof(struct ctrl_reg, slot12), |
236 | }; | 234 | }; |
237 | typedef u8(*php_intr_callback_t) (unsigned int change_id, void *instance_id); | 235 | typedef u8(*php_intr_callback_t) (u8 hp_slot, void *instance_id); |
238 | struct php_ctlr_state_s { | 236 | struct php_ctlr_state_s { |
239 | struct php_ctlr_state_s *pnext; | 237 | struct php_ctlr_state_s *pnext; |
240 | struct pci_dev *pci_dev; | 238 | struct pci_dev *pci_dev; |
@@ -347,11 +345,7 @@ enum php_ctlr_type { | |||
347 | ACPI | 345 | ACPI |
348 | }; | 346 | }; |
349 | 347 | ||
350 | int shpc_init( struct controller *ctrl, struct pci_dev *pdev, | 348 | int shpc_init( struct controller *ctrl, struct pci_dev *pdev); |
351 | php_intr_callback_t attention_button_callback, | ||
352 | php_intr_callback_t switch_change_callback, | ||
353 | php_intr_callback_t presence_change_callback, | ||
354 | php_intr_callback_t power_fault_callback); | ||
355 | 349 | ||
356 | int shpc_get_ctlr_slot_config( struct controller *ctrl, | 350 | int shpc_get_ctlr_slot_config( struct controller *ctrl, |
357 | int *num_ctlr_slots, | 351 | int *num_ctlr_slots, |
@@ -364,8 +358,6 @@ struct hpc_ops { | |||
364 | int (*power_on_slot ) (struct slot *slot); | 358 | int (*power_on_slot ) (struct slot *slot); |
365 | int (*slot_enable ) (struct slot *slot); | 359 | int (*slot_enable ) (struct slot *slot); |
366 | int (*slot_disable ) (struct slot *slot); | 360 | int (*slot_disable ) (struct slot *slot); |
367 | int (*enable_all_slots) (struct slot *slot); | ||
368 | int (*pwr_on_all_slots) (struct slot *slot); | ||
369 | int (*set_bus_speed_mode) (struct slot *slot, enum pci_bus_speed speed); | 361 | int (*set_bus_speed_mode) (struct slot *slot, enum pci_bus_speed speed); |
370 | int (*get_power_status) (struct slot *slot, u8 *status); | 362 | int (*get_power_status) (struct slot *slot, u8 *status); |
371 | int (*get_attention_status) (struct slot *slot, u8 *status); | 363 | int (*get_attention_status) (struct slot *slot, u8 *status); |