diff options
author | Harry Zhang <harry.zhang@amd.com> | 2010-04-23 05:27:19 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-14 17:35:51 -0400 |
commit | 008dbd61ebee3e647f63bbe8315192e1331cd75f (patch) | |
tree | 2848b7364622cceb29b596c95c7c2681a40adcfc /drivers/ata/ahci.h | |
parent | ec86c81dfcc52e313920621b1d1e92343a842afe (diff) |
ahci: EM message type auto detect
Detect enclosure management message type automatically at driver
initialization, instead of using module parameter "ahci_em_messages".
Signed-off-by: Harry Zhang <harry.zhang@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/ahci.h')
-rw-r--r-- | drivers/ata/ahci.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 733def27df07..5edce4447d84 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h | |||
@@ -227,6 +227,12 @@ enum { | |||
227 | EM_CTL_RST = (1 << 9), /* Reset */ | 227 | EM_CTL_RST = (1 << 9), /* Reset */ |
228 | EM_CTL_TM = (1 << 8), /* Transmit Message */ | 228 | EM_CTL_TM = (1 << 8), /* Transmit Message */ |
229 | EM_CTL_ALHD = (1 << 26), /* Activity LED */ | 229 | EM_CTL_ALHD = (1 << 26), /* Activity LED */ |
230 | |||
231 | /* em message type */ | ||
232 | EM_MSG_TYPE_LED = (1 << 0), /* LED */ | ||
233 | EM_MSG_TYPE_SAFTE = (1 << 1), /* SAF-TE */ | ||
234 | EM_MSG_TYPE_SES2 = (1 << 2), /* SES-2 */ | ||
235 | EM_MSG_TYPE_SGPIO = (1 << 3), /* SGPIO */ | ||
230 | }; | 236 | }; |
231 | 237 | ||
232 | struct ahci_cmd_hdr { | 238 | struct ahci_cmd_hdr { |
@@ -282,9 +288,9 @@ struct ahci_host_priv { | |||
282 | u32 saved_cap2; /* saved initial cap2 */ | 288 | u32 saved_cap2; /* saved initial cap2 */ |
283 | u32 saved_port_map; /* saved initial port_map */ | 289 | u32 saved_port_map; /* saved initial port_map */ |
284 | u32 em_loc; /* enclosure management location */ | 290 | u32 em_loc; /* enclosure management location */ |
291 | u32 em_msg_type; /* EM message type */ | ||
285 | }; | 292 | }; |
286 | 293 | ||
287 | extern int ahci_em_messages; | ||
288 | extern int ahci_ignore_sss; | 294 | extern int ahci_ignore_sss; |
289 | 295 | ||
290 | extern struct scsi_host_template ahci_sht; | 296 | extern struct scsi_host_template ahci_sht; |