diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2008-04-03 16:13:24 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-07 13:19:15 -0400 |
commit | 523ec773b8ffb1c607bc3a54c9526558e3b1eab1 (patch) | |
tree | 9cb3fc8a68af97a6359704e4341652aad9cc65d1 /drivers/scsi/qla2xxx/qla_gbl.h | |
parent | 3fe7cfb910ea138ae623d1320c71e2a7a0bdc527 (diff) |
[SCSI] qla2xxx: Add midlayer target/device reset support.
Now that infrastructure is present within the midlayer and there
is a clear distinction between what is expected from a device and
target reset, convert the current device-reset codes to a
target-reset, and add codes to perform a proper device-reset (LUN
reset).
In the process of adding reset support, collapse and consolidate
large sections of mailbox-command (TMF issuance) codes,
generalize the two 'wait-for-commands-to-complete' functions, and
add a generic-reset routine for use by midlayer reset functions.
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_gbl.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gbl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index f25aa63ad191..f2133647bf25 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h | |||
@@ -153,7 +153,10 @@ extern int | |||
153 | qla2x00_abort_command(scsi_qla_host_t *, srb_t *); | 153 | qla2x00_abort_command(scsi_qla_host_t *, srb_t *); |
154 | 154 | ||
155 | extern int | 155 | extern int |
156 | qla2x00_abort_target(fc_port_t *); | 156 | qla2x00_abort_target(struct fc_port *, unsigned int); |
157 | |||
158 | extern int | ||
159 | qla2x00_lun_reset(struct fc_port *, unsigned int); | ||
157 | 160 | ||
158 | extern int | 161 | extern int |
159 | qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *, | 162 | qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *, |
@@ -219,7 +222,8 @@ qla24xx_get_isp_stats(scsi_qla_host_t *, struct link_statistics *, | |||
219 | dma_addr_t); | 222 | dma_addr_t); |
220 | 223 | ||
221 | extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); | 224 | extern int qla24xx_abort_command(scsi_qla_host_t *, srb_t *); |
222 | extern int qla24xx_abort_target(fc_port_t *); | 225 | extern int qla24xx_abort_target(struct fc_port *, unsigned int); |
226 | extern int qla24xx_lun_reset(struct fc_port *, unsigned int); | ||
223 | 227 | ||
224 | extern int | 228 | extern int |
225 | qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); | 229 | qla2x00_set_serdes_params(scsi_qla_host_t *, uint16_t, uint16_t, uint16_t); |