aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpqphp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/cpqphp.h')
-rw-r--r--drivers/pci/hotplug/cpqphp.h70
1 files changed, 32 insertions, 38 deletions
diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h
index d8ffc7366801..516b87738b6e 100644
--- a/drivers/pci/hotplug/cpqphp.h
+++ b/drivers/pci/hotplug/cpqphp.h
@@ -404,50 +404,44 @@ struct resource_lists {
404 404
405 405
406/* debugfs functions for the hotplug controller info */ 406/* debugfs functions for the hotplug controller info */
407extern void cpqhp_initialize_debugfs(void); 407void cpqhp_initialize_debugfs(void);
408extern void cpqhp_shutdown_debugfs(void); 408void cpqhp_shutdown_debugfs(void);
409extern void cpqhp_create_debugfs_files(struct controller *ctrl); 409void cpqhp_create_debugfs_files(struct controller *ctrl);
410extern void cpqhp_remove_debugfs_files(struct controller *ctrl); 410void cpqhp_remove_debugfs_files(struct controller *ctrl);
411 411
412/* controller functions */ 412/* controller functions */
413extern void cpqhp_pushbutton_thread(unsigned long event_pointer); 413void cpqhp_pushbutton_thread(unsigned long event_pointer);
414extern irqreturn_t cpqhp_ctrl_intr(int IRQ, void *data); 414irqreturn_t cpqhp_ctrl_intr(int IRQ, void *data);
415extern int cpqhp_find_available_resources(struct controller *ctrl, 415int cpqhp_find_available_resources(struct controller *ctrl,
416 void __iomem *rom_start); 416 void __iomem *rom_start);
417extern int cpqhp_event_start_thread(void); 417int cpqhp_event_start_thread(void);
418extern void cpqhp_event_stop_thread(void); 418void cpqhp_event_stop_thread(void);
419extern struct pci_func *cpqhp_slot_create(unsigned char busnumber); 419struct pci_func *cpqhp_slot_create(unsigned char busnumber);
420extern struct pci_func *cpqhp_slot_find(unsigned char bus, unsigned char device, 420struct pci_func *cpqhp_slot_find(unsigned char bus, unsigned char device,
421 unsigned char index); 421 unsigned char index);
422extern int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func); 422int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func);
423extern int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func); 423int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func);
424extern int cpqhp_hardware_test(struct controller *ctrl, int test_num); 424int cpqhp_hardware_test(struct controller *ctrl, int test_num);
425 425
426/* resource functions */ 426/* resource functions */
427extern int cpqhp_resource_sort_and_combine (struct pci_resource **head); 427int cpqhp_resource_sort_and_combine (struct pci_resource **head);
428 428
429/* pci functions */ 429/* pci functions */
430extern int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num); 430int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num);
431extern int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num, 431int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num,
432 u8 slot); 432 u8 slot);
433extern int cpqhp_save_config(struct controller *ctrl, int busnumber, 433int cpqhp_save_config(struct controller *ctrl, int busnumber, int is_hot_plug);
434 int is_hot_plug); 434int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func);
435extern int cpqhp_save_base_addr_length(struct controller *ctrl, 435int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func);
436 struct pci_func *func); 436int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func);
437extern int cpqhp_save_used_resources(struct controller *ctrl, 437int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot);
438 struct pci_func *func); 438int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *func);
439extern int cpqhp_configure_board(struct controller *ctrl, 439void cpqhp_destroy_board_resources(struct pci_func *func);
440 struct pci_func *func); 440int cpqhp_return_board_resources(struct pci_func *func,
441extern int cpqhp_save_slot_config(struct controller *ctrl, 441 struct resource_lists *resources);
442 struct pci_func *new_slot); 442void cpqhp_destroy_resource_list(struct resource_lists *resources);
443extern int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *func); 443int cpqhp_configure_device(struct controller *ctrl, struct pci_func *func);
444extern void cpqhp_destroy_board_resources(struct pci_func *func); 444int cpqhp_unconfigure_device(struct pci_func *func);
445extern int cpqhp_return_board_resources (struct pci_func *func,
446 struct resource_lists *resources);
447extern void cpqhp_destroy_resource_list(struct resource_lists *resources);
448extern int cpqhp_configure_device(struct controller *ctrl,
449 struct pci_func *func);
450extern int cpqhp_unconfigure_device(struct pci_func *func);
451 445
452/* Global variables */ 446/* Global variables */
453extern int cpqhp_debug; 447extern int cpqhp_debug;