aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla1280.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-07-04 11:48:55 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-08-02 12:43:50 -0400
commit0888f4c3312847eec4814a6d7cdcaaaa9fbd3345 (patch)
tree1266e52875e27c859c14f42731854c70b60c6582 /drivers/scsi/qla1280.h
parent5c79d6154f335543ea4c4a555f645a1f76b5d117 (diff)
[SCSI] qla1280: don't use bitfields for hardware access in isp_config
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Thiemo Seufer <ths@linux-mips.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla1280.h')
-rw-r--r--drivers/scsi/qla1280.h30
1 files changed, 12 insertions, 18 deletions
diff --git a/drivers/scsi/qla1280.h b/drivers/scsi/qla1280.h
index 18c20cf371af..4032ea3f2b94 100644
--- a/drivers/scsi/qla1280.h
+++ b/drivers/scsi/qla1280.h
@@ -375,29 +375,23 @@ struct nvram {
375 uint16_t unused_12; /* 12, 13 */ 375 uint16_t unused_12; /* 12, 13 */
376 uint16_t unused_14; /* 14, 15 */ 376 uint16_t unused_14; /* 14, 15 */
377 377
378 union { 378 struct {
379 uint8_t c; 379 uint8_t reserved:2;
380 struct { 380 uint8_t burst_enable:1;
381 uint8_t reserved:2; 381 uint8_t reserved_1:1;
382 uint8_t burst_enable:1; 382 uint8_t fifo_threshold:4;
383 uint8_t reserved_1:1;
384 uint8_t fifo_threshold:4;
385 } f;
386 } isp_config; /* 16 */ 383 } isp_config; /* 16 */
387 384
388 /* Termination 385 /* Termination
389 * 0 = Disable, 1 = high only, 3 = Auto term 386 * 0 = Disable, 1 = high only, 3 = Auto term
390 */ 387 */
391 union { 388 struct {
392 uint8_t c; 389 uint8_t scsi_bus_1_control:2;
393 struct { 390 uint8_t scsi_bus_0_control:2;
394 uint8_t scsi_bus_1_control:2; 391 uint8_t unused_0:1;
395 uint8_t scsi_bus_0_control:2; 392 uint8_t unused_1:1;
396 uint8_t unused_0:1; 393 uint8_t unused_2:1;
397 uint8_t unused_1:1; 394 uint8_t auto_term_support:1;
398 uint8_t unused_2:1;
399 uint8_t auto_term_support:1;
400 } f;
401 } termination; /* 17 */ 395 } termination; /* 17 */
402 396
403 uint16_t isp_parameter; /* 18, 19 */ 397 uint16_t isp_parameter; /* 18, 19 */