|
Linux Kernel
3.7.1
|
#include <linux/types.h>#include <linux/pci.h>#include <linux/pci_hotplug.h>#include <linux/delay.h>#include <linux/sched.h>#include <linux/mutex.h>#include <linux/workqueue.h>Go to the source code of this file.
Data Structures | |
| struct | slot |
| struct | event_info |
| struct | controller |
| struct | ctrl_reg |
| struct | hpc_ops |
Enumerations | |
| enum | ctrl_offsets { SLOT_RST = offsetof(struct ctrl_reg, slot_RST), SLOT_ENABLE = offsetof(struct ctrl_reg, slot_enable), MISC = offsetof(struct ctrl_reg, misc), LED_CONTROL = offsetof(struct ctrl_reg, led_control), INT_INPUT_CLEAR = offsetof(struct ctrl_reg, int_input_clear), INT_MASK = offsetof(struct ctrl_reg, int_mask), CTRL_RESERVED0 = offsetof(struct ctrl_reg, reserved0), CTRL_RESERVED1 = offsetof(struct ctrl_reg, reserved1), CTRL_RESERVED2 = offsetof(struct ctrl_reg, reserved1), GEN_OUTPUT_AB = offsetof(struct ctrl_reg, gen_output_AB), NON_INT_INPUT = offsetof(struct ctrl_reg, non_int_input), CTRL_RESERVED3 = offsetof(struct ctrl_reg, reserved3), CTRL_RESERVED4 = offsetof(struct ctrl_reg, reserved4), CTRL_RESERVED5 = offsetof(struct ctrl_reg, reserved5), CTRL_RESERVED6 = offsetof(struct ctrl_reg, reserved6), CTRL_RESERVED7 = offsetof(struct ctrl_reg, reserved7), CTRL_RESERVED8 = offsetof(struct ctrl_reg, reserved8), SLOT_MASK = offsetof(struct ctrl_reg, slot_mask), CTRL_RESERVED9 = offsetof(struct ctrl_reg, reserved9), CTRL_RESERVED10 = offsetof(struct ctrl_reg, reserved10), CTRL_RESERVED11 = offsetof(struct ctrl_reg, reserved11), SLOT_SERR = offsetof(struct ctrl_reg, slot_SERR), SLOT_POWER = offsetof(struct ctrl_reg, slot_power), NEXT_CURR_FREQ = offsetof(struct ctrl_reg, next_curr_freq), RESET_FREQ_MODE = offsetof(struct ctrl_reg, reset_freq_mode), BASE_OFFSET = offsetof(struct ctrl_reg, base_offset), SLOT_AVAIL1 = offsetof(struct ctrl_reg, slot_avail1), SLOT_AVAIL2 = offsetof(struct ctrl_reg, slot_avail2), SLOT_CONFIG = offsetof(struct ctrl_reg, slot_config), SEC_BUS_CONFIG = offsetof(struct ctrl_reg, sec_bus_config), MSI_CTRL = offsetof(struct ctrl_reg, msi_ctrl), PROG_INTERFACE = offsetof(struct ctrl_reg, prog_interface), CMD = offsetof(struct ctrl_reg, cmd), CMD_STATUS = offsetof(struct ctrl_reg, cmd_status), INTR_LOC = offsetof(struct ctrl_reg, intr_loc), SERR_LOC = offsetof(struct ctrl_reg, serr_loc), SERR_INTR_ENABLE = offsetof(struct ctrl_reg, serr_intr_enable), SLOT1 = offsetof(struct ctrl_reg, slot1) } |
Functions | |
| int __must_check | shpchp_create_ctrl_files (struct controller *ctrl) |
| void | shpchp_remove_ctrl_files (struct controller *ctrl) |
| int | shpchp_sysfs_enable_slot (struct slot *slot) |
| int | shpchp_sysfs_disable_slot (struct slot *slot) |
| u8 | shpchp_handle_attention_button (u8 hp_slot, struct controller *ctrl) |
| u8 | shpchp_handle_switch_change (u8 hp_slot, struct controller *ctrl) |
| u8 | shpchp_handle_presence_change (u8 hp_slot, struct controller *ctrl) |
| u8 | shpchp_handle_power_fault (u8 hp_slot, struct controller *ctrl) |
| int | shpchp_configure_device (struct slot *p_slot) |
| int | shpchp_unconfigure_device (struct slot *p_slot) |
| void | cleanup_slots (struct controller *ctrl) |
| void | shpchp_queue_pushbutton_work (struct work_struct *work) |
| int | shpc_init (struct controller *ctrl, struct pci_dev *pdev) |
| struct ctrl_reg | __attribute__ ((packed)) |
Variables | |
| bool | shpchp_poll_mode |
| int | shpchp_poll_time |
| bool | shpchp_debug |
| struct workqueue_struct * | shpchp_wq |
| struct workqueue_struct * | shpchp_ordered_wq |
| volatile u32 | base_offset |
| volatile u32 | slot_avail1 |
| volatile u32 | slot_avail2 |
| volatile u32 | slot_config |
| volatile u16 | sec_bus_config |
| volatile u8 | msi_ctrl |
| volatile u8 | prog_interface |
| volatile u16 | cmd |
| volatile u16 | cmd_status |
| volatile u32 | intr_loc |
| volatile u32 | serr_loc |
| volatile u32 | serr_intr_enable |
| volatile u32 | slot1 |
| enum ctrl_offsets | __attribute__ |
| #define dbg | ( | format, | |
| arg... | |||
| ) |
| #define warn | ( | format, | |
| arg... | |||
| ) | printk(KERN_WARNING "%s: " format, MY_NAME , ## arg) |
| enum ctrl_offsets |
|
read |
Definition at line 171 of file esd_usb2.c.
| void cleanup_slots | ( | struct controller * | ctrl | ) |
Definition at line 173 of file shpchp_core.c.
| int shpc_init | ( | struct controller * | ctrl, |
| struct pci_dev * | pdev | ||
| ) |
Definition at line 936 of file shpchp_hpc.c.
Definition at line 37 of file shpchp_pci.c.
| int __must_check shpchp_create_ctrl_files | ( | struct controller * | ctrl | ) |
Definition at line 88 of file shpchp_sysfs.c.
| u8 shpchp_handle_attention_button | ( | u8 | hp_slot, |
| struct controller * | ctrl | ||
| ) |
Definition at line 59 of file shpchp_ctrl.c.
| u8 shpchp_handle_power_fault | ( | u8 | hp_slot, |
| struct controller * | ctrl | ||
| ) |
Definition at line 155 of file shpchp_ctrl.c.
| u8 shpchp_handle_presence_change | ( | u8 | hp_slot, |
| struct controller * | ctrl | ||
| ) |
Definition at line 120 of file shpchp_ctrl.c.
| u8 shpchp_handle_switch_change | ( | u8 | hp_slot, |
| struct controller * | ctrl | ||
| ) |
Definition at line 82 of file shpchp_ctrl.c.
| void shpchp_queue_pushbutton_work | ( | struct work_struct * | work | ) |
Definition at line 430 of file shpchp_ctrl.c.
| void shpchp_remove_ctrl_files | ( | struct controller * | ctrl | ) |
Definition at line 93 of file shpchp_sysfs.c.
Definition at line 695 of file shpchp_ctrl.c.
Definition at line 660 of file shpchp_ctrl.c.
Definition at line 85 of file shpchp_pci.c.
| bool shpchp_debug |
Definition at line 39 of file shpchp_core.c.
| struct workqueue_struct* shpchp_ordered_wq |
Definition at line 43 of file shpchp_core.c.
| bool shpchp_poll_mode |
Definition at line 40 of file shpchp_core.c.
| int shpchp_poll_time |
Definition at line 41 of file shpchp_core.c.
| struct workqueue_struct* shpchp_wq |
Definition at line 42 of file shpchp_core.c.
1.8.2