diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2005-07-06 13:31:17 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-07-14 11:00:07 -0400 |
commit | 2b6c0cee90cecbce35fb6d65fed94f22e5063be0 (patch) | |
tree | b0bc0240e95d72d67cf3f23ee84375b629128063 /drivers/scsi/qla2xxx/qla_inline.h | |
parent | 459c537807bd72cce7b007fb218bb5a658a6c3c1 (diff) |
[SCSI] qla2xxx: Add ISP24xx IOCB manipulation routines.
Add ISP24xx IOCB manipulation routines.
Add appropriate glue-code for ISP24xx support while
manipulting IOCB packets. Add an ISP24xx specific
'start_scsi' routine due to command-type-7 layout
changes.
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_inline.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_inline.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_inline.h b/drivers/scsi/qla2xxx/qla_inline.h index 6cf7036ccf4c..a4357f0aeea3 100644 --- a/drivers/scsi/qla2xxx/qla_inline.h +++ b/drivers/scsi/qla2xxx/qla_inline.h | |||
@@ -236,6 +236,19 @@ qla2x00_delete_timer_from_cmd(srb_t *sp) | |||
236 | } | 236 | } |
237 | } | 237 | } |
238 | 238 | ||
239 | static inline uint8_t *host_to_fcp_swap(uint8_t *, uint32_t); | ||
240 | static inline uint8_t * | ||
241 | host_to_fcp_swap(uint8_t *fcp, uint32_t bsize) | ||
242 | { | ||
243 | uint32_t *ifcp = (uint32_t *) fcp; | ||
244 | uint32_t *ofcp = (uint32_t *) fcp; | ||
245 | uint32_t iter = bsize >> 2; | ||
246 | |||
247 | for (; iter ; iter--) | ||
248 | *ofcp++ = swab32(*ifcp++); | ||
249 | |||
250 | return fcp; | ||
251 | } | ||
239 | 252 | ||
240 | static inline int qla2x00_is_reserved_id(scsi_qla_host_t *, uint16_t); | 253 | static inline int qla2x00_is_reserved_id(scsi_qla_host_t *, uint16_t); |
241 | static inline int | 254 | static inline int |