aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_inline.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_inline.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_inline.h13
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
239static inline uint8_t *host_to_fcp_swap(uint8_t *, uint32_t);
240static inline uint8_t *
241host_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
240static inline int qla2x00_is_reserved_id(scsi_qla_host_t *, uint16_t); 253static inline int qla2x00_is_reserved_id(scsi_qla_host_t *, uint16_t);
241static inline int 254static inline int