aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/mptbase.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-08-18 10:25:44 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-09-04 20:51:25 -0400
commit637fa99b86a00a0b5767a982b83a512ff48ad6d2 (patch)
treecb3f063b83163cfcb53c85e0fd411fe11f766a1f /drivers/message/fusion/mptbase.c
parentccf3b7bd26b242b39d54148ea2117295721681d3 (diff)
[SCSI] fusion: endianess fixes
Assorted endianess fixes. I'll work on full endianess annotations later. Acked by: Moore, Eric Dean <Eric.Moore@lsil.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r--drivers/message/fusion/mptbase.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index 284202766804..35444ba4e78a 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -2185,7 +2185,7 @@ GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason)
2185 facts->IOCExceptions = le16_to_cpu(facts->IOCExceptions); 2185 facts->IOCExceptions = le16_to_cpu(facts->IOCExceptions);
2186 facts->IOCStatus = le16_to_cpu(facts->IOCStatus); 2186 facts->IOCStatus = le16_to_cpu(facts->IOCStatus);
2187 facts->IOCLogInfo = le32_to_cpu(facts->IOCLogInfo); 2187 facts->IOCLogInfo = le32_to_cpu(facts->IOCLogInfo);
2188 status = facts->IOCStatus & MPI_IOCSTATUS_MASK; 2188 status = le16_to_cpu(facts->IOCStatus) & MPI_IOCSTATUS_MASK;
2189 /* CHECKME! IOCStatus, IOCLogInfo */ 2189 /* CHECKME! IOCStatus, IOCLogInfo */
2190 2190
2191 facts->ReplyQueueDepth = le16_to_cpu(facts->ReplyQueueDepth); 2191 facts->ReplyQueueDepth = le16_to_cpu(facts->ReplyQueueDepth);
@@ -4823,8 +4823,8 @@ mpt_toolbox(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg)
4823 pReq->Reserved3 = 0; 4823 pReq->Reserved3 = 0;
4824 pReq->NumAddressBytes = 0x01; 4824 pReq->NumAddressBytes = 0x01;
4825 pReq->Reserved4 = 0; 4825 pReq->Reserved4 = 0;
4826 pReq->DataLength = 0x04; 4826 pReq->DataLength = cpu_to_le16(0x04);
4827 pdev = (struct pci_dev *) ioc->pcidev; 4827 pdev = ioc->pcidev;
4828 if (pdev->devfn & 1) 4828 if (pdev->devfn & 1)
4829 pReq->DeviceAddr = 0xB2; 4829 pReq->DeviceAddr = 0xB2;
4830 else 4830 else