diff options
author | rajesh.shah@intel.com <rajesh.shah@intel.com> | 2005-10-13 15:05:42 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 18:37:00 -0400 |
commit | ee138334d5eb5ca662b2d69228420c1ccc051e0e (patch) | |
tree | 6c8f0d28ab39f4ea9abb0e9986f8c9a3fca6f470 /drivers/pci/hotplug/shpchp.h | |
parent | 2178bfad9ccb0cbeb79599dd1dc349dd4567aa49 (diff) |
[PATCH] shpchp: miscellaneous cleanups
Remove un-necessary header includes, remove dead code, remove
some type casts, receive function return in the correct data
type...
Signed-off-by: Rajesh Shah <rajesh.shah@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 052c11f14a7..ade8ec145e1 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); |