diff options
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_compat.h | 3 | ||||
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_compat.h b/drivers/scsi/lpfc/lpfc_compat.h index 275ba34b3c9d..a11f1ae7b98e 100644 --- a/drivers/scsi/lpfc/lpfc_compat.h +++ b/drivers/scsi/lpfc/lpfc_compat.h | |||
@@ -30,8 +30,9 @@ memcpy_toio() and memcpy_fromio() can be used. | |||
30 | However on a big-endian host, copy 4 bytes at a time, | 30 | However on a big-endian host, copy 4 bytes at a time, |
31 | using writel() and readl(). | 31 | using writel() and readl(). |
32 | *******************************************************************/ | 32 | *******************************************************************/ |
33 | #include <asm/byteorder.h> | ||
33 | 34 | ||
34 | #if __BIG_ENDIAN | 35 | #ifdef __BIG_ENDIAN |
35 | 36 | ||
36 | static inline void | 37 | static inline void |
37 | lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) | 38 | lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) |
diff --git a/drivers/scsi/lpfc/lpfc_scsi.h b/drivers/scsi/lpfc/lpfc_scsi.h index d8fd2010ef41..0fd9ba14e1b5 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.h +++ b/drivers/scsi/lpfc/lpfc_scsi.h | |||
@@ -18,6 +18,8 @@ | |||
18 | * included with this package. * | 18 | * included with this package. * |
19 | *******************************************************************/ | 19 | *******************************************************************/ |
20 | 20 | ||
21 | #include <asm/byteorder.h> | ||
22 | |||
21 | struct lpfc_hba; | 23 | struct lpfc_hba; |
22 | 24 | ||
23 | #define list_remove_head(list, entry, type, member) \ | 25 | #define list_remove_head(list, entry, type, member) \ |
@@ -81,7 +83,7 @@ struct fcp_cmnd { | |||
81 | /* # of bits to shift lun id to end up in right | 83 | /* # of bits to shift lun id to end up in right |
82 | * payload word, little endian = 8, big = 16. | 84 | * payload word, little endian = 8, big = 16. |
83 | */ | 85 | */ |
84 | #if __BIG_ENDIAN | 86 | #ifdef __BIG_ENDIAN |
85 | #define FC_LUN_SHIFT 16 | 87 | #define FC_LUN_SHIFT 16 |
86 | #define FC_ADDR_MODE_SHIFT 24 | 88 | #define FC_ADDR_MODE_SHIFT 24 |
87 | #else /* __LITTLE_ENDIAN */ | 89 | #else /* __LITTLE_ENDIAN */ |