aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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:40 -0500
commitd63a4cccf387a8e6210cfd818c1ea717beefc531 (patch)
tree4798682beed80ba9e120757b4d5373e5818b60d8 /drivers
parentce793215b428ae7650b39d87702efa3d5b26ba28 (diff)
[SCSI] drivers/scsi/FlashPoint.c: remove ULONG
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')
-rw-r--r--drivers/scsi/FlashPoint.c381
1 files changed, 190 insertions, 191 deletions
diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c
index a981dea3bbfb..d877a6a12aca 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 long ULONG;
44 43
45 44
46typedef unsigned short * ushort_ptr; 45typedef unsigned short * ushort_ptr;
@@ -67,7 +66,7 @@ typedef void (*CALL_BK_FN)(PSCCB);
67 66
68 67
69typedef struct SCCBMgr_info { 68typedef struct SCCBMgr_info {
70 ULONG si_baseaddr; 69 unsigned long si_baseaddr;
71 unsigned char si_present; 70 unsigned char si_present;
72 unsigned char si_intvect; 71 unsigned char si_intvect;
73 unsigned char si_id; 72 unsigned char si_id;
@@ -84,10 +83,10 @@ typedef struct SCCBMgr_info {
84 unsigned char si_card_model[3]; 83 unsigned char si_card_model[3];
85 unsigned char si_relative_cardnum; 84 unsigned char si_relative_cardnum;
86 unsigned char si_reserved[4]; 85 unsigned char si_reserved[4];
87 ULONG si_OS_reserved; 86 unsigned long si_OS_reserved;
88 unsigned char si_XlatInfo[4]; 87 unsigned char si_XlatInfo[4];
89 ULONG si_reserved2[5]; 88 unsigned long si_reserved2[5];
90 ULONG si_secondary_range; 89 unsigned long si_secondary_range;
91} SCCBMGR_INFO; 90} SCCBMGR_INFO;
92 91
93typedef SCCBMGR_INFO * PSCCBMGR_INFO; 92typedef SCCBMGR_INFO * PSCCBMGR_INFO;
@@ -123,8 +122,8 @@ typedef struct _SCCB {
123 unsigned char ControlByte; 122 unsigned char ControlByte;
124 unsigned char CdbLength; 123 unsigned char CdbLength;
125 unsigned char RequestSenseLength; 124 unsigned char RequestSenseLength;
126 ULONG DataLength; 125 unsigned long DataLength;
127 ULONG DataPointer; 126 unsigned long DataPointer;
128 unsigned char CcbRes[2]; 127 unsigned char CcbRes[2];
129 unsigned char HostStatus; 128 unsigned char HostStatus;
130 unsigned char TargetStatus; 129 unsigned char TargetStatus;
@@ -133,21 +132,21 @@ typedef struct _SCCB {
133 unsigned char Cdb[12]; 132 unsigned char Cdb[12];
134 unsigned char CcbRes1; 133 unsigned char CcbRes1;
135 unsigned char Reserved1; 134 unsigned char Reserved1;
136 ULONG Reserved2; 135 unsigned long Reserved2;
137 ULONG SensePointer; 136 unsigned long SensePointer;
138 137
139 138
140 CALL_BK_FN SccbCallback; /* VOID (*SccbCallback)(); */ 139 CALL_BK_FN SccbCallback; /* VOID (*SccbCallback)(); */
141 ULONG SccbIOPort; /* Identifies board base port */ 140 unsigned long SccbIOPort; /* Identifies board base port */
142 unsigned char SccbStatus; 141 unsigned char SccbStatus;
143 unsigned char SCCBRes2; 142 unsigned char SCCBRes2;
144 unsigned short SccbOSFlags; 143 unsigned short SccbOSFlags;
145 144
146 145
147 ULONG Sccb_XferCnt; /* actual transfer count */ 146 unsigned long Sccb_XferCnt; /* actual transfer count */
148 ULONG Sccb_ATC; 147 unsigned long Sccb_ATC;
149 ULONG SccbVirtDataPtr; /* virtual addr for OS/2 */ 148 unsigned long SccbVirtDataPtr; /* virtual addr for OS/2 */
150 ULONG Sccb_res1; 149 unsigned long Sccb_res1;
151 unsigned short Sccb_MGRFlags; 150 unsigned short Sccb_MGRFlags;
152 unsigned short Sccb_sgseg; 151 unsigned short Sccb_sgseg;
153 unsigned char Sccb_scsimsg; /* identify msg for selection */ 152 unsigned char Sccb_scsimsg; /* identify msg for selection */
@@ -156,11 +155,11 @@ typedef struct _SCCB {
156 unsigned char Sccb_idmsg; /* image of last msg in */ 155 unsigned char Sccb_idmsg; /* image of last msg in */
157 PSCCB Sccb_forwardlink; 156 PSCCB Sccb_forwardlink;
158 PSCCB Sccb_backlink; 157 PSCCB Sccb_backlink;
159 ULONG Sccb_savedATC; 158 unsigned long Sccb_savedATC;
160 unsigned char Save_Cdb[6]; 159 unsigned char Save_Cdb[6];
161 unsigned char Save_CdbLen; 160 unsigned char Save_CdbLen;
162 unsigned char Sccb_XferState; 161 unsigned char Sccb_XferState;
163 ULONG Sccb_SGoffset; 162 unsigned long Sccb_SGoffset;
164 } SCCB; 163 } SCCB;
165 164
166 165
@@ -299,7 +298,7 @@ typedef struct SCCBMgr_tar_info {
299typedef struct NVRAMInfo { 298typedef struct NVRAMInfo {
300 unsigned char niModel; /* Model No. of card */ 299 unsigned char niModel; /* Model No. of card */
301 unsigned char niCardNo; /* Card no. */ 300 unsigned char niCardNo; /* Card no. */
302 ULONG niBaseAddr; /* Port Address of card */ 301 unsigned long niBaseAddr; /* Port Address of card */
303 unsigned char niSysConf; /* Adapter Configuration byte - Byte 16 of eeprom map */ 302 unsigned char niSysConf; /* Adapter Configuration byte - Byte 16 of eeprom map */
304 unsigned char niScsiConf; /* SCSI Configuration byte - Byte 17 of eeprom map */ 303 unsigned char niScsiConf; /* SCSI Configuration byte - Byte 17 of eeprom map */
305 unsigned char niScamConf; /* SCAM Configuration byte - Byte 20 of eeprom map */ 304 unsigned char niScamConf; /* SCAM Configuration byte - Byte 20 of eeprom map */
@@ -320,7 +319,7 @@ typedef struct SCCBcard {
320 PSCCB currentSCCB; 319 PSCCB currentSCCB;
321 PSCCBMGR_INFO cardInfo; 320 PSCCBMGR_INFO cardInfo;
322 321
323 ULONG ioPort; 322 unsigned long ioPort;
324 323
325 unsigned short cmdCounter; 324 unsigned short cmdCounter;
326 unsigned char discQCount; 325 unsigned char discQCount;
@@ -978,31 +977,31 @@ typedef struct SCCBscam_info {
978 977
979 978
980 979
981static unsigned char FPT_sisyncn(ULONG port, unsigned char p_card, unsigned char syncFlag); 980static unsigned char FPT_sisyncn(unsigned long port, unsigned char p_card, unsigned char syncFlag);
982static void FPT_ssel(ULONG port, unsigned char p_card); 981static void FPT_ssel(unsigned long port, unsigned char p_card);
983static void FPT_sres(ULONG port, unsigned char p_card, PSCCBcard pCurrCard); 982static void FPT_sres(unsigned long port, unsigned char p_card, PSCCBcard pCurrCard);
984static void FPT_shandem(ULONG port, unsigned char p_card,PSCCB pCurrSCCB); 983static void FPT_shandem(unsigned long port, unsigned char p_card,PSCCB pCurrSCCB);
985static void FPT_stsyncn(ULONG port, unsigned char p_card); 984static void FPT_stsyncn(unsigned long port, unsigned char p_card);
986static void FPT_sisyncr(ULONG port,unsigned char sync_pulse, unsigned char offset); 985static void FPT_sisyncr(unsigned long port,unsigned char sync_pulse, unsigned char offset);
987static void FPT_sssyncv(ULONG p_port, unsigned char p_id, unsigned char p_sync_value, 986static void FPT_sssyncv(unsigned long p_port, unsigned char p_id, unsigned char p_sync_value,
988 PSCCBMgr_tar_info currTar_Info); 987 PSCCBMgr_tar_info currTar_Info);
989static void FPT_sresb(ULONG port, unsigned char p_card); 988static void FPT_sresb(unsigned long port, unsigned char p_card);
990static void FPT_sxfrp(ULONG p_port, unsigned char p_card); 989static void FPT_sxfrp(unsigned long p_port, unsigned char p_card);
991static void FPT_schkdd(ULONG port, unsigned char p_card); 990static void FPT_schkdd(unsigned long port, unsigned char p_card);
992static unsigned char FPT_RdStack(ULONG port, unsigned char index); 991static unsigned char FPT_RdStack(unsigned long port, unsigned char index);
993static void FPT_WrStack(ULONG portBase, unsigned char index, unsigned char data); 992static void FPT_WrStack(unsigned long portBase, unsigned char index, unsigned char data);
994static unsigned char FPT_ChkIfChipInitialized(ULONG ioPort); 993static unsigned char FPT_ChkIfChipInitialized(unsigned long ioPort);
995 994
996static void FPT_SendMsg(ULONG port, unsigned char message); 995static void FPT_SendMsg(unsigned long port, unsigned char message);
997static void FPT_queueFlushTargSccb(unsigned char p_card, unsigned char thisTarg, 996static void FPT_queueFlushTargSccb(unsigned char p_card, unsigned char thisTarg,
998 unsigned char error_code); 997 unsigned char error_code);
999 998
1000static void FPT_sinits(PSCCB p_sccb, unsigned char p_card); 999static void FPT_sinits(PSCCB p_sccb, unsigned char p_card);
1001static void FPT_RNVRamData(PNVRamInfo pNvRamInfo); 1000static void FPT_RNVRamData(PNVRamInfo pNvRamInfo);
1002 1001
1003static unsigned char FPT_siwidn(ULONG port, unsigned char p_card); 1002static unsigned char FPT_siwidn(unsigned long port, unsigned char p_card);
1004static void FPT_stwidn(ULONG port, unsigned char p_card); 1003static void FPT_stwidn(unsigned long port, unsigned char p_card);
1005static void FPT_siwidr(ULONG port, unsigned char width); 1004static void FPT_siwidr(unsigned long port, unsigned char width);
1006 1005
1007 1006
1008static void FPT_queueSelectFail(PSCCBcard pCurrCard, unsigned char p_card); 1007static void FPT_queueSelectFail(PSCCBcard pCurrCard, unsigned char p_card);
@@ -1018,46 +1017,46 @@ static unsigned short FPT_CalcCrc16(unsigned char buffer[]);
1018static unsigned char FPT_CalcLrc(unsigned char buffer[]); 1017static unsigned char FPT_CalcLrc(unsigned char buffer[]);
1019 1018
1020 1019
1021static void FPT_Wait1Second(ULONG p_port); 1020static void FPT_Wait1Second(unsigned long p_port);
1022static void FPT_Wait(ULONG p_port, unsigned char p_delay); 1021static void FPT_Wait(unsigned long p_port, unsigned char p_delay);
1023static void FPT_utilEEWriteOnOff(ULONG p_port,unsigned char p_mode); 1022static void FPT_utilEEWriteOnOff(unsigned long p_port,unsigned char p_mode);
1024static void FPT_utilEEWrite(ULONG p_port, unsigned short ee_data, unsigned short ee_addr); 1023static void FPT_utilEEWrite(unsigned long p_port, unsigned short ee_data, unsigned short ee_addr);
1025static unsigned short FPT_utilEERead(ULONG p_port, unsigned short ee_addr); 1024static unsigned short FPT_utilEERead(unsigned long p_port, unsigned short ee_addr);
1026static unsigned short FPT_utilEEReadOrg(ULONG p_port, unsigned short ee_addr); 1025static unsigned short FPT_utilEEReadOrg(unsigned long p_port, unsigned short ee_addr);
1027static void FPT_utilEESendCmdAddr(ULONG p_port, unsigned char ee_cmd, unsigned short ee_addr); 1026static void FPT_utilEESendCmdAddr(unsigned long p_port, unsigned char ee_cmd, unsigned short ee_addr);
1028 1027
1029 1028
1030 1029
1031static void FPT_phaseDataOut(ULONG port, unsigned char p_card); 1030static void FPT_phaseDataOut(unsigned long port, unsigned char p_card);
1032static void FPT_phaseDataIn(ULONG port, unsigned char p_card); 1031static void FPT_phaseDataIn(unsigned long port, unsigned char p_card);
1033static void FPT_phaseCommand(ULONG port, unsigned char p_card); 1032static void FPT_phaseCommand(unsigned long port, unsigned char p_card);
1034static void FPT_phaseStatus(ULONG port, unsigned char p_card); 1033static void FPT_phaseStatus(unsigned long port, unsigned char p_card);
1035static void FPT_phaseMsgOut(ULONG port, unsigned char p_card); 1034static void FPT_phaseMsgOut(unsigned long port, unsigned char p_card);
1036static void FPT_phaseMsgIn(ULONG port, unsigned char p_card); 1035static void FPT_phaseMsgIn(unsigned long port, unsigned char p_card);
1037static void FPT_phaseIllegal(ULONG port, unsigned char p_card); 1036static void FPT_phaseIllegal(unsigned long port, unsigned char p_card);
1038 1037
1039static void FPT_phaseDecode(ULONG port, unsigned char p_card); 1038static void FPT_phaseDecode(unsigned long port, unsigned char p_card);
1040static void FPT_phaseChkFifo(ULONG port, unsigned char p_card); 1039static void FPT_phaseChkFifo(unsigned long port, unsigned char p_card);
1041static void FPT_phaseBusFree(ULONG p_port, unsigned char p_card); 1040static void FPT_phaseBusFree(unsigned long p_port, unsigned char p_card);
1042 1041
1043 1042
1044 1043
1045 1044
1046static void FPT_XbowInit(ULONG port, unsigned char scamFlg); 1045static void FPT_XbowInit(unsigned long port, unsigned char scamFlg);
1047static void FPT_BusMasterInit(ULONG p_port); 1046static void FPT_BusMasterInit(unsigned long p_port);
1048static void FPT_DiagEEPROM(ULONG p_port); 1047static void FPT_DiagEEPROM(unsigned long p_port);
1049 1048
1050 1049
1051 1050
1052 1051
1053static void FPT_dataXferProcessor(ULONG port, PSCCBcard pCurrCard); 1052static void FPT_dataXferProcessor(unsigned long port, PSCCBcard pCurrCard);
1054static void FPT_busMstrSGDataXferStart(ULONG port, PSCCB pCurrSCCB); 1053static void FPT_busMstrSGDataXferStart(unsigned long port, PSCCB pCurrSCCB);
1055static void FPT_busMstrDataXferStart(ULONG port, PSCCB pCurrSCCB); 1054static void FPT_busMstrDataXferStart(unsigned long port, PSCCB pCurrSCCB);
1056static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrSCCB); 1055static void FPT_hostDataXferAbort(unsigned long port, unsigned char p_card, PSCCB pCurrSCCB);
1057static void FPT_hostDataXferRestart(PSCCB currSCCB); 1056static void FPT_hostDataXferRestart(PSCCB currSCCB);
1058 1057
1059 1058
1060static unsigned char FPT_SccbMgr_bad_isr(ULONG p_port, unsigned char p_card, 1059static unsigned char FPT_SccbMgr_bad_isr(unsigned long p_port, unsigned char p_card,
1061 PSCCBcard pCurrCard, unsigned short p_int); 1060 PSCCBcard pCurrCard, unsigned short p_int);
1062 1061
1063static void FPT_SccbMgrTableInitAll(void); 1062static void FPT_SccbMgrTableInitAll(void);
@@ -1068,25 +1067,25 @@ static void FPT_SccbMgrTableInitTarget(unsigned char p_card, unsigned char targ
1068 1067
1069static void FPT_scini(unsigned char p_card, unsigned char p_our_id, unsigned char p_power_up); 1068static void FPT_scini(unsigned char p_card, unsigned char p_our_id, unsigned char p_power_up);
1070 1069
1071static int FPT_scarb(ULONG p_port, unsigned char p_sel_type); 1070static int FPT_scarb(unsigned long p_port, unsigned char p_sel_type);
1072static void FPT_scbusf(ULONG p_port); 1071static void FPT_scbusf(unsigned long p_port);
1073static void FPT_scsel(ULONG p_port); 1072static void FPT_scsel(unsigned long p_port);
1074static void FPT_scasid(unsigned char p_card, ULONG p_port); 1073static void FPT_scasid(unsigned char p_card, unsigned long p_port);
1075static unsigned char FPT_scxferc(ULONG p_port, unsigned char p_data); 1074static unsigned char FPT_scxferc(unsigned long p_port, unsigned char p_data);
1076static unsigned char FPT_scsendi(ULONG p_port, unsigned char p_id_string[]); 1075static unsigned char FPT_scsendi(unsigned long p_port, unsigned char p_id_string[]);
1077static unsigned char FPT_sciso(ULONG p_port, unsigned char p_id_string[]); 1076static unsigned char FPT_sciso(unsigned long p_port, unsigned char p_id_string[]);
1078static void FPT_scwirod(ULONG p_port, unsigned char p_data_bit); 1077static void FPT_scwirod(unsigned long p_port, unsigned char p_data_bit);
1079static void FPT_scwiros(ULONG p_port, unsigned char p_data_bit); 1078static void FPT_scwiros(unsigned long p_port, unsigned char p_data_bit);
1080static unsigned char FPT_scvalq(unsigned char p_quintet); 1079static unsigned char FPT_scvalq(unsigned char p_quintet);
1081static unsigned char FPT_scsell(ULONG p_port, unsigned char targ_id); 1080static unsigned char FPT_scsell(unsigned long p_port, unsigned char targ_id);
1082static void FPT_scwtsel(ULONG p_port); 1081static void FPT_scwtsel(unsigned long p_port);
1083static void FPT_inisci(unsigned char p_card, ULONG p_port, unsigned char p_our_id); 1082static void FPT_inisci(unsigned char p_card, unsigned long p_port, unsigned char p_our_id);
1084static void FPT_scsavdi(unsigned char p_card, ULONG p_port); 1083static void FPT_scsavdi(unsigned char p_card, unsigned long p_port);
1085static unsigned char FPT_scmachid(unsigned char p_card, unsigned char p_id_string[]); 1084static unsigned char FPT_scmachid(unsigned char p_card, unsigned char p_id_string[]);
1086 1085
1087 1086
1088static void FPT_autoCmdCmplt(ULONG p_port, unsigned char p_card); 1087static void FPT_autoCmdCmplt(unsigned long p_port, unsigned char p_card);
1089static void FPT_autoLoadDefaultMap(ULONG p_port); 1088static void FPT_autoLoadDefaultMap(unsigned long p_port);
1090 1089
1091 1090
1092 1091
@@ -1106,7 +1105,7 @@ static unsigned char FPT_scamHAString[] = {0x63, 0x07, 'B', 'U', 'S', 'L', 'O',
1106static unsigned short FPT_default_intena = 0; 1105static unsigned short FPT_default_intena = 0;
1107 1106
1108 1107
1109static void (*FPT_s_PhaseTbl[8]) (ULONG, unsigned char)= { 0 }; 1108static void (*FPT_s_PhaseTbl[8]) (unsigned long, unsigned char)= { 0 };
1110 1109
1111 1110
1112/*--------------------------------------------------------------------- 1111/*---------------------------------------------------------------------
@@ -1123,7 +1122,7 @@ static int FlashPoint_ProbeHostAdapter(PSCCBMGR_INFO pCardInfo)
1123 1122
1124 unsigned char i,j,id,ScamFlg; 1123 unsigned char i,j,id,ScamFlg;
1125 unsigned short temp,temp2,temp3,temp4,temp5,temp6; 1124 unsigned short temp,temp2,temp3,temp4,temp5,temp6;
1126 ULONG ioport; 1125 unsigned long ioport;
1127 PNVRamInfo pCurrNvRam; 1126 PNVRamInfo pCurrNvRam;
1128 1127
1129 ioport = pCardInfo->si_baseaddr; 1128 ioport = pCardInfo->si_baseaddr;
@@ -1395,13 +1394,13 @@ static int FlashPoint_ProbeHostAdapter(PSCCBMGR_INFO pCardInfo)
1395 * 1394 *
1396 *---------------------------------------------------------------------*/ 1395 *---------------------------------------------------------------------*/
1397 1396
1398static ULONG FlashPoint_HardwareResetHostAdapter(PSCCBMGR_INFO pCardInfo) 1397static unsigned long FlashPoint_HardwareResetHostAdapter(PSCCBMGR_INFO pCardInfo)
1399{ 1398{
1400 PSCCBcard CurrCard = NULL; 1399 PSCCBcard CurrCard = NULL;
1401 PNVRamInfo pCurrNvRam; 1400 PNVRamInfo pCurrNvRam;
1402 unsigned char i,j,thisCard, ScamFlg; 1401 unsigned char i,j,thisCard, ScamFlg;
1403 unsigned short temp,sync_bit_map,id; 1402 unsigned short temp,sync_bit_map,id;
1404 ULONG ioport; 1403 unsigned long ioport;
1405 1404
1406 ioport = pCardInfo->si_baseaddr; 1405 ioport = pCardInfo->si_baseaddr;
1407 1406
@@ -1573,16 +1572,16 @@ static ULONG FlashPoint_HardwareResetHostAdapter(PSCCBMGR_INFO pCardInfo)
1573 WR_HARPOON((ioport+hp_semaphore), 1572 WR_HARPOON((ioport+hp_semaphore),
1574 (unsigned char)(RD_HARPOON((ioport+hp_semaphore)) | SCCB_MGR_PRESENT)); 1573 (unsigned char)(RD_HARPOON((ioport+hp_semaphore)) | SCCB_MGR_PRESENT));
1575 1574
1576 return((ULONG)CurrCard); 1575 return((unsigned long)CurrCard);
1577} 1576}
1578 1577
1579static void FlashPoint_ReleaseHostAdapter(ULONG pCurrCard) 1578static void FlashPoint_ReleaseHostAdapter(unsigned long pCurrCard)
1580{ 1579{
1581 unsigned char i; 1580 unsigned char i;
1582 ULONG portBase; 1581 unsigned long portBase;
1583 ULONG regOffset; 1582 unsigned long regOffset;
1584 ULONG scamData; 1583 unsigned long scamData;
1585 ULONG *pScamTbl; 1584 unsigned long *pScamTbl;
1586 PNVRamInfo pCurrNvRam; 1585 PNVRamInfo pCurrNvRam;
1587 1586
1588 pCurrNvRam = ((PSCCBcard)pCurrCard)->pNvRamInfo; 1587 pCurrNvRam = ((PSCCBcard)pCurrCard)->pNvRamInfo;
@@ -1601,7 +1600,7 @@ static void FlashPoint_ReleaseHostAdapter(ULONG pCurrCard)
1601 1600
1602 for(i = 0; i < MAX_SCSI_TAR; i++){ 1601 for(i = 0; i < MAX_SCSI_TAR; i++){
1603 regOffset = hp_aramBase + 64 + i*4; 1602 regOffset = hp_aramBase + 64 + i*4;
1604 pScamTbl = (ULONG *) &pCurrNvRam->niScamTbl[i]; 1603 pScamTbl = (unsigned long *) &pCurrNvRam->niScamTbl[i];
1605 scamData = *pScamTbl; 1604 scamData = *pScamTbl;
1606 WR_HARP32(portBase, regOffset, scamData); 1605 WR_HARP32(portBase, regOffset, scamData);
1607 } 1606 }
@@ -1615,10 +1614,10 @@ static void FlashPoint_ReleaseHostAdapter(ULONG pCurrCard)
1615static void FPT_RNVRamData(PNVRamInfo pNvRamInfo) 1614static void FPT_RNVRamData(PNVRamInfo pNvRamInfo)
1616{ 1615{
1617 unsigned char i; 1616 unsigned char i;
1618 ULONG portBase; 1617 unsigned long portBase;
1619 ULONG regOffset; 1618 unsigned long regOffset;
1620 ULONG scamData; 1619 unsigned long scamData;
1621 ULONG *pScamTbl; 1620 unsigned long *pScamTbl;
1622 1621
1623 pNvRamInfo->niModel = FPT_RdStack(pNvRamInfo->niBaseAddr, 0); 1622 pNvRamInfo->niModel = FPT_RdStack(pNvRamInfo->niBaseAddr, 0);
1624 pNvRamInfo->niSysConf = FPT_RdStack(pNvRamInfo->niBaseAddr, 1); 1623 pNvRamInfo->niSysConf = FPT_RdStack(pNvRamInfo->niBaseAddr, 1);
@@ -1634,26 +1633,26 @@ static void FPT_RNVRamData(PNVRamInfo pNvRamInfo)
1634 for(i = 0; i < MAX_SCSI_TAR; i++){ 1633 for(i = 0; i < MAX_SCSI_TAR; i++){
1635 regOffset = hp_aramBase + 64 + i*4; 1634 regOffset = hp_aramBase + 64 + i*4;
1636 RD_HARP32(portBase, regOffset, scamData); 1635 RD_HARP32(portBase, regOffset, scamData);
1637 pScamTbl = (ULONG *) &pNvRamInfo->niScamTbl[i]; 1636 pScamTbl = (unsigned long *) &pNvRamInfo->niScamTbl[i];
1638 *pScamTbl = scamData; 1637 *pScamTbl = scamData;
1639 } 1638 }
1640 1639
1641} 1640}
1642 1641
1643static unsigned char FPT_RdStack(ULONG portBase, unsigned char index) 1642static unsigned char FPT_RdStack(unsigned long portBase, unsigned char index)
1644{ 1643{
1645 WR_HARPOON(portBase + hp_stack_addr, index); 1644 WR_HARPOON(portBase + hp_stack_addr, index);
1646 return(RD_HARPOON(portBase + hp_stack_data)); 1645 return(RD_HARPOON(portBase + hp_stack_data));
1647} 1646}
1648 1647
1649static void FPT_WrStack(ULONG portBase, unsigned char index, unsigned char data) 1648static void FPT_WrStack(unsigned long portBase, unsigned char index, unsigned char data)
1650{ 1649{
1651 WR_HARPOON(portBase + hp_stack_addr, index); 1650 WR_HARPOON(portBase + hp_stack_addr, index);
1652 WR_HARPOON(portBase + hp_stack_data, data); 1651 WR_HARPOON(portBase + hp_stack_data, data);
1653} 1652}
1654 1653
1655 1654
1656static unsigned char FPT_ChkIfChipInitialized(ULONG ioPort) 1655static unsigned char FPT_ChkIfChipInitialized(unsigned long ioPort)
1657{ 1656{
1658 if((RD_HARPOON(ioPort + hp_arb_id) & 0x0f) != FPT_RdStack(ioPort, 4)) 1657 if((RD_HARPOON(ioPort + hp_arb_id) & 0x0f) != FPT_RdStack(ioPort, 4))
1659 return(0); 1658 return(0);
@@ -1675,9 +1674,9 @@ static unsigned char FPT_ChkIfChipInitialized(ULONG ioPort)
1675 * callback function. 1674 * callback function.
1676 * 1675 *
1677 *---------------------------------------------------------------------*/ 1676 *---------------------------------------------------------------------*/
1678static void FlashPoint_StartCCB(ULONG pCurrCard, PSCCB p_Sccb) 1677static void FlashPoint_StartCCB(unsigned long pCurrCard, PSCCB p_Sccb)
1679{ 1678{
1680 ULONG ioport; 1679 unsigned long ioport;
1681 unsigned char thisCard, lun; 1680 unsigned char thisCard, lun;
1682 PSCCB pSaveSccb; 1681 PSCCB pSaveSccb;
1683 CALL_BK_FN callback; 1682 CALL_BK_FN callback;
@@ -1795,9 +1794,9 @@ static void FlashPoint_StartCCB(ULONG pCurrCard, PSCCB p_Sccb)
1795 * callback function. 1794 * callback function.
1796 * 1795 *
1797 *---------------------------------------------------------------------*/ 1796 *---------------------------------------------------------------------*/
1798static int FlashPoint_AbortCCB(ULONG pCurrCard, PSCCB p_Sccb) 1797static int FlashPoint_AbortCCB(unsigned long pCurrCard, PSCCB p_Sccb)
1799{ 1798{
1800 ULONG ioport; 1799 unsigned long ioport;
1801 1800
1802 unsigned char thisCard; 1801 unsigned char thisCard;
1803 CALL_BK_FN callback; 1802 CALL_BK_FN callback;
@@ -1895,9 +1894,9 @@ static int FlashPoint_AbortCCB(ULONG pCurrCard, PSCCB p_Sccb)
1895 * interrupt for this card and disable the IRQ Pin if so. 1894 * interrupt for this card and disable the IRQ Pin if so.
1896 * 1895 *
1897 *---------------------------------------------------------------------*/ 1896 *---------------------------------------------------------------------*/
1898static unsigned char FlashPoint_InterruptPending(ULONG pCurrCard) 1897static unsigned char FlashPoint_InterruptPending(unsigned long pCurrCard)
1899{ 1898{
1900 ULONG ioport; 1899 unsigned long ioport;
1901 1900
1902 ioport = ((PSCCBcard)pCurrCard)->ioPort; 1901 ioport = ((PSCCBcard)pCurrCard)->ioPort;
1903 1902
@@ -1922,13 +1921,13 @@ static unsigned char FlashPoint_InterruptPending(ULONG pCurrCard)
1922 * us. 1921 * us.
1923 * 1922 *
1924 *---------------------------------------------------------------------*/ 1923 *---------------------------------------------------------------------*/
1925static int FlashPoint_HandleInterrupt(ULONG pCurrCard) 1924static int FlashPoint_HandleInterrupt(unsigned long pCurrCard)
1926{ 1925{
1927 PSCCB currSCCB; 1926 PSCCB currSCCB;
1928 unsigned char thisCard,result,bm_status, bm_int_st; 1927 unsigned char thisCard,result,bm_status, bm_int_st;
1929 unsigned short hp_int; 1928 unsigned short hp_int;
1930 unsigned char i, target; 1929 unsigned char i, target;
1931 ULONG ioport; 1930 unsigned long ioport;
1932 1931
1933 thisCard = ((PSCCBcard)pCurrCard)->cardIndex; 1932 thisCard = ((PSCCBcard)pCurrCard)->cardIndex;
1934 ioport = ((PSCCBcard)pCurrCard)->ioPort; 1933 ioport = ((PSCCBcard)pCurrCard)->ioPort;
@@ -2167,7 +2166,7 @@ static int FlashPoint_HandleInterrupt(ULONG pCurrCard)
2167 * processing time. 2166 * processing time.
2168 * 2167 *
2169 *---------------------------------------------------------------------*/ 2168 *---------------------------------------------------------------------*/
2170static unsigned char FPT_SccbMgr_bad_isr(ULONG p_port, unsigned char p_card, 2169static unsigned char FPT_SccbMgr_bad_isr(unsigned long p_port, unsigned char p_card,
2171 PSCCBcard pCurrCard, unsigned short p_int) 2170 PSCCBcard pCurrCard, unsigned short p_int)
2172{ 2171{
2173 unsigned char temp, ScamFlg; 2172 unsigned char temp, ScamFlg;
@@ -2425,7 +2424,7 @@ static void FPT_SccbMgrTableInitTarget(unsigned char p_card, unsigned char targe
2425 * 2424 *
2426 *---------------------------------------------------------------------*/ 2425 *---------------------------------------------------------------------*/
2427 2426
2428static unsigned char FPT_sfm(ULONG port, PSCCB pCurrSCCB) 2427static unsigned char FPT_sfm(unsigned long port, PSCCB pCurrSCCB)
2429{ 2428{
2430 unsigned char message; 2429 unsigned char message;
2431 unsigned short TimeOutLoop; 2430 unsigned short TimeOutLoop;
@@ -2498,12 +2497,12 @@ static unsigned char FPT_sfm(ULONG port, PSCCB pCurrSCCB)
2498 * 2497 *
2499 *---------------------------------------------------------------------*/ 2498 *---------------------------------------------------------------------*/
2500 2499
2501static void FPT_ssel(ULONG port, unsigned char p_card) 2500static void FPT_ssel(unsigned long port, unsigned char p_card)
2502{ 2501{
2503 2502
2504 unsigned char auto_loaded, i, target, *theCCB; 2503 unsigned char auto_loaded, i, target, *theCCB;
2505 2504
2506 ULONG cdb_reg; 2505 unsigned long cdb_reg;
2507 PSCCBcard CurrCard; 2506 PSCCBcard CurrCard;
2508 PSCCB currSCCB; 2507 PSCCB currSCCB;
2509 PSCCBMgr_tar_info currTar_Info; 2508 PSCCBMgr_tar_info currTar_Info;
@@ -2809,7 +2808,7 @@ static void FPT_ssel(ULONG port, unsigned char p_card)
2809 * 2808 *
2810 *---------------------------------------------------------------------*/ 2809 *---------------------------------------------------------------------*/
2811 2810
2812static void FPT_sres(ULONG port, unsigned char p_card, PSCCBcard pCurrCard) 2811static void FPT_sres(unsigned long port, unsigned char p_card, PSCCBcard pCurrCard)
2813{ 2812{
2814 2813
2815 unsigned char our_target, message, lun = 0, tag, msgRetryCount; 2814 unsigned char our_target, message, lun = 0, tag, msgRetryCount;
@@ -3070,7 +3069,7 @@ static void FPT_sres(ULONG port, unsigned char p_card, PSCCBcard pCurrCard)
3070 (RD_HARPOON(port+hp_scsisig) & SCSI_BSY)) ; 3069 (RD_HARPOON(port+hp_scsisig) & SCSI_BSY)) ;
3071} 3070}
3072 3071
3073static void FPT_SendMsg(ULONG port, unsigned char message) 3072static void FPT_SendMsg(unsigned long port, unsigned char message)
3074{ 3073{
3075 while(!(RD_HARPOON(port+hp_scsisig) & SCSI_REQ)) 3074 while(!(RD_HARPOON(port+hp_scsisig) & SCSI_REQ))
3076 { 3075 {
@@ -3119,7 +3118,7 @@ static void FPT_SendMsg(ULONG port, unsigned char message)
3119 * target device. 3118 * target device.
3120 * 3119 *
3121 *---------------------------------------------------------------------*/ 3120 *---------------------------------------------------------------------*/
3122static void FPT_sdecm(unsigned char message, ULONG port, unsigned char p_card) 3121static void FPT_sdecm(unsigned char message, unsigned long port, unsigned char p_card)
3123{ 3122{
3124 PSCCB currSCCB; 3123 PSCCB currSCCB;
3125 PSCCBcard CurrCard; 3124 PSCCBcard CurrCard;
@@ -3298,7 +3297,7 @@ static void FPT_sdecm(unsigned char message, ULONG port, unsigned char p_card)
3298 * Description: Decide what to do with the extended message. 3297 * Description: Decide what to do with the extended message.
3299 * 3298 *
3300 *---------------------------------------------------------------------*/ 3299 *---------------------------------------------------------------------*/
3301static void FPT_shandem(ULONG port, unsigned char p_card, PSCCB pCurrSCCB) 3300static void FPT_shandem(unsigned long port, unsigned char p_card, PSCCB pCurrSCCB)
3302{ 3301{
3303 unsigned char length,message; 3302 unsigned char length,message;
3304 3303
@@ -3377,7 +3376,7 @@ static void FPT_shandem(ULONG port, unsigned char p_card, PSCCB pCurrSCCB)
3377 * 3376 *
3378 *---------------------------------------------------------------------*/ 3377 *---------------------------------------------------------------------*/
3379 3378
3380static unsigned char FPT_sisyncn(ULONG port, unsigned char p_card, unsigned char syncFlag) 3379static unsigned char FPT_sisyncn(unsigned long port, unsigned char p_card, unsigned char syncFlag)
3381{ 3380{
3382 PSCCB currSCCB; 3381 PSCCB currSCCB;
3383 PSCCBMgr_tar_info currTar_Info; 3382 PSCCBMgr_tar_info currTar_Info;
@@ -3452,7 +3451,7 @@ static unsigned char FPT_sisyncn(ULONG port, unsigned char p_card, unsigned char
3452 * necessary. 3451 * necessary.
3453 * 3452 *
3454 *---------------------------------------------------------------------*/ 3453 *---------------------------------------------------------------------*/
3455static void FPT_stsyncn(ULONG port, unsigned char p_card) 3454static void FPT_stsyncn(unsigned long port, unsigned char p_card)
3456{ 3455{
3457 unsigned char sync_msg,offset,sync_reg,our_sync_msg; 3456 unsigned char sync_msg,offset,sync_reg,our_sync_msg;
3458 PSCCB currSCCB; 3457 PSCCB currSCCB;
@@ -3584,7 +3583,7 @@ static void FPT_stsyncn(ULONG port, unsigned char p_card)
3584 * Description: Answer the targets sync message. 3583 * Description: Answer the targets sync message.
3585 * 3584 *
3586 *---------------------------------------------------------------------*/ 3585 *---------------------------------------------------------------------*/
3587static void FPT_sisyncr(ULONG port,unsigned char sync_pulse, unsigned char offset) 3586static void FPT_sisyncr(unsigned long port,unsigned char sync_pulse, unsigned char offset)
3588{ 3587{
3589 ARAM_ACCESS(port); 3588 ARAM_ACCESS(port);
3590 WRW_HARPOON((port+SYNC_MSGS+0), (MPM_OP+AMSG_OUT+SMEXT )); 3589 WRW_HARPOON((port+SYNC_MSGS+0), (MPM_OP+AMSG_OUT+SMEXT ));
@@ -3615,7 +3614,7 @@ static void FPT_sisyncr(ULONG port,unsigned char sync_pulse, unsigned char offse
3615 * 3614 *
3616 *---------------------------------------------------------------------*/ 3615 *---------------------------------------------------------------------*/
3617 3616
3618static unsigned char FPT_siwidn(ULONG port, unsigned char p_card) 3617static unsigned char FPT_siwidn(unsigned long port, unsigned char p_card)
3619{ 3618{
3620 PSCCB currSCCB; 3619 PSCCB currSCCB;
3621 PSCCBMgr_tar_info currTar_Info; 3620 PSCCBMgr_tar_info currTar_Info;
@@ -3667,7 +3666,7 @@ static unsigned char FPT_siwidn(ULONG port, unsigned char p_card)
3667 * necessary. 3666 * necessary.
3668 * 3667 *
3669 *---------------------------------------------------------------------*/ 3668 *---------------------------------------------------------------------*/
3670static void FPT_stwidn(ULONG port, unsigned char p_card) 3669static void FPT_stwidn(unsigned long port, unsigned char p_card)
3671{ 3670{
3672 unsigned char width; 3671 unsigned char width;
3673 PSCCB currSCCB; 3672 PSCCB currSCCB;
@@ -3747,7 +3746,7 @@ static void FPT_stwidn(ULONG port, unsigned char p_card)
3747 * Description: Answer the targets Wide nego message. 3746 * Description: Answer the targets Wide nego message.
3748 * 3747 *
3749 *---------------------------------------------------------------------*/ 3748 *---------------------------------------------------------------------*/
3750static void FPT_siwidr(ULONG port, unsigned char width) 3749static void FPT_siwidr(unsigned long port, unsigned char width)
3751{ 3750{
3752 ARAM_ACCESS(port); 3751 ARAM_ACCESS(port);
3753 WRW_HARPOON((port+SYNC_MSGS+0), (MPM_OP+AMSG_OUT+SMEXT )); 3752 WRW_HARPOON((port+SYNC_MSGS+0), (MPM_OP+AMSG_OUT+SMEXT ));
@@ -3776,7 +3775,7 @@ static void FPT_siwidr(ULONG port, unsigned char width)
3776 * ID specified. 3775 * ID specified.
3777 * 3776 *
3778 *---------------------------------------------------------------------*/ 3777 *---------------------------------------------------------------------*/
3779static void FPT_sssyncv(ULONG p_port, unsigned char p_id, unsigned char p_sync_value, 3778static void FPT_sssyncv(unsigned long p_port, unsigned char p_id, unsigned char p_sync_value,
3780 PSCCBMgr_tar_info currTar_Info) 3779 PSCCBMgr_tar_info currTar_Info)
3781{ 3780{
3782 unsigned char index; 3781 unsigned char index;
@@ -3848,7 +3847,7 @@ static void FPT_sssyncv(ULONG p_port, unsigned char p_id, unsigned char p_sync_v
3848 * Description: Reset the desired card's SCSI bus. 3847 * Description: Reset the desired card's SCSI bus.
3849 * 3848 *
3850 *---------------------------------------------------------------------*/ 3849 *---------------------------------------------------------------------*/
3851static void FPT_sresb(ULONG port, unsigned char p_card) 3850static void FPT_sresb(unsigned long port, unsigned char p_card)
3852{ 3851{
3853 unsigned char scsiID, i; 3852 unsigned char scsiID, i;
3854 3853
@@ -3970,7 +3969,7 @@ static void FPT_ssenss(PSCCBcard pCurrCard)
3970 * 3969 *
3971 *---------------------------------------------------------------------*/ 3970 *---------------------------------------------------------------------*/
3972 3971
3973static void FPT_sxfrp(ULONG p_port, unsigned char p_card) 3972static void FPT_sxfrp(unsigned long p_port, unsigned char p_card)
3974{ 3973{
3975 unsigned char curr_phz; 3974 unsigned char curr_phz;
3976 3975
@@ -4052,7 +4051,7 @@ static void FPT_sxfrp(ULONG p_port, unsigned char p_card)
4052 * 4051 *
4053 *---------------------------------------------------------------------*/ 4052 *---------------------------------------------------------------------*/
4054 4053
4055static void FPT_schkdd(ULONG port, unsigned char p_card) 4054static void FPT_schkdd(unsigned long port, unsigned char p_card)
4056{ 4055{
4057 unsigned short TimeOutLoop; 4056 unsigned short TimeOutLoop;
4058 unsigned char sPhase; 4057 unsigned char sPhase;
@@ -4245,10 +4244,10 @@ static void FPT_sinits(PSCCB p_sccb, unsigned char p_card)
4245 * 4244 *
4246 *---------------------------------------------------------------------*/ 4245 *---------------------------------------------------------------------*/
4247 4246
4248static void FPT_phaseDecode(ULONG p_port, unsigned char p_card) 4247static void FPT_phaseDecode(unsigned long p_port, unsigned char p_card)
4249{ 4248{
4250 unsigned char phase_ref; 4249 unsigned char phase_ref;
4251 void (*phase) (ULONG, unsigned char); 4250 void (*phase) (unsigned long, unsigned char);
4252 4251
4253 4252
4254 DISABLE_AUTO(p_port); 4253 DISABLE_AUTO(p_port);
@@ -4270,7 +4269,7 @@ static void FPT_phaseDecode(ULONG p_port, unsigned char p_card)
4270 * 4269 *
4271 *---------------------------------------------------------------------*/ 4270 *---------------------------------------------------------------------*/
4272 4271
4273static void FPT_phaseDataOut(ULONG port, unsigned char p_card) 4272static void FPT_phaseDataOut(unsigned long port, unsigned char p_card)
4274{ 4273{
4275 4274
4276 PSCCB currSCCB; 4275 PSCCB currSCCB;
@@ -4314,7 +4313,7 @@ static void FPT_phaseDataOut(ULONG port, unsigned char p_card)
4314 * 4313 *
4315 *---------------------------------------------------------------------*/ 4314 *---------------------------------------------------------------------*/
4316 4315
4317static void FPT_phaseDataIn(ULONG port, unsigned char p_card) 4316static void FPT_phaseDataIn(unsigned long port, unsigned char p_card)
4318{ 4317{
4319 4318
4320 PSCCB currSCCB; 4319 PSCCB currSCCB;
@@ -4361,10 +4360,10 @@ static void FPT_phaseDataIn(ULONG port, unsigned char p_card)
4361 * 4360 *
4362 *---------------------------------------------------------------------*/ 4361 *---------------------------------------------------------------------*/
4363 4362
4364static void FPT_phaseCommand(ULONG p_port, unsigned char p_card) 4363static void FPT_phaseCommand(unsigned long p_port, unsigned char p_card)
4365{ 4364{
4366 PSCCB currSCCB; 4365 PSCCB currSCCB;
4367 ULONG cdb_reg; 4366 unsigned long cdb_reg;
4368 unsigned char i; 4367 unsigned char i;
4369 4368
4370 currSCCB = FPT_BL_Card[p_card].currentSCCB; 4369 currSCCB = FPT_BL_Card[p_card].currentSCCB;
@@ -4413,7 +4412,7 @@ static void FPT_phaseCommand(ULONG p_port, unsigned char p_card)
4413 * 4412 *
4414 *---------------------------------------------------------------------*/ 4413 *---------------------------------------------------------------------*/
4415 4414
4416static void FPT_phaseStatus(ULONG port, unsigned char p_card) 4415static void FPT_phaseStatus(unsigned long port, unsigned char p_card)
4417{ 4416{
4418 /* Start-up the automation to finish off this command and let the 4417 /* Start-up the automation to finish off this command and let the
4419 isr handle the interrupt for command complete when it comes in. 4418 isr handle the interrupt for command complete when it comes in.
@@ -4435,7 +4434,7 @@ static void FPT_phaseStatus(ULONG port, unsigned char p_card)
4435 * 4434 *
4436 *---------------------------------------------------------------------*/ 4435 *---------------------------------------------------------------------*/
4437 4436
4438static void FPT_phaseMsgOut(ULONG port, unsigned char p_card) 4437static void FPT_phaseMsgOut(unsigned long port, unsigned char p_card)
4439{ 4438{
4440 unsigned char message,scsiID; 4439 unsigned char message,scsiID;
4441 PSCCB currSCCB; 4440 PSCCB currSCCB;
@@ -4583,7 +4582,7 @@ static void FPT_phaseMsgOut(ULONG port, unsigned char p_card)
4583 * 4582 *
4584 *---------------------------------------------------------------------*/ 4583 *---------------------------------------------------------------------*/
4585 4584
4586static void FPT_phaseMsgIn(ULONG port, unsigned char p_card) 4585static void FPT_phaseMsgIn(unsigned long port, unsigned char p_card)
4587{ 4586{
4588 unsigned char message; 4587 unsigned char message;
4589 PSCCB currSCCB; 4588 PSCCB currSCCB;
@@ -4636,7 +4635,7 @@ static void FPT_phaseMsgIn(ULONG port, unsigned char p_card)
4636 * 4635 *
4637 *---------------------------------------------------------------------*/ 4636 *---------------------------------------------------------------------*/
4638 4637
4639static void FPT_phaseIllegal(ULONG port, unsigned char p_card) 4638static void FPT_phaseIllegal(unsigned long port, unsigned char p_card)
4640{ 4639{
4641 PSCCB currSCCB; 4640 PSCCB currSCCB;
4642 4641
@@ -4664,9 +4663,9 @@ static void FPT_phaseIllegal(ULONG port, unsigned char p_card)
4664 * 4663 *
4665 *---------------------------------------------------------------------*/ 4664 *---------------------------------------------------------------------*/
4666 4665
4667static void FPT_phaseChkFifo(ULONG port, unsigned char p_card) 4666static void FPT_phaseChkFifo(unsigned long port, unsigned char p_card)
4668{ 4667{
4669 ULONG xfercnt; 4668 unsigned long xfercnt;
4670 PSCCB currSCCB; 4669 PSCCB currSCCB;
4671 4670
4672 currSCCB = FPT_BL_Card[p_card].currentSCCB; 4671 currSCCB = FPT_BL_Card[p_card].currentSCCB;
@@ -4742,7 +4741,7 @@ static void FPT_phaseChkFifo(ULONG port, unsigned char p_card)
4742 * because of command complete or from a disconnect. 4741 * because of command complete or from a disconnect.
4743 * 4742 *
4744 *---------------------------------------------------------------------*/ 4743 *---------------------------------------------------------------------*/
4745static void FPT_phaseBusFree(ULONG port, unsigned char p_card) 4744static void FPT_phaseBusFree(unsigned long port, unsigned char p_card)
4746{ 4745{
4747 PSCCB currSCCB; 4746 PSCCB currSCCB;
4748 4747
@@ -4840,9 +4839,9 @@ static void FPT_phaseBusFree(ULONG port, unsigned char p_card)
4840 * Description: Load the Automation RAM with the defualt map values. 4839 * Description: Load the Automation RAM with the defualt map values.
4841 * 4840 *
4842 *---------------------------------------------------------------------*/ 4841 *---------------------------------------------------------------------*/
4843static void FPT_autoLoadDefaultMap(ULONG p_port) 4842static void FPT_autoLoadDefaultMap(unsigned long p_port)
4844{ 4843{
4845 ULONG map_addr; 4844 unsigned long map_addr;
4846 4845
4847 ARAM_ACCESS(p_port); 4846 ARAM_ACCESS(p_port);
4848 map_addr = p_port + hp_aramBase; 4847 map_addr = p_port + hp_aramBase;
@@ -4948,7 +4947,7 @@ static void FPT_autoLoadDefaultMap(ULONG p_port)
4948 * 4947 *
4949 *---------------------------------------------------------------------*/ 4948 *---------------------------------------------------------------------*/
4950 4949
4951static void FPT_autoCmdCmplt(ULONG p_port, unsigned char p_card) 4950static void FPT_autoCmdCmplt(unsigned long p_port, unsigned char p_card)
4952{ 4951{
4953 PSCCB currSCCB; 4952 PSCCB currSCCB;
4954 unsigned char status_byte; 4953 unsigned char status_byte;
@@ -5163,7 +5162,7 @@ static void FPT_autoCmdCmplt(ULONG p_port, unsigned char p_card)
5163 * 5162 *
5164 *---------------------------------------------------------------------*/ 5163 *---------------------------------------------------------------------*/
5165 5164
5166static void FPT_dataXferProcessor(ULONG port, PSCCBcard pCurrCard) 5165static void FPT_dataXferProcessor(unsigned long port, PSCCBcard pCurrCard)
5167{ 5166{
5168 PSCCB currSCCB; 5167 PSCCB currSCCB;
5169 5168
@@ -5201,21 +5200,21 @@ static void FPT_dataXferProcessor(ULONG port, PSCCBcard pCurrCard)
5201 * Description: 5200 * Description:
5202 * 5201 *
5203 *---------------------------------------------------------------------*/ 5202 *---------------------------------------------------------------------*/
5204static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB) 5203static void FPT_busMstrSGDataXferStart(unsigned long p_port, PSCCB pcurrSCCB)
5205{ 5204{
5206 ULONG count,addr,tmpSGCnt; 5205 unsigned long count,addr,tmpSGCnt;
5207 unsigned int sg_index; 5206 unsigned int sg_index;
5208 unsigned char sg_count, i; 5207 unsigned char sg_count, i;
5209 ULONG reg_offset; 5208 unsigned long reg_offset;
5210 5209
5211 5210
5212 if (pcurrSCCB->Sccb_XferState & F_HOST_XFER_DIR) { 5211 if (pcurrSCCB->Sccb_XferState & F_HOST_XFER_DIR) {
5213 5212
5214 count = ((ULONG) HOST_RD_CMD)<<24; 5213 count = ((unsigned long) HOST_RD_CMD)<<24;
5215 } 5214 }
5216 5215
5217 else { 5216 else {
5218 count = ((ULONG) HOST_WRT_CMD)<<24; 5217 count = ((unsigned long) HOST_WRT_CMD)<<24;
5219 } 5218 }
5220 5219
5221 sg_count = 0; 5220 sg_count = 0;
@@ -5230,15 +5229,15 @@ static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
5230 WR_HARPOON(p_port+hp_page_ctrl, i); 5229 WR_HARPOON(p_port+hp_page_ctrl, i);
5231 5230
5232 while ((sg_count < (unsigned char)SG_BUF_CNT) && 5231 while ((sg_count < (unsigned char)SG_BUF_CNT) &&
5233 ((ULONG)(sg_index * (unsigned int)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) { 5232 ((unsigned long)(sg_index * (unsigned int)SG_ELEMENT_SIZE) < pcurrSCCB->DataLength) ) {
5234 5233
5235 tmpSGCnt += *(((ULONG *)pcurrSCCB->DataPointer)+ 5234 tmpSGCnt += *(((unsigned long *)pcurrSCCB->DataPointer)+
5236 (sg_index * 2)); 5235 (sg_index * 2));
5237 5236
5238 count |= *(((ULONG *)pcurrSCCB->DataPointer)+ 5237 count |= *(((unsigned long *)pcurrSCCB->DataPointer)+
5239 (sg_index * 2)); 5238 (sg_index * 2));
5240 5239
5241 addr = *(((ULONG *)pcurrSCCB->DataPointer)+ 5240 addr = *(((unsigned long *)pcurrSCCB->DataPointer)+
5242 ((sg_index * 2) + 1)); 5241 ((sg_index * 2) + 1));
5243 5242
5244 5243
@@ -5306,15 +5305,15 @@ static void FPT_busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
5306 * Description: 5305 * Description:
5307 * 5306 *
5308 *---------------------------------------------------------------------*/ 5307 *---------------------------------------------------------------------*/
5309static void FPT_busMstrDataXferStart(ULONG p_port, PSCCB pcurrSCCB) 5308static void FPT_busMstrDataXferStart(unsigned long p_port, PSCCB pcurrSCCB)
5310{ 5309{
5311 ULONG addr,count; 5310 unsigned long addr,count;
5312 5311
5313 if (!(pcurrSCCB->Sccb_XferState & F_AUTO_SENSE)) { 5312 if (!(pcurrSCCB->Sccb_XferState & F_AUTO_SENSE)) {
5314 5313
5315 count = pcurrSCCB->Sccb_XferCnt; 5314 count = pcurrSCCB->Sccb_XferCnt;
5316 5315
5317 addr = (ULONG) pcurrSCCB->DataPointer + pcurrSCCB->Sccb_ATC; 5316 addr = (unsigned long) pcurrSCCB->DataPointer + pcurrSCCB->Sccb_ATC;
5318 } 5317 }
5319 5318
5320 else { 5319 else {
@@ -5359,9 +5358,9 @@ static void FPT_busMstrDataXferStart(ULONG p_port, PSCCB pcurrSCCB)
5359 * command busy is also time out, it'll just give up. 5358 * command busy is also time out, it'll just give up.
5360 * 5359 *
5361 *---------------------------------------------------------------------*/ 5360 *---------------------------------------------------------------------*/
5362static unsigned char FPT_busMstrTimeOut(ULONG p_port) 5361static unsigned char FPT_busMstrTimeOut(unsigned long p_port)
5363{ 5362{
5364 ULONG timeout; 5363 unsigned long timeout;
5365 5364
5366 timeout = LONG_WAIT; 5365 timeout = LONG_WAIT;
5367 5366
@@ -5397,11 +5396,11 @@ static unsigned char FPT_busMstrTimeOut(ULONG p_port)
5397 * Description: Abort any in progress transfer. 5396 * Description: Abort any in progress transfer.
5398 * 5397 *
5399 *---------------------------------------------------------------------*/ 5398 *---------------------------------------------------------------------*/
5400static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrSCCB) 5399static void FPT_hostDataXferAbort(unsigned long port, unsigned char p_card, PSCCB pCurrSCCB)
5401{ 5400{
5402 5401
5403 ULONG timeout; 5402 unsigned long timeout;
5404 ULONG remain_cnt; 5403 unsigned long remain_cnt;
5405 unsigned int sg_ptr; 5404 unsigned int sg_ptr;
5406 5405
5407 FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT; 5406 FPT_BL_Card[p_card].globalFlags &= ~F_HOST_XFER_ACT;
@@ -5464,10 +5463,10 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5464 5463
5465 sg_ptr--; 5464 sg_ptr--;
5466 5465
5467 if (remain_cnt > (ULONG)(*(((ULONG *)pCurrSCCB-> 5466 if (remain_cnt > (unsigned long)(*(((unsigned long *)pCurrSCCB->
5468 DataPointer) + (sg_ptr * 2)))) { 5467 DataPointer) + (sg_ptr * 2)))) {
5469 5468
5470 remain_cnt -= (ULONG)(*(((ULONG *)pCurrSCCB-> 5469 remain_cnt -= (unsigned long)(*(((unsigned long *)pCurrSCCB->
5471 DataPointer) + (sg_ptr * 2))); 5470 DataPointer) + (sg_ptr * 2)));
5472 } 5471 }
5473 5472
@@ -5487,7 +5486,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5487 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr; 5486 pCurrSCCB->Sccb_sgseg = (unsigned short)sg_ptr;
5488 5487
5489 5488
5490 if ((ULONG)(sg_ptr * SG_ELEMENT_SIZE) == pCurrSCCB->DataLength 5489 if ((unsigned long)(sg_ptr * SG_ELEMENT_SIZE) == pCurrSCCB->DataLength
5491 && (remain_cnt == 0)) 5490 && (remain_cnt == 0))
5492 5491
5493 pCurrSCCB->Sccb_XferState |= F_ALL_XFERRED; 5492 pCurrSCCB->Sccb_XferState |= F_ALL_XFERRED;
@@ -5624,7 +5623,7 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5624 pCurrSCCB->Sccb_SGoffset = 0x00; 5623 pCurrSCCB->Sccb_SGoffset = 0x00;
5625 5624
5626 5625
5627 if ((ULONG)(pCurrSCCB->Sccb_sgseg * SG_ELEMENT_SIZE) >= 5626 if ((unsigned long)(pCurrSCCB->Sccb_sgseg * SG_ELEMENT_SIZE) >=
5628 pCurrSCCB->DataLength) { 5627 pCurrSCCB->DataLength) {
5629 5628
5630 pCurrSCCB->Sccb_XferState |= F_ALL_XFERRED; 5629 pCurrSCCB->Sccb_XferState |= F_ALL_XFERRED;
@@ -5657,9 +5656,9 @@ static void FPT_hostDataXferAbort(ULONG port, unsigned char p_card, PSCCB pCurrS
5657 *---------------------------------------------------------------------*/ 5656 *---------------------------------------------------------------------*/
5658static void FPT_hostDataXferRestart(PSCCB currSCCB) 5657static void FPT_hostDataXferRestart(PSCCB currSCCB)
5659{ 5658{
5660 ULONG data_count; 5659 unsigned long data_count;
5661 unsigned int sg_index; 5660 unsigned int sg_index;
5662 ULONG *sg_ptr; 5661 unsigned long *sg_ptr;
5663 5662
5664 if (currSCCB->Sccb_XferState & F_SG_XFER) { 5663 if (currSCCB->Sccb_XferState & F_SG_XFER) {
5665 5664
@@ -5668,7 +5667,7 @@ static void FPT_hostDataXferRestart(PSCCB currSCCB)
5668 sg_index = 0xffff; /*Index by long words into sg list. */ 5667 sg_index = 0xffff; /*Index by long words into sg list. */
5669 data_count = 0; /*Running count of SG xfer counts. */ 5668 data_count = 0; /*Running count of SG xfer counts. */
5670 5669
5671 sg_ptr = (ULONG *)currSCCB->DataPointer; 5670 sg_ptr = (unsigned long *)currSCCB->DataPointer;
5672 5671
5673 while (data_count < currSCCB->Sccb_ATC) { 5672 while (data_count < currSCCB->Sccb_ATC) {
5674 5673
@@ -5708,7 +5707,7 @@ static void FPT_scini(unsigned char p_card, unsigned char p_our_id, unsigned cha
5708{ 5707{
5709 5708
5710 unsigned char loser,assigned_id; 5709 unsigned char loser,assigned_id;
5711 ULONG p_port; 5710 unsigned long p_port;
5712 5711
5713 unsigned char i,k,ScamFlg ; 5712 unsigned char i,k,ScamFlg ;
5714 PSCCBcard currCard; 5713 PSCCBcard currCard;
@@ -5900,7 +5899,7 @@ static void FPT_scini(unsigned char p_card, unsigned char p_our_id, unsigned cha
5900 * 5899 *
5901 *---------------------------------------------------------------------*/ 5900 *---------------------------------------------------------------------*/
5902 5901
5903static int FPT_scarb(ULONG p_port, unsigned char p_sel_type) 5902static int FPT_scarb(unsigned long p_port, unsigned char p_sel_type)
5904{ 5903{
5905 if (p_sel_type == INIT_SELTD) 5904 if (p_sel_type == INIT_SELTD)
5906 { 5905 {
@@ -5961,7 +5960,7 @@ static int FPT_scarb(ULONG p_port, unsigned char p_sel_type)
5961 * 5960 *
5962 *---------------------------------------------------------------------*/ 5961 *---------------------------------------------------------------------*/
5963 5962
5964static void FPT_scbusf(ULONG p_port) 5963static void FPT_scbusf(unsigned long p_port)
5965{ 5964{
5966 WR_HARPOON(p_port+hp_page_ctrl, 5965 WR_HARPOON(p_port+hp_page_ctrl,
5967 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)); 5966 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE));
@@ -5997,7 +5996,7 @@ static void FPT_scbusf(ULONG p_port)
5997 * 5996 *
5998 *---------------------------------------------------------------------*/ 5997 *---------------------------------------------------------------------*/
5999 5998
6000static void FPT_scasid(unsigned char p_card, ULONG p_port) 5999static void FPT_scasid(unsigned char p_card, unsigned long p_port)
6001{ 6000{
6002 unsigned char temp_id_string[ID_STRING_LENGTH]; 6001 unsigned char temp_id_string[ID_STRING_LENGTH];
6003 6002
@@ -6085,7 +6084,7 @@ static void FPT_scasid(unsigned char p_card, ULONG p_port)
6085 * 6084 *
6086 *---------------------------------------------------------------------*/ 6085 *---------------------------------------------------------------------*/
6087 6086
6088static void FPT_scsel(ULONG p_port) 6087static void FPT_scsel(unsigned long p_port)
6089{ 6088{
6090 6089
6091 WR_HARPOON(p_port+hp_scsisig, SCSI_SEL); 6090 WR_HARPOON(p_port+hp_scsisig, SCSI_SEL);
@@ -6119,7 +6118,7 @@ static void FPT_scsel(ULONG p_port)
6119 * 6118 *
6120 *---------------------------------------------------------------------*/ 6119 *---------------------------------------------------------------------*/
6121 6120
6122static unsigned char FPT_scxferc(ULONG p_port, unsigned char p_data) 6121static unsigned char FPT_scxferc(unsigned long p_port, unsigned char p_data)
6123{ 6122{
6124 unsigned char curr_data, ret_data; 6123 unsigned char curr_data, ret_data;
6125 6124
@@ -6170,7 +6169,7 @@ static unsigned char FPT_scxferc(ULONG p_port, unsigned char p_data)
6170 * 6169 *
6171 *---------------------------------------------------------------------*/ 6170 *---------------------------------------------------------------------*/
6172 6171
6173static unsigned char FPT_scsendi(ULONG p_port, unsigned char p_id_string[]) 6172static unsigned char FPT_scsendi(unsigned long p_port, unsigned char p_id_string[])
6174{ 6173{
6175 unsigned char ret_data,byte_cnt,bit_cnt,defer; 6174 unsigned char ret_data,byte_cnt,bit_cnt,defer;
6176 6175
@@ -6223,7 +6222,7 @@ static unsigned char FPT_scsendi(ULONG p_port, unsigned char p_id_string[])
6223 * 6222 *
6224 *---------------------------------------------------------------------*/ 6223 *---------------------------------------------------------------------*/
6225 6224
6226static unsigned char FPT_sciso(ULONG p_port, unsigned char p_id_string[]) 6225static unsigned char FPT_sciso(unsigned long p_port, unsigned char p_id_string[])
6227{ 6226{
6228 unsigned char ret_data,the_data,byte_cnt,bit_cnt; 6227 unsigned char ret_data,the_data,byte_cnt,bit_cnt;
6229 6228
@@ -6284,7 +6283,7 @@ static unsigned char FPT_sciso(ULONG p_port, unsigned char p_id_string[])
6284 * 6283 *
6285 *---------------------------------------------------------------------*/ 6284 *---------------------------------------------------------------------*/
6286 6285
6287static void FPT_scwirod(ULONG p_port, unsigned char p_data_bit) 6286static void FPT_scwirod(unsigned long p_port, unsigned char p_data_bit)
6288{ 6287{
6289 unsigned char i; 6288 unsigned char i;
6290 6289
@@ -6313,7 +6312,7 @@ static void FPT_scwirod(ULONG p_port, unsigned char p_data_bit)
6313 * 6312 *
6314 *---------------------------------------------------------------------*/ 6313 *---------------------------------------------------------------------*/
6315 6314
6316static void FPT_scwiros(ULONG p_port, unsigned char p_data_bit) 6315static void FPT_scwiros(unsigned long p_port, unsigned char p_data_bit)
6317{ 6316{
6318 unsigned char i; 6317 unsigned char i;
6319 6318
@@ -6367,9 +6366,9 @@ static unsigned char FPT_scvalq(unsigned char p_quintet)
6367 * 6366 *
6368 *---------------------------------------------------------------------*/ 6367 *---------------------------------------------------------------------*/
6369 6368
6370static unsigned char FPT_scsell(ULONG p_port, unsigned char targ_id) 6369static unsigned char FPT_scsell(unsigned long p_port, unsigned char targ_id)
6371{ 6370{
6372 ULONG i; 6371 unsigned long i;
6373 6372
6374 WR_HARPOON(p_port+hp_page_ctrl, 6373 WR_HARPOON(p_port+hp_page_ctrl,
6375 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)); 6374 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE));
@@ -6446,7 +6445,7 @@ static unsigned char FPT_scsell(ULONG p_port, unsigned char targ_id)
6446 * 6445 *
6447 *---------------------------------------------------------------------*/ 6446 *---------------------------------------------------------------------*/
6448 6447
6449static void FPT_scwtsel(ULONG p_port) 6448static void FPT_scwtsel(unsigned long p_port)
6450{ 6449{
6451 while(!(RDW_HARPOON((p_port+hp_intstat)) & SCAM_SEL)) {} 6450 while(!(RDW_HARPOON((p_port+hp_intstat)) & SCAM_SEL)) {}
6452} 6451}
@@ -6460,7 +6459,7 @@ static void FPT_scwtsel(ULONG p_port)
6460 * 6459 *
6461 *---------------------------------------------------------------------*/ 6460 *---------------------------------------------------------------------*/
6462 6461
6463static void FPT_inisci(unsigned char p_card, ULONG p_port, unsigned char p_our_id) 6462static void FPT_inisci(unsigned char p_card, unsigned long p_port, unsigned char p_our_id)
6464{ 6463{
6465 unsigned char i,k,max_id; 6464 unsigned char i,k,max_id;
6466 unsigned short ee_data; 6465 unsigned short ee_data;
@@ -6653,7 +6652,7 @@ static unsigned char FPT_scmachid(unsigned char p_card, unsigned char p_id_strin
6653 * 6652 *
6654 *---------------------------------------------------------------------*/ 6653 *---------------------------------------------------------------------*/
6655 6654
6656static void FPT_scsavdi(unsigned char p_card, ULONG p_port) 6655static void FPT_scsavdi(unsigned char p_card, unsigned long p_port)
6657{ 6656{
6658 unsigned char i,k,max_id; 6657 unsigned char i,k,max_id;
6659 unsigned short ee_data,sum_data; 6658 unsigned short ee_data,sum_data;
@@ -6702,7 +6701,7 @@ static void FPT_scsavdi(unsigned char p_card, ULONG p_port)
6702 * 6701 *
6703 *---------------------------------------------------------------------*/ 6702 *---------------------------------------------------------------------*/
6704 6703
6705static void FPT_XbowInit(ULONG port, unsigned char ScamFlg) 6704static void FPT_XbowInit(unsigned long port, unsigned char ScamFlg)
6706{ 6705{
6707unsigned char i; 6706unsigned char i;
6708 6707
@@ -6752,7 +6751,7 @@ unsigned char i;
6752 * 6751 *
6753 *---------------------------------------------------------------------*/ 6752 *---------------------------------------------------------------------*/
6754 6753
6755static void FPT_BusMasterInit(ULONG p_port) 6754static void FPT_BusMasterInit(unsigned long p_port)
6756{ 6755{
6757 6756
6758 6757
@@ -6783,7 +6782,7 @@ static void FPT_BusMasterInit(ULONG p_port)
6783 * 6782 *
6784 *---------------------------------------------------------------------*/ 6783 *---------------------------------------------------------------------*/
6785 6784
6786static void FPT_DiagEEPROM(ULONG p_port) 6785static void FPT_DiagEEPROM(unsigned long p_port)
6787{ 6786{
6788 unsigned short index,temp,max_wd_cnt; 6787 unsigned short index,temp,max_wd_cnt;
6789 6788
@@ -7416,9 +7415,9 @@ static unsigned char FPT_queueFindSccb(PSCCB p_SCCB, unsigned char p_card)
7416 7415
7417static void FPT_utilUpdateResidual(PSCCB p_SCCB) 7416static void FPT_utilUpdateResidual(PSCCB p_SCCB)
7418{ 7417{
7419 ULONG partial_cnt; 7418 unsigned long partial_cnt;
7420 unsigned int sg_index; 7419 unsigned int sg_index;
7421 ULONG *sg_ptr; 7420 unsigned long *sg_ptr;
7422 7421
7423 if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) { 7422 if (p_SCCB->Sccb_XferState & F_ALL_XFERRED) {
7424 7423
@@ -7431,7 +7430,7 @@ static void FPT_utilUpdateResidual(PSCCB p_SCCB)
7431 7430
7432 sg_index = p_SCCB->Sccb_sgseg; 7431 sg_index = p_SCCB->Sccb_sgseg;
7433 7432
7434 sg_ptr = (ULONG *)p_SCCB->DataPointer; 7433 sg_ptr = (unsigned long *)p_SCCB->DataPointer;
7435 7434
7436 if (p_SCCB->Sccb_SGoffset) { 7435 if (p_SCCB->Sccb_SGoffset) {
7437 7436
@@ -7439,7 +7438,7 @@ static void FPT_utilUpdateResidual(PSCCB p_SCCB)
7439 sg_index++; 7438 sg_index++;
7440 } 7439 }
7441 7440
7442 while ( ((ULONG)sg_index * (ULONG)SG_ELEMENT_SIZE) < 7441 while ( ((unsigned long)sg_index * (unsigned long)SG_ELEMENT_SIZE) <
7443 p_SCCB->DataLength ) { 7442 p_SCCB->DataLength ) {
7444 7443
7445 partial_cnt += *(sg_ptr+(sg_index * 2)); 7444 partial_cnt += *(sg_ptr+(sg_index * 2));
@@ -7464,7 +7463,7 @@ static void FPT_utilUpdateResidual(PSCCB p_SCCB)
7464 * 7463 *
7465 *---------------------------------------------------------------------*/ 7464 *---------------------------------------------------------------------*/
7466 7465
7467static void FPT_Wait1Second(ULONG p_port) 7466static void FPT_Wait1Second(unsigned long p_port)
7468{ 7467{
7469 unsigned char i; 7468 unsigned char i;
7470 7469
@@ -7489,7 +7488,7 @@ static void FPT_Wait1Second(ULONG p_port)
7489 * 7488 *
7490 *---------------------------------------------------------------------*/ 7489 *---------------------------------------------------------------------*/
7491 7490
7492static void FPT_Wait(ULONG p_port, unsigned char p_delay) 7491static void FPT_Wait(unsigned long p_port, unsigned char p_delay)
7493{ 7492{
7494 unsigned char old_timer; 7493 unsigned char old_timer;
7495 unsigned char green_flag; 7494 unsigned char green_flag;
@@ -7537,7 +7536,7 @@ static void FPT_Wait(ULONG p_port, unsigned char p_delay)
7537 * 7536 *
7538 *---------------------------------------------------------------------*/ 7537 *---------------------------------------------------------------------*/
7539 7538
7540static void FPT_utilEEWriteOnOff(ULONG p_port,unsigned char p_mode) 7539static void FPT_utilEEWriteOnOff(unsigned long p_port,unsigned char p_mode)
7541{ 7540{
7542 unsigned char ee_value; 7541 unsigned char ee_value;
7543 7542
@@ -7566,7 +7565,7 @@ static void FPT_utilEEWriteOnOff(ULONG p_port,unsigned char p_mode)
7566 * 7565 *
7567 *---------------------------------------------------------------------*/ 7566 *---------------------------------------------------------------------*/
7568 7567
7569static void FPT_utilEEWrite(ULONG p_port, unsigned short ee_data, unsigned short ee_addr) 7568static void FPT_utilEEWrite(unsigned long p_port, unsigned short ee_data, unsigned short ee_addr)
7570{ 7569{
7571 7570
7572 unsigned char ee_value; 7571 unsigned char ee_value;
@@ -7617,7 +7616,7 @@ static void FPT_utilEEWrite(ULONG p_port, unsigned short ee_data, unsigned short
7617 * 7616 *
7618 *---------------------------------------------------------------------*/ 7617 *---------------------------------------------------------------------*/
7619 7618
7620static unsigned short FPT_utilEERead(ULONG p_port, unsigned short ee_addr) 7619static unsigned short FPT_utilEERead(unsigned long p_port, unsigned short ee_addr)
7621{ 7620{
7622 unsigned short i, ee_data1, ee_data2; 7621 unsigned short i, ee_data1, ee_data2;
7623 7622
@@ -7647,7 +7646,7 @@ static unsigned short FPT_utilEERead(ULONG p_port, unsigned short ee_addr)
7647 * 7646 *
7648 *---------------------------------------------------------------------*/ 7647 *---------------------------------------------------------------------*/
7649 7648
7650static unsigned short FPT_utilEEReadOrg(ULONG p_port, unsigned short ee_addr) 7649static unsigned short FPT_utilEEReadOrg(unsigned long p_port, unsigned short ee_addr)
7651{ 7650{
7652 7651
7653 unsigned char ee_value; 7652 unsigned char ee_value;
@@ -7695,7 +7694,7 @@ static unsigned short FPT_utilEEReadOrg(ULONG p_port, unsigned short ee_addr)
7695 * 7694 *
7696 *---------------------------------------------------------------------*/ 7695 *---------------------------------------------------------------------*/
7697 7696
7698static void FPT_utilEESendCmdAddr(ULONG p_port, unsigned char ee_cmd, unsigned short ee_addr) 7697static void FPT_utilEESendCmdAddr(unsigned long p_port, unsigned char ee_cmd, unsigned short ee_addr)
7699{ 7698{
7700 unsigned char ee_value; 7699 unsigned char ee_value;
7701 unsigned char narrow_flg; 7700 unsigned char narrow_flg;