diff options
author | Kristen Carlson Accardi <kristen.c.accardi@intel.com> | 2007-01-09 16:02:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 18:50:05 -0500 |
commit | 34d03419f03bcfdf70d9617a9b90b60c93482c4a (patch) | |
tree | 4371f46298a0bd24df178cbe73fe815bf146faad /drivers/pci/hotplug/pciehp.h | |
parent | 262303fe329a51463925f3749aafc358a4201397 (diff) |
PCIEHP: Add Electro Mechanical Interlock (EMI) support to the PCIE hotplug driver.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r-- | drivers/pci/hotplug/pciehp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index 927dba9911ed..d19fcae8a7c0 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h | |||
@@ -69,6 +69,7 @@ struct slot { | |||
69 | struct hotplug_slot *hotplug_slot; | 69 | struct hotplug_slot *hotplug_slot; |
70 | struct list_head slot_list; | 70 | struct list_head slot_list; |
71 | char name[SLOT_NAME_SIZE]; | 71 | char name[SLOT_NAME_SIZE]; |
72 | unsigned long last_emi_toggle; | ||
72 | }; | 73 | }; |
73 | 74 | ||
74 | struct event_info { | 75 | struct event_info { |
@@ -138,6 +139,7 @@ struct controller { | |||
138 | #define ATTN_LED_PRSN 0x00000008 | 139 | #define ATTN_LED_PRSN 0x00000008 |
139 | #define PWR_LED_PRSN 0x00000010 | 140 | #define PWR_LED_PRSN 0x00000010 |
140 | #define HP_SUPR_RM_SUP 0x00000020 | 141 | #define HP_SUPR_RM_SUP 0x00000020 |
142 | #define EMI_PRSN 0x00020000 | ||
141 | 143 | ||
142 | #define ATTN_BUTTN(cap) (cap & ATTN_BUTTN_PRSN) | 144 | #define ATTN_BUTTN(cap) (cap & ATTN_BUTTN_PRSN) |
143 | #define POWER_CTRL(cap) (cap & PWR_CTRL_PRSN) | 145 | #define POWER_CTRL(cap) (cap & PWR_CTRL_PRSN) |
@@ -145,6 +147,7 @@ struct controller { | |||
145 | #define ATTN_LED(cap) (cap & ATTN_LED_PRSN) | 147 | #define ATTN_LED(cap) (cap & ATTN_LED_PRSN) |
146 | #define PWR_LED(cap) (cap & PWR_LED_PRSN) | 148 | #define PWR_LED(cap) (cap & PWR_LED_PRSN) |
147 | #define HP_SUPR_RM(cap) (cap & HP_SUPR_RM_SUP) | 149 | #define HP_SUPR_RM(cap) (cap & HP_SUPR_RM_SUP) |
150 | #define EMI(cap) (cap & EMI_PRSN) | ||
148 | 151 | ||
149 | extern int pciehp_event_start_thread(void); | 152 | extern int pciehp_event_start_thread(void); |
150 | extern void pciehp_event_stop_thread(void); | 153 | extern void pciehp_event_stop_thread(void); |
@@ -182,6 +185,8 @@ struct hpc_ops { | |||
182 | int (*set_attention_status)(struct slot *slot, u8 status); | 185 | int (*set_attention_status)(struct slot *slot, u8 status); |
183 | int (*get_latch_status)(struct slot *slot, u8 *status); | 186 | int (*get_latch_status)(struct slot *slot, u8 *status); |
184 | int (*get_adapter_status)(struct slot *slot, u8 *status); | 187 | int (*get_adapter_status)(struct slot *slot, u8 *status); |
188 | int (*get_emi_status)(struct slot *slot, u8 *status); | ||
189 | int (*toggle_emi)(struct slot *slot); | ||
185 | int (*get_max_bus_speed)(struct slot *slot, enum pci_bus_speed *speed); | 190 | int (*get_max_bus_speed)(struct slot *slot, enum pci_bus_speed *speed); |
186 | int (*get_cur_bus_speed)(struct slot *slot, enum pci_bus_speed *speed); | 191 | int (*get_cur_bus_speed)(struct slot *slot, enum pci_bus_speed *speed); |
187 | int (*get_max_lnk_width)(struct slot *slot, enum pcie_link_width *val); | 192 | int (*get_max_lnk_width)(struct slot *slot, enum pcie_link_width *val); |