diff options
author | Joe Lawrence <joe.lawrence@stratus.com> | 2014-08-26 17:11:41 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-16 12:09:59 -0400 |
commit | c821e0d5b20006acdaca7aa378097a084986e37b (patch) | |
tree | 18da6d8ace17b53dcf8785bd679848eaf08d1f60 /drivers/scsi/qla2xxx/qla_gbl.h | |
parent | 1a2fbf185cce45b80cfdb441fb6651c07915ddb1 (diff) |
qla2xxx: Collect PCI register checks and board_disable scheduling
Add an uint16_t variant of qla2x00_check_reg_for_disconnect and use
these routines to check and schedule a PCI-disconnected board from a
centralized place.
Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_gbl.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_gbl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index d646540db3ac..43ef0db9654e 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h | |||
@@ -475,7 +475,8 @@ extern uint8_t *qla25xx_read_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | |||
475 | extern int qla25xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, | 475 | extern int qla25xx_write_nvram_data(scsi_qla_host_t *, uint8_t *, uint32_t, |
476 | uint32_t); | 476 | uint32_t); |
477 | extern int qla2x00_is_a_vp_did(scsi_qla_host_t *, uint32_t); | 477 | extern int qla2x00_is_a_vp_did(scsi_qla_host_t *, uint32_t); |
478 | bool qla2x00_check_reg_for_disconnect(scsi_qla_host_t *, uint32_t); | 478 | bool qla2x00_check_reg32_for_disconnect(scsi_qla_host_t *, uint32_t); |
479 | bool qla2x00_check_reg16_for_disconnect(scsi_qla_host_t *, uint16_t); | ||
479 | 480 | ||
480 | extern int qla2x00_beacon_on(struct scsi_qla_host *); | 481 | extern int qla2x00_beacon_on(struct scsi_qla_host *); |
481 | extern int qla2x00_beacon_off(struct scsi_qla_host *); | 482 | extern int qla2x00_beacon_off(struct scsi_qla_host *); |