diff options
author | Seokmann Ju <seokmann.ju@qlogic.com> | 2007-07-26 16:43:34 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-27 09:14:22 -0400 |
commit | 281afe1947d855661754850de29d7530b2ff18dc (patch) | |
tree | 25b085c0c759211b2c416c36b4603d131626b797 /drivers/scsi/qla2xxx/qla_def.h | |
parent | c835e3727b87115f98c612a5ecb8882826d2537e (diff) |
[SCSI] qla2xxx: fix to honor ignored parameters in sysfs attributes
This is a patch to fix 'segmentation fault' issue which was initiated
by Richard Lary <rlary@us.ibm.com>. Thanks again Richard.
- on following sysfs attritute function, changes have made so that both
count and offset input parameters are honored by the functions.
= qla2x00_sysfs_read_nvram()
= qla2x00_sysfs_read_vpd()
- made changes so that NVRAM data to be cached to minimize H/W accesses
during agent querying of the driver's.
Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 0c9f36c8a248..27ae3a532a55 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -2340,10 +2340,14 @@ typedef struct scsi_qla_host { | |||
2340 | uint8_t serial2; | 2340 | uint8_t serial2; |
2341 | 2341 | ||
2342 | /* NVRAM configuration data */ | 2342 | /* NVRAM configuration data */ |
2343 | #define MAX_NVRAM_SIZE 4096 | ||
2344 | #define VPD_OFFSET MAX_NVRAM_SIZE / 2 | ||
2343 | uint16_t nvram_size; | 2345 | uint16_t nvram_size; |
2344 | uint16_t nvram_base; | 2346 | uint16_t nvram_base; |
2347 | void *nvram; | ||
2345 | uint16_t vpd_size; | 2348 | uint16_t vpd_size; |
2346 | uint16_t vpd_base; | 2349 | uint16_t vpd_base; |
2350 | void *vpd; | ||
2347 | 2351 | ||
2348 | uint16_t loop_reset_delay; | 2352 | uint16_t loop_reset_delay; |
2349 | uint8_t retry_count; | 2353 | uint8_t retry_count; |