aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/FlashPoint.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-03-08 03:14:26 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-12 10:14:15 -0500
commitce793215b428ae7650b39d87702efa3d5b26ba28 (patch)
treec46376823aac7d09145e482903a2cc516e2db313 /drivers/scsi/FlashPoint.c
parentc823feeb33161c09e83ee4e68c822d6b9ececbc4 (diff)
[SCSI] drivers/scsi/FlashPoint.c: remove UINT
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/FlashPoint.c')
-rw-r--r--drivers/scsi/FlashPoint.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c
index 02af5fb73147..a981dea3bbfb 100644
--- a/drivers/scsi/FlashPoint.c
+++ b/drivers/scsi/FlashPoint.c
@@ -40,7 +40,6 @@
40#define FAILURE 0xFFFFFFFFL 40#define FAILURE 0xFFFFFFFFL
41 41
42 42
43typedef unsigned int UINT;
44typedef unsigned long ULONG; 43typedef unsigned long ULONG;
45 44
46 45
@@ -5205,7 +5204,7 @@ static void FPT_dataXferProcessor(ULONG port, PSCCBcard pCurrCard)
5205static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB) 5204static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
5206{ 5205{
5207 ULONG count,addr,tmpSGCnt; 5206 ULONG count,addr,tmpSGCnt;
5208 UINT sg_index; 5207 unsigned int sg_index;
5209 unsigned char sg_count, i; 5208 unsigned char sg_count, i;
5210 ULONG reg_offset; 5209 ULONG reg_offset;
5211 5210
@@ -5231,7 +5230,7 @@ static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
5231 WR_HARPOON(p_port+hp_page_ctrl, i); 5230 WR_HARPOON(p_port+hp_page_ctrl, i);
5232 5231
5233 while ((sg_count < (unsigned char)SG_BUF_CNT) && 5232 while ((sg_count < (unsigned char)SG_BUF_CNT) &&
5234 ((ULONG)(sg_index * (UINT)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) { 5233 ((ULONG)(sg_index * (unsigned int)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) {
5235 5234
5236 tmpSGCnt += *(((ULONG *)pcurrSCCB->DataPointer)+ 5235 tmpSGCnt += *(((ULONG *)pcurrSCCB->DataPointer)+
5237 (sg_index * 2)); 5236 (sg_index * 2));
@@ -5403,7 +5402,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5403 5402
5404 ULONG timeout; 5403 ULONG timeout;
5405 ULONG remain_cnt; 5404 ULONG remain_cnt;
5406 UINT sg_ptr; 5405 unsigned int sg_ptr;
5407 5406
5408 FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT; 5407 FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT;
5409 5408
@@ -5454,9 +5453,9 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5454 5453
5455 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT; 5454 sg_ptr = pCurrSCCB->Sccb_sgseg + SG_BUF_CNT;
5456 5455
5457 if (sg_ptr > (UINT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE)) { 5456 if (sg_ptr > (unsigned int)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE)) {
5458 5457
5459 sg_ptr = (UINT)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE); 5458 sg_ptr = (unsigned int)(pCurrSCCB->DataLength / SG_ELEMENT_SIZE);
5460 } 5459 }
5461 5460
5462 remain_cnt = pCurrSCCB->Sccb_XferCnt; 5461 remain_cnt = pCurrSCCB->Sccb_XferCnt;
@@ -5659,7 +5658,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5659static void FPT_hostDataXferRestart(PSCCB currSCCB) 5658static void FPT_hostDataXferRestart(PSCCB currSCCB)
5660{ 5659{
5661 ULONG data_count; 5660 ULONG data_count;
5662 UINT sg_index; 5661 unsigned int sg_index;
5663 ULONG *sg_ptr; 5662 ULONG *sg_ptr;
5664 5663
5665 if (currSCCB->Sccb_XferState & F_SG_XFER) { 5664 if (currSCCB->Sccb_XferState & F_SG_XFER) {
@@ -7418,7 +7417,7 @@ static unsigned char FPT_queueFindSccb(PSCCB p_SCCB, unsigned char p_card)
7418static void FPT_utilUpdateResidual(PSCCB p_SCCB) 7417static void FPT_utilUpdateResidual(PSCCB p_SCCB)
7419{ 7418{
7420 ULONG partial_cnt; 7419 ULONG partial_cnt;
7421 UINT sg_index; 7420 unsigned int sg_index;
7422 ULONG *sg_ptr; 7421 ULONG *sg_ptr;
7423 7422
7424 if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) { 7423 if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) {