aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorandrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com>2006-03-09 17:27:34 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-12 10:39:55 -0500
commit6f6417905cf272337a9762e1f92a1fffa651fcd3 (patch)
tree39164863fb9325279c708e9dd08b1d2e76db393c /drivers/scsi/qla2xxx/qla_init.c
parentfdbc6833c53a1c2ec2b122cd53e69e6136dcc774 (diff)
[SCSI] qla2xxx: Add VPD sysfs attribute.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 3bc3e1749f32..71b6bcc181f9 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -3263,8 +3263,12 @@ qla24xx_nvram_config(scsi_qla_host_t *ha)
3263 /* Determine NVRAM starting address. */ 3263 /* Determine NVRAM starting address. */
3264 ha->nvram_size = sizeof(struct nvram_24xx); 3264 ha->nvram_size = sizeof(struct nvram_24xx);
3265 ha->nvram_base = FA_NVRAM_FUNC0_ADDR; 3265 ha->nvram_base = FA_NVRAM_FUNC0_ADDR;
3266 if (PCI_FUNC(ha->pdev->devfn)) 3266 ha->vpd_size = FA_NVRAM_VPD_SIZE;
3267 ha->vpd_base = FA_NVRAM_VPD0_ADDR;
3268 if (PCI_FUNC(ha->pdev->devfn)) {
3267 ha->nvram_base = FA_NVRAM_FUNC1_ADDR; 3269 ha->nvram_base = FA_NVRAM_FUNC1_ADDR;
3270 ha->vpd_base = FA_NVRAM_VPD1_ADDR;
3271 }
3268 3272
3269 /* Get NVRAM data and calculate checksum. */ 3273 /* Get NVRAM data and calculate checksum. */
3270 dptr = (uint32_t *)nv; 3274 dptr = (uint32_t *)nv;