Lines Matching full:controller

2  * Compaq Hot Plug Controller Driver
152 /* offsets to the controller registers based on the above structure layout */
275 struct controller *ctrl;
291 struct controller { struct
292 struct controller *next; argument
295 void __iomem *hpc_reg; /* cookie for our pci controller location */ argument
307 u8 bus; /* bus number for the pci hotplug controller */ argument
396 #define msg_HPC_rev_error "Unsupported revision of the PCI hot plug controller found.\n"
397 #define msg_HPC_non_compaq_or_intel "The PCI hot plug controller is not supported by this driver.\n"
406 /* debugfs functions for the hotplug controller info */
409 extern void cpqhp_create_debugfs_files(struct controller *ctrl);
410 extern void cpqhp_remove_debugfs_files(struct controller *ctrl);
412 /* controller functions */
415 extern int cpqhp_find_available_resources(struct controller *ctrl,
422 extern int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func);
423 extern int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func);
424 extern int cpqhp_hardware_test(struct controller *ctrl, int test_num);
431 extern int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num,
433 extern int cpqhp_save_config(struct controller *ctrl, int busnumber,
435 extern int cpqhp_save_base_addr_length(struct controller *ctrl,
437 extern int cpqhp_save_used_resources(struct controller *ctrl,
439 extern int cpqhp_configure_board(struct controller *ctrl,
441 extern int cpqhp_save_slot_config(struct controller *ctrl,
443 extern int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *func);
448 extern int cpqhp_configure_device(struct controller *ctrl,
455 extern struct controller *cpqhp_ctrl_list;
485 static inline void set_SOGO(struct controller *ctrl) in set_SOGO()
495 static inline void amber_LED_on(struct controller *ctrl, u8 slot) in amber_LED_on()
505 static inline void amber_LED_off(struct controller *ctrl, u8 slot) in amber_LED_off()
515 static inline int read_amber_LED(struct controller *ctrl, u8 slot) in read_amber_LED()
526 static inline void green_LED_on(struct controller *ctrl, u8 slot) in green_LED_on()
535 static inline void green_LED_off(struct controller *ctrl, u8 slot) in green_LED_off()
545 static inline void green_LED_blink(struct controller *ctrl, u8 slot) in green_LED_blink()
556 static inline void slot_disable(struct controller *ctrl, u8 slot) in slot_disable()
566 static inline void slot_enable(struct controller *ctrl, u8 slot) in slot_enable()
576 static inline u8 is_slot_enabled(struct controller *ctrl, u8 slot) in is_slot_enabled()
586 static inline u8 read_slot_enable(struct controller *ctrl) in read_slot_enable()
593 * get_controller_speed - find the current frequency/mode of controller.
595 * @ctrl: controller to get frequency/mode for.
597 * Returns controller speed.
599 static inline u8 get_controller_speed(struct controller *ctrl) in get_controller_speed()
626 * @ctrl: hotplug controller.
631 static inline u8 get_adapter_speed(struct controller *ctrl, u8 hp_slot) in get_adapter_speed()
648 static inline void enable_slot_power(struct controller *ctrl, u8 slot) in enable_slot_power()
657 static inline void disable_slot_power(struct controller *ctrl, u8 slot) in disable_slot_power()
667 static inline int cpq_get_attention_status(struct controller *ctrl, struct slot *slot) in cpq_get_attention_status()
677 static inline int get_slot_enabled(struct controller *ctrl, struct slot *slot) in get_slot_enabled()
687 static inline int cpq_get_latch_status(struct controller *ctrl, in cpq_get_latch_status()
703 static inline int get_presence_status(struct controller *ctrl, in get_presence_status()
719 static inline int wait_for_ctrl_irq(struct controller *ctrl) in wait_for_ctrl_irq()