aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2009-04-07 01:33:50 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-05-20 18:21:11 -0400
commite5b68a61e15ca8e200c60cfd4dbe1818e6beb4e1 (patch)
tree3efb29e4cca6868e7a5775589d877fb6e30639ac /drivers/scsi/qla2xxx/qla_def.h
parente337d9070e5821e7c8e5973679bdd34376263bd1 (diff)
[SCSI] qla2xxx: Use port number to compute nvram/vpd parameter offsets.
Read adapter's physical port number from interrupt pin register and use it instead of pci function number to offset into the nvram to obtain the port's configuration parameters. Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 6911b9b32fe..721bae94e43 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2222,6 +2222,7 @@ struct qla_hw_data {
2222 uint32_t fce_enabled :1; 2222 uint32_t fce_enabled :1;
2223 uint32_t fac_supported :1; 2223 uint32_t fac_supported :1;
2224 uint32_t chip_reset_done :1; 2224 uint32_t chip_reset_done :1;
2225 uint32_t port0 :1;
2225 } flags; 2226 } flags;
2226 2227
2227 /* This spinlock is used to protect "io transactions", you must 2228 /* This spinlock is used to protect "io transactions", you must
@@ -2256,6 +2257,9 @@ struct qla_hw_data {
2256#define FLOGI_MID_SUPPORT BIT_10 2257#define FLOGI_MID_SUPPORT BIT_10
2257#define FLOGI_VSAN_SUPPORT BIT_12 2258#define FLOGI_VSAN_SUPPORT BIT_12
2258#define FLOGI_SP_SUPPORT BIT_13 2259#define FLOGI_SP_SUPPORT BIT_13
2260
2261 uint8_t port_no; /* Physical port of adapter */
2262
2259 /* Timeout timers. */ 2263 /* Timeout timers. */
2260 uint8_t loop_down_abort_time; /* port down timer */ 2264 uint8_t loop_down_abort_time; /* port down timer */
2261 atomic_t loop_down_timer; /* loop down timer */ 2265 atomic_t loop_down_timer; /* loop down timer */