diff options
author | Jamie Wellnitz <Jamie.Wellnitz@emulex.com> | 2006-02-28 19:25:27 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-28 20:00:36 -0500 |
commit | 41415862a23f422b80eccc92cf885935139e2415 (patch) | |
tree | e3a9537653e472f15405778c4dcc678a56304848 /drivers/scsi/lpfc/lpfc.h | |
parent | d9d959c41f013439508e0fa1d31f5644d8d626ef (diff) |
[SCSI] lpfc 8.1.2: Add ERROR and WARM_START modes for diagnostic purposes.
Add ERROR and WARM_START modes for diagnostic purposes.
Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h index 214ab436e035..c4cca9124f45 100644 --- a/drivers/scsi/lpfc/lpfc.h +++ b/drivers/scsi/lpfc/lpfc.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /******************************************************************* | 1 | /******************************************************************* |
2 | * This file is part of the Emulex Linux Device Driver for * | 2 | * This file is part of the Emulex Linux Device Driver for * |
3 | * Fibre Channel Host Bus Adapters. * | 3 | * Fibre Channel Host Bus Adapters. * |
4 | * Copyright (C) 2004-2005 Emulex. All rights reserved. * | 4 | * Copyright (C) 2004-2006 Emulex. All rights reserved. * |
5 | * EMULEX and SLI are trademarks of Emulex. * | 5 | * EMULEX and SLI are trademarks of Emulex. * |
6 | * www.emulex.com * | 6 | * www.emulex.com * |
7 | * Portions Copyright (C) 2004-2005 Christoph Hellwig * | 7 | * Portions Copyright (C) 2004-2005 Christoph Hellwig * |
@@ -175,25 +175,27 @@ struct lpfc_hba { | |||
175 | uint16_t pci_cfg_value; | 175 | uint16_t pci_cfg_value; |
176 | 176 | ||
177 | struct semaphore hba_can_block; | 177 | struct semaphore hba_can_block; |
178 | uint32_t hba_state; | 178 | int32_t hba_state; |
179 | 179 | ||
180 | #define LPFC_INIT_START 1 /* Initial state after board reset */ | 180 | #define LPFC_STATE_UNKNOWN 0 /* HBA state is unknown */ |
181 | #define LPFC_INIT_MBX_CMDS 2 /* Initialize HBA with mbox commands */ | 181 | #define LPFC_WARM_START 1 /* HBA state after selective reset */ |
182 | #define LPFC_LINK_DOWN 3 /* HBA initialized, link is down */ | 182 | #define LPFC_INIT_START 2 /* Initial state after board reset */ |
183 | #define LPFC_LINK_UP 4 /* Link is up - issue READ_LA */ | 183 | #define LPFC_INIT_MBX_CMDS 3 /* Initialize HBA with mbox commands */ |
184 | #define LPFC_LOCAL_CFG_LINK 5 /* local NPORT Id configured */ | 184 | #define LPFC_LINK_DOWN 4 /* HBA initialized, link is down */ |
185 | #define LPFC_FLOGI 6 /* FLOGI sent to Fabric */ | 185 | #define LPFC_LINK_UP 5 /* Link is up - issue READ_LA */ |
186 | #define LPFC_FABRIC_CFG_LINK 7 /* Fabric assigned NPORT Id | 186 | #define LPFC_LOCAL_CFG_LINK 6 /* local NPORT Id configured */ |
187 | #define LPFC_FLOGI 7 /* FLOGI sent to Fabric */ | ||
188 | #define LPFC_FABRIC_CFG_LINK 8 /* Fabric assigned NPORT Id | ||
187 | configured */ | 189 | configured */ |
188 | #define LPFC_NS_REG 8 /* Register with NameServer */ | 190 | #define LPFC_NS_REG 9 /* Register with NameServer */ |
189 | #define LPFC_NS_QRY 9 /* Query NameServer for NPort ID list */ | 191 | #define LPFC_NS_QRY 10 /* Query NameServer for NPort ID list */ |
190 | #define LPFC_BUILD_DISC_LIST 10 /* Build ADISC and PLOGI lists for | 192 | #define LPFC_BUILD_DISC_LIST 11 /* Build ADISC and PLOGI lists for |
191 | * device authentication / discovery */ | 193 | * device authentication / discovery */ |
192 | #define LPFC_DISC_AUTH 11 /* Processing ADISC list */ | 194 | #define LPFC_DISC_AUTH 12 /* Processing ADISC list */ |
193 | #define LPFC_CLEAR_LA 12 /* authentication cmplt - issue | 195 | #define LPFC_CLEAR_LA 13 /* authentication cmplt - issue |
194 | CLEAR_LA */ | 196 | CLEAR_LA */ |
195 | #define LPFC_HBA_READY 32 | 197 | #define LPFC_HBA_READY 32 |
196 | #define LPFC_HBA_ERROR 0xff | 198 | #define LPFC_HBA_ERROR -1 |
197 | 199 | ||
198 | uint8_t fc_linkspeed; /* Link speed after last READ_LA */ | 200 | uint8_t fc_linkspeed; /* Link speed after last READ_LA */ |
199 | 201 | ||