diff options
author | andrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com> | 2006-03-09 17:27:13 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 10:38:03 -0500 |
commit | 044cc6c8ec311c4ddeebfcc31c53dea282de70b7 (patch) | |
tree | 891078bdbf9c8673d2408215c80551dc4a015f6d /drivers/scsi/qla2xxx/qla_gs.c | |
parent | ea5b6382fde00e0dbcd0de2e4aa2fd15705e5fc3 (diff) |
[SCSI] qla2xxx: Add ISP54xx support.
Chip is similar in form to our ISP24xx offering.
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_gs.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gs.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index d620a8e8a614..2ebf259fccb2 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c | |||
@@ -126,7 +126,7 @@ qla2x00_chk_ms_status(scsi_qla_host_t *ha, ms_iocb_entry_t *ms_pkt, | |||
126 | DEBUG2_3(printk("scsi(%ld): %s failed, error status (%x).\n", | 126 | DEBUG2_3(printk("scsi(%ld): %s failed, error status (%x).\n", |
127 | ha->host_no, routine, ms_pkt->entry_status)); | 127 | ha->host_no, routine, ms_pkt->entry_status)); |
128 | } else { | 128 | } else { |
129 | if (IS_QLA24XX(ha) || IS_QLA25XX(ha)) | 129 | if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) |
130 | comp_status = | 130 | comp_status = |
131 | ((struct ct_entry_24xx *)ms_pkt)->comp_status; | 131 | ((struct ct_entry_24xx *)ms_pkt)->comp_status; |
132 | else | 132 | else |
@@ -1200,7 +1200,7 @@ qla2x00_update_ms_fdmi_iocb(scsi_qla_host_t *ha, uint32_t req_size) | |||
1200 | ms_iocb_entry_t *ms_pkt = ha->ms_iocb; | 1200 | ms_iocb_entry_t *ms_pkt = ha->ms_iocb; |
1201 | struct ct_entry_24xx *ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; | 1201 | struct ct_entry_24xx *ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; |
1202 | 1202 | ||
1203 | if (IS_QLA24XX(ha) || IS_QLA25XX(ha)) { | 1203 | if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) { |
1204 | ct_pkt->cmd_byte_count = cpu_to_le32(req_size); | 1204 | ct_pkt->cmd_byte_count = cpu_to_le32(req_size); |
1205 | ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; | 1205 | ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; |
1206 | } else { | 1206 | } else { |
@@ -1529,9 +1529,7 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha) | |||
1529 | eiter = (struct ct_fdmi_port_attr *) (entries + size); | 1529 | eiter = (struct ct_fdmi_port_attr *) (entries + size); |
1530 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); | 1530 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_SUPPORT_SPEED); |
1531 | eiter->len = __constant_cpu_to_be16(4 + 4); | 1531 | eiter->len = __constant_cpu_to_be16(4 + 4); |
1532 | if (IS_QLA25XX(ha)) | 1532 | if (IS_QLA24XX(ha) || IS_QLA54XX(ha)) |
1533 | eiter->a.sup_speed = __constant_cpu_to_be32(8); | ||
1534 | else if (IS_QLA24XX(ha)) | ||
1535 | eiter->a.sup_speed = __constant_cpu_to_be32(4); | 1533 | eiter->a.sup_speed = __constant_cpu_to_be32(4); |
1536 | else if (IS_QLA23XX(ha)) | 1534 | else if (IS_QLA23XX(ha)) |
1537 | eiter->a.sup_speed = __constant_cpu_to_be32(2); | 1535 | eiter->a.sup_speed = __constant_cpu_to_be32(2); |
@@ -1566,7 +1564,7 @@ qla2x00_fdmi_rpa(scsi_qla_host_t *ha) | |||
1566 | eiter = (struct ct_fdmi_port_attr *) (entries + size); | 1564 | eiter = (struct ct_fdmi_port_attr *) (entries + size); |
1567 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_MAX_FRAME_SIZE); | 1565 | eiter->type = __constant_cpu_to_be16(FDMI_PORT_MAX_FRAME_SIZE); |
1568 | eiter->len = __constant_cpu_to_be16(4 + 4); | 1566 | eiter->len = __constant_cpu_to_be16(4 + 4); |
1569 | max_frame_size = IS_QLA24XX(ha) || IS_QLA25XX(ha) ? | 1567 | max_frame_size = IS_QLA24XX(ha) || IS_QLA54XX(ha) ? |
1570 | (uint32_t) icb24->frame_payload_size: | 1568 | (uint32_t) icb24->frame_payload_size: |
1571 | (uint32_t) ha->init_cb->frame_payload_size; | 1569 | (uint32_t) ha->init_cb->frame_payload_size; |
1572 | eiter->a.max_frame_size = cpu_to_be32(max_frame_size); | 1570 | eiter->a.max_frame_size = cpu_to_be32(max_frame_size); |