Commit 412b2d08 authored by Charles Clément's avatar Charles Clément Committed by Greg Kroah-Hartman

Staging: vt6655: remove DWORD_PTR pointer typedef

Use unsigned long instead.
Signed-off-by: default avatarCharles Clément <caratorn@gmail.com>
parent dec572cb
...@@ -2015,7 +2015,7 @@ BBvCaculateParameter ( ...@@ -2015,7 +2015,7 @@ BBvCaculateParameter (
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL BBbReadEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, unsigned char *pbyData) BOOL BBbReadEmbeded (unsigned long dwIoBase, BYTE byBBAddr, unsigned char *pbyData)
{ {
WORD ww; WORD ww;
BYTE byValue; BYTE byValue;
...@@ -2058,7 +2058,7 @@ BOOL BBbReadEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, unsigned char *pbyData) ...@@ -2058,7 +2058,7 @@ BOOL BBbReadEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, unsigned char *pbyData)
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL BBbWriteEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byData) BOOL BBbWriteEmbeded (unsigned long dwIoBase, BYTE byBBAddr, BYTE byData)
{ {
WORD ww; WORD ww;
BYTE byValue; BYTE byValue;
...@@ -2100,7 +2100,7 @@ BOOL BBbWriteEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byData) ...@@ -2100,7 +2100,7 @@ BOOL BBbWriteEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byData)
* Return Value: TRUE if all TestBits are set; FALSE otherwise. * Return Value: TRUE if all TestBits are set; FALSE otherwise.
* *
*/ */
BOOL BBbIsRegBitsOn (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byTestBits) BOOL BBbIsRegBitsOn (unsigned long dwIoBase, BYTE byBBAddr, BYTE byTestBits)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -2123,7 +2123,7 @@ BOOL BBbIsRegBitsOn (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byTestBits) ...@@ -2123,7 +2123,7 @@ BOOL BBbIsRegBitsOn (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byTestBits)
* Return Value: TRUE if all TestBits are clear; FALSE otherwise. * Return Value: TRUE if all TestBits are clear; FALSE otherwise.
* *
*/ */
BOOL BBbIsRegBitsOff (DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byTestBits) BOOL BBbIsRegBitsOff (unsigned long dwIoBase, BYTE byBBAddr, BYTE byTestBits)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -2150,7 +2150,7 @@ BOOL BBbVT3253Init (PSDevice pDevice) ...@@ -2150,7 +2150,7 @@ BOOL BBbVT3253Init (PSDevice pDevice)
{ {
BOOL bResult = TRUE; BOOL bResult = TRUE;
int ii; int ii;
DWORD_PTR dwIoBase = pDevice->PortOffset; unsigned long dwIoBase = pDevice->PortOffset;
BYTE byRFType = pDevice->byRFType; BYTE byRFType = pDevice->byRFType;
BYTE byLocalID = pDevice->byLocalID; BYTE byLocalID = pDevice->byLocalID;
...@@ -2321,7 +2321,7 @@ BOOL BBbVT3253Init (PSDevice pDevice) ...@@ -2321,7 +2321,7 @@ BOOL BBbVT3253Init (PSDevice pDevice)
* Return Value: none * Return Value: none
* *
*/ */
void BBvReadAllRegs (DWORD_PTR dwIoBase, unsigned char *pbyBBRegs) void BBvReadAllRegs (unsigned long dwIoBase, unsigned char *pbyBBRegs)
{ {
int ii; int ii;
BYTE byBase = 1; BYTE byBase = 1;
...@@ -2349,7 +2349,7 @@ void BBvReadAllRegs (DWORD_PTR dwIoBase, unsigned char *pbyBBRegs) ...@@ -2349,7 +2349,7 @@ void BBvReadAllRegs (DWORD_PTR dwIoBase, unsigned char *pbyBBRegs)
void BBvLoopbackOn (PSDevice pDevice) void BBvLoopbackOn (PSDevice pDevice)
{ {
BYTE byData; BYTE byData;
DWORD_PTR dwIoBase = pDevice->PortOffset; unsigned long dwIoBase = pDevice->PortOffset;
//CR C9 = 0x00 //CR C9 = 0x00
BBbReadEmbeded(dwIoBase, 0xC9, &pDevice->byBBCRc9);//CR201 BBbReadEmbeded(dwIoBase, 0xC9, &pDevice->byBBCRc9);//CR201
...@@ -2403,7 +2403,7 @@ void BBvLoopbackOn (PSDevice pDevice) ...@@ -2403,7 +2403,7 @@ void BBvLoopbackOn (PSDevice pDevice)
void BBvLoopbackOff (PSDevice pDevice) void BBvLoopbackOff (PSDevice pDevice)
{ {
BYTE byData; BYTE byData;
DWORD_PTR dwIoBase = pDevice->PortOffset; unsigned long dwIoBase = pDevice->PortOffset;
BBbWriteEmbeded(dwIoBase, 0xC9, pDevice->byBBCRc9);//CR201 BBbWriteEmbeded(dwIoBase, 0xC9, pDevice->byBBCRc9);//CR201
BBbWriteEmbeded(dwIoBase, 0x88, pDevice->byBBCR88);//CR136 BBbWriteEmbeded(dwIoBase, 0x88, pDevice->byBBCR88);//CR136
...@@ -2495,7 +2495,7 @@ void BBvSetVGAGainOffset(PSDevice pDevice, BYTE byData) ...@@ -2495,7 +2495,7 @@ void BBvSetVGAGainOffset(PSDevice pDevice, BYTE byData)
* *
*/ */
void void
BBvSoftwareReset (DWORD_PTR dwIoBase) BBvSoftwareReset (unsigned long dwIoBase)
{ {
BBbWriteEmbeded(dwIoBase, 0x50, 0x40); BBbWriteEmbeded(dwIoBase, 0x50, 0x40);
BBbWriteEmbeded(dwIoBase, 0x50, 0); BBbWriteEmbeded(dwIoBase, 0x50, 0);
...@@ -2516,7 +2516,7 @@ BBvSoftwareReset (DWORD_PTR dwIoBase) ...@@ -2516,7 +2516,7 @@ BBvSoftwareReset (DWORD_PTR dwIoBase)
* *
*/ */
void void
BBvPowerSaveModeON (DWORD_PTR dwIoBase) BBvPowerSaveModeON (unsigned long dwIoBase)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -2538,7 +2538,7 @@ BBvPowerSaveModeON (DWORD_PTR dwIoBase) ...@@ -2538,7 +2538,7 @@ BBvPowerSaveModeON (DWORD_PTR dwIoBase)
* *
*/ */
void void
BBvPowerSaveModeOFF (DWORD_PTR dwIoBase) BBvPowerSaveModeOFF (unsigned long dwIoBase)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -2562,7 +2562,7 @@ BBvPowerSaveModeOFF (DWORD_PTR dwIoBase) ...@@ -2562,7 +2562,7 @@ BBvPowerSaveModeOFF (DWORD_PTR dwIoBase)
*/ */
void void
BBvSetTxAntennaMode (DWORD_PTR dwIoBase, BYTE byAntennaMode) BBvSetTxAntennaMode (unsigned long dwIoBase, BYTE byAntennaMode)
{ {
BYTE byBBTxConf; BYTE byBBTxConf;
...@@ -2604,7 +2604,7 @@ BBvSetTxAntennaMode (DWORD_PTR dwIoBase, BYTE byAntennaMode) ...@@ -2604,7 +2604,7 @@ BBvSetTxAntennaMode (DWORD_PTR dwIoBase, BYTE byAntennaMode)
*/ */
void void
BBvSetRxAntennaMode (DWORD_PTR dwIoBase, BYTE byAntennaMode) BBvSetRxAntennaMode (unsigned long dwIoBase, BYTE byAntennaMode)
{ {
BYTE byBBRxConf; BYTE byBBRxConf;
...@@ -2635,14 +2635,14 @@ BBvSetRxAntennaMode (DWORD_PTR dwIoBase, BYTE byAntennaMode) ...@@ -2635,14 +2635,14 @@ BBvSetRxAntennaMode (DWORD_PTR dwIoBase, BYTE byAntennaMode)
* *
*/ */
void void
BBvSetDeepSleep (DWORD_PTR dwIoBase, BYTE byLocalID) BBvSetDeepSleep (unsigned long dwIoBase, BYTE byLocalID)
{ {
BBbWriteEmbeded(dwIoBase, 0x0C, 0x17);//CR12 BBbWriteEmbeded(dwIoBase, 0x0C, 0x17);//CR12
BBbWriteEmbeded(dwIoBase, 0x0D, 0xB9);//CR13 BBbWriteEmbeded(dwIoBase, 0x0D, 0xB9);//CR13
} }
void void
BBvExitDeepSleep (DWORD_PTR dwIoBase, BYTE byLocalID) BBvExitDeepSleep (unsigned long dwIoBase, BYTE byLocalID)
{ {
BBbWriteEmbeded(dwIoBase, 0x0C, 0x00);//CR12 BBbWriteEmbeded(dwIoBase, 0x0C, 0x00);//CR12
BBbWriteEmbeded(dwIoBase, 0x0D, 0x01);//CR13 BBbWriteEmbeded(dwIoBase, 0x0D, 0x01);//CR13
......
...@@ -137,26 +137,26 @@ BBvCaculateParameter ( ...@@ -137,26 +137,26 @@ BBvCaculateParameter (
unsigned char *pbyPhySgn unsigned char *pbyPhySgn
); );
BOOL BBbReadEmbeded(DWORD_PTR dwIoBase, BYTE byBBAddr, unsigned char *pbyData); BOOL BBbReadEmbeded(unsigned long dwIoBase, BYTE byBBAddr, unsigned char *pbyData);
BOOL BBbWriteEmbeded(DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byData); BOOL BBbWriteEmbeded(unsigned long dwIoBase, BYTE byBBAddr, BYTE byData);
void BBvReadAllRegs(DWORD_PTR dwIoBase, unsigned char *pbyBBRegs); void BBvReadAllRegs(unsigned long dwIoBase, unsigned char *pbyBBRegs);
void BBvLoopbackOn(PSDevice pDevice); void BBvLoopbackOn(PSDevice pDevice);
void BBvLoopbackOff(PSDevice pDevice); void BBvLoopbackOff(PSDevice pDevice);
void BBvSetShortSlotTime(PSDevice pDevice); void BBvSetShortSlotTime(PSDevice pDevice);
BOOL BBbIsRegBitsOn(DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byTestBits); BOOL BBbIsRegBitsOn(unsigned long dwIoBase, BYTE byBBAddr, BYTE byTestBits);
BOOL BBbIsRegBitsOff(DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byTestBits); BOOL BBbIsRegBitsOff(unsigned long dwIoBase, BYTE byBBAddr, BYTE byTestBits);
void BBvSetVGAGainOffset(PSDevice pDevice, BYTE byData); void BBvSetVGAGainOffset(PSDevice pDevice, BYTE byData);
// VT3253 Baseband // VT3253 Baseband
BOOL BBbVT3253Init(PSDevice pDevice); BOOL BBbVT3253Init(PSDevice pDevice);
void BBvSoftwareReset(DWORD_PTR dwIoBase); void BBvSoftwareReset(unsigned long dwIoBase);
void BBvPowerSaveModeON(DWORD_PTR dwIoBase); void BBvPowerSaveModeON(unsigned long dwIoBase);
void BBvPowerSaveModeOFF(DWORD_PTR dwIoBase); void BBvPowerSaveModeOFF(unsigned long dwIoBase);
void BBvSetTxAntennaMode(DWORD_PTR dwIoBase, BYTE byAntennaMode); void BBvSetTxAntennaMode(unsigned long dwIoBase, BYTE byAntennaMode);
void BBvSetRxAntennaMode(DWORD_PTR dwIoBase, BYTE byAntennaMode); void BBvSetRxAntennaMode(unsigned long dwIoBase, BYTE byAntennaMode);
void BBvSetDeepSleep(DWORD_PTR dwIoBase, BYTE byLocalID); void BBvSetDeepSleep(unsigned long dwIoBase, BYTE byLocalID);
void BBvExitDeepSleep(DWORD_PTR dwIoBase, BYTE byLocalID); void BBvExitDeepSleep(unsigned long dwIoBase, BYTE byLocalID);
// timer for antenna diversity // timer for antenna diversity
......
...@@ -1999,7 +1999,7 @@ BYTE CARDbyGetPktType (void *pDeviceHandler) ...@@ -1999,7 +1999,7 @@ BYTE CARDbyGetPktType (void *pDeviceHandler)
* Return Value: none * Return Value: none
* *
*/ */
void CARDvSetLoopbackMode (DWORD_PTR dwIoBase, WORD wLoopbackMode) void CARDvSetLoopbackMode (unsigned long dwIoBase, WORD wLoopbackMode)
{ {
switch(wLoopbackMode) { switch(wLoopbackMode) {
case CARD_LB_NONE: case CARD_LB_NONE:
...@@ -2092,7 +2092,7 @@ QWORD CARDqGetTSFOffset (BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2) ...@@ -2092,7 +2092,7 @@ QWORD CARDqGetTSFOffset (BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2)
* Return Value: TRUE if success; otherwise FALSE * Return Value: TRUE if success; otherwise FALSE
* *
*/ */
BOOL CARDbGetCurrentTSF (DWORD_PTR dwIoBase, PQWORD pqwCurrTSF) BOOL CARDbGetCurrentTSF (unsigned long dwIoBase, PQWORD pqwCurrTSF)
{ {
WORD ww; WORD ww;
BYTE byData; BYTE byData;
...@@ -2170,7 +2170,7 @@ QWORD CARDqGetNextTBTT (QWORD qwTSF, WORD wBeaconInterval) ...@@ -2170,7 +2170,7 @@ QWORD CARDqGetNextTBTT (QWORD qwTSF, WORD wBeaconInterval)
* Return Value: none * Return Value: none
* *
*/ */
void CARDvSetFirstNextTBTT (DWORD_PTR dwIoBase, WORD wBeaconInterval) void CARDvSetFirstNextTBTT (unsigned long dwIoBase, WORD wBeaconInterval)
{ {
QWORD qwNextTBTT; QWORD qwNextTBTT;
...@@ -2203,7 +2203,7 @@ void CARDvSetFirstNextTBTT (DWORD_PTR dwIoBase, WORD wBeaconInterval) ...@@ -2203,7 +2203,7 @@ void CARDvSetFirstNextTBTT (DWORD_PTR dwIoBase, WORD wBeaconInterval)
* Return Value: none * Return Value: none
* *
*/ */
void CARDvUpdateNextTBTT (DWORD_PTR dwIoBase, QWORD qwTSF, WORD wBeaconInterval) void CARDvUpdateNextTBTT (unsigned long dwIoBase, QWORD qwTSF, WORD wBeaconInterval)
{ {
qwTSF = CARDqGetNextTBTT(qwTSF, wBeaconInterval); qwTSF = CARDqGetNextTBTT(qwTSF, wBeaconInterval);
......
...@@ -91,11 +91,11 @@ void vUpdateIFS(void *pDeviceHandler); ...@@ -91,11 +91,11 @@ void vUpdateIFS(void *pDeviceHandler);
void CARDvUpdateBasicTopRate(void *pDeviceHandler); void CARDvUpdateBasicTopRate(void *pDeviceHandler);
BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx); BOOL CARDbAddBasicRate(void *pDeviceHandler, WORD wRateIdx);
BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler); BOOL CARDbIsOFDMinBasicRate(void *pDeviceHandler);
void CARDvSetLoopbackMode(DWORD_PTR dwIoBase, WORD wLoopbackMode); void CARDvSetLoopbackMode(unsigned long dwIoBase, WORD wLoopbackMode);
BOOL CARDbSoftwareReset(void *pDeviceHandler); BOOL CARDbSoftwareReset(void *pDeviceHandler);
void CARDvSetFirstNextTBTT(DWORD_PTR dwIoBase, WORD wBeaconInterval); void CARDvSetFirstNextTBTT(unsigned long dwIoBase, WORD wBeaconInterval);
void CARDvUpdateNextTBTT(DWORD_PTR dwIoBase, QWORD qwTSF, WORD wBeaconInterval); void CARDvUpdateNextTBTT(unsigned long dwIoBase, QWORD qwTSF, WORD wBeaconInterval);
BOOL CARDbGetCurrentTSF(DWORD_PTR dwIoBase, PQWORD pqwCurrTSF); BOOL CARDbGetCurrentTSF(unsigned long dwIoBase, PQWORD pqwCurrTSF);
QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval); QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval);
QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2); QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2);
BOOL CARDbSetTxPower(void *pDeviceHandler, unsigned long ulTxPower); BOOL CARDbSetTxPower(void *pDeviceHandler, unsigned long ulTxPower);
......
...@@ -59,7 +59,7 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -59,7 +59,7 @@ static int msglevel =MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/ /*--------------------- Static Functions --------------------------*/
static void static void
s_vCheckKeyTableValid (PSKeyManagement pTable, DWORD_PTR dwIoBase) s_vCheckKeyTableValid (PSKeyManagement pTable, unsigned long dwIoBase)
{ {
int i; int i;
...@@ -96,7 +96,7 @@ s_vCheckKeyTableValid (PSKeyManagement pTable, DWORD_PTR dwIoBase) ...@@ -96,7 +96,7 @@ s_vCheckKeyTableValid (PSKeyManagement pTable, DWORD_PTR dwIoBase)
* Return Value: none * Return Value: none
* *
*/ */
void KeyvInitTable (PSKeyManagement pTable, DWORD_PTR dwIoBase) void KeyvInitTable (PSKeyManagement pTable, unsigned long dwIoBase)
{ {
int i; int i;
int jj; int jj;
...@@ -197,7 +197,7 @@ BOOL KeybSetKey ( ...@@ -197,7 +197,7 @@ BOOL KeybSetKey (
PQWORD pKeyRSC, PQWORD pKeyRSC,
unsigned char *pbyKey, unsigned char *pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
DWORD_PTR dwIoBase, unsigned long dwIoBase,
BYTE byLocalID BYTE byLocalID
) )
{ {
...@@ -366,7 +366,7 @@ BOOL KeybRemoveKey ( ...@@ -366,7 +366,7 @@ BOOL KeybRemoveKey (
PSKeyManagement pTable, PSKeyManagement pTable,
unsigned char *pbyBSSID, unsigned char *pbyBSSID,
DWORD dwKeyIndex, DWORD dwKeyIndex,
DWORD_PTR dwIoBase unsigned long dwIoBase
) )
{ {
int i; int i;
...@@ -438,7 +438,7 @@ BOOL KeybRemoveKey ( ...@@ -438,7 +438,7 @@ BOOL KeybRemoveKey (
BOOL KeybRemoveAllKey ( BOOL KeybRemoveAllKey (
PSKeyManagement pTable, PSKeyManagement pTable,
unsigned char *pbyBSSID, unsigned char *pbyBSSID,
DWORD_PTR dwIoBase unsigned long dwIoBase
) )
{ {
int i,u; int i,u;
...@@ -473,7 +473,7 @@ BOOL KeybRemoveAllKey ( ...@@ -473,7 +473,7 @@ BOOL KeybRemoveAllKey (
void KeyvRemoveWEPKey ( void KeyvRemoveWEPKey (
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD dwKeyIndex, DWORD dwKeyIndex,
DWORD_PTR dwIoBase unsigned long dwIoBase
) )
{ {
...@@ -494,7 +494,7 @@ void KeyvRemoveWEPKey ( ...@@ -494,7 +494,7 @@ void KeyvRemoveWEPKey (
void KeyvRemoveAllWEPKey ( void KeyvRemoveAllWEPKey (
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD_PTR dwIoBase unsigned long dwIoBase
) )
{ {
int i; int i;
...@@ -638,7 +638,7 @@ BOOL KeybSetDefaultKey ( ...@@ -638,7 +638,7 @@ BOOL KeybSetDefaultKey (
PQWORD pKeyRSC, PQWORD pKeyRSC,
unsigned char *pbyKey, unsigned char *pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
DWORD_PTR dwIoBase, unsigned long dwIoBase,
BYTE byLocalID BYTE byLocalID
) )
{ {
...@@ -745,7 +745,7 @@ BOOL KeybSetAllGroupKey ( ...@@ -745,7 +745,7 @@ BOOL KeybSetAllGroupKey (
PQWORD pKeyRSC, PQWORD pKeyRSC,
unsigned char *pbyKey, unsigned char *pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
DWORD_PTR dwIoBase, unsigned long dwIoBase,
BYTE byLocalID BYTE byLocalID
) )
{ {
......
...@@ -101,7 +101,7 @@ typedef struct tagSKeyManagement ...@@ -101,7 +101,7 @@ typedef struct tagSKeyManagement
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
void KeyvInitTable(PSKeyManagement pTable, DWORD_PTR dwIoBase); void KeyvInitTable(PSKeyManagement pTable, unsigned long dwIoBase);
BOOL KeybGetKey( BOOL KeybGetKey(
PSKeyManagement pTable, PSKeyManagement pTable,
...@@ -118,7 +118,7 @@ BOOL KeybSetKey( ...@@ -118,7 +118,7 @@ BOOL KeybSetKey(
PQWORD pKeyRSC, PQWORD pKeyRSC,
unsigned char *pbyKey, unsigned char *pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
DWORD_PTR dwIoBase, unsigned long dwIoBase,
BYTE byLocalID BYTE byLocalID
); );
...@@ -129,7 +129,7 @@ BOOL KeybSetDefaultKey( ...@@ -129,7 +129,7 @@ BOOL KeybSetDefaultKey(
PQWORD pKeyRSC, PQWORD pKeyRSC,
unsigned char *pbyKey, unsigned char *pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
DWORD_PTR dwIoBase, unsigned long dwIoBase,
BYTE byLocalID BYTE byLocalID
); );
...@@ -137,7 +137,7 @@ BOOL KeybRemoveKey( ...@@ -137,7 +137,7 @@ BOOL KeybRemoveKey(
PSKeyManagement pTable, PSKeyManagement pTable,
unsigned char *pbyBSSID, unsigned char *pbyBSSID,
DWORD dwKeyIndex, DWORD dwKeyIndex,
DWORD_PTR dwIoBase unsigned long dwIoBase
); );
BOOL KeybGetTransmitKey( BOOL KeybGetTransmitKey(
...@@ -155,18 +155,18 @@ BOOL KeybCheckPairewiseKey( ...@@ -155,18 +155,18 @@ BOOL KeybCheckPairewiseKey(
BOOL KeybRemoveAllKey( BOOL KeybRemoveAllKey(
PSKeyManagement pTable, PSKeyManagement pTable,
unsigned char *pbyBSSID, unsigned char *pbyBSSID,
DWORD_PTR dwIoBase unsigned long dwIoBase
); );
void KeyvRemoveWEPKey( void KeyvRemoveWEPKey(
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD dwKeyIndex, DWORD dwKeyIndex,
DWORD_PTR dwIoBase unsigned long dwIoBase
); );
void KeyvRemoveAllWEPKey( void KeyvRemoveAllWEPKey(
PSKeyManagement pTable, PSKeyManagement pTable,
DWORD_PTR dwIoBase unsigned long dwIoBase
); );
BOOL KeybSetAllGroupKey ( BOOL KeybSetAllGroupKey (
...@@ -176,7 +176,7 @@ BOOL KeybSetAllGroupKey ( ...@@ -176,7 +176,7 @@ BOOL KeybSetAllGroupKey (
PQWORD pKeyRSC, PQWORD pKeyRSC,
unsigned char *pbyKey, unsigned char *pbyKey,
BYTE byKeyDecMode, BYTE byKeyDecMode,
DWORD_PTR dwIoBase, unsigned long dwIoBase,
BYTE byLocalID BYTE byLocalID
); );
......
This diff is collapsed.
...@@ -1075,80 +1075,80 @@ ...@@ -1075,80 +1075,80 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
extern WORD TxRate_iwconfig;//2008-5-8 <add> by chester extern WORD TxRate_iwconfig;//2008-5-8 <add> by chester
void MACvReadAllRegs(DWORD_PTR dwIoBase, unsigned char *pbyMacRegs); void MACvReadAllRegs(unsigned long dwIoBase, unsigned char *pbyMacRegs);
BOOL MACbIsRegBitsOn(DWORD_PTR dwIoBase, BYTE byRegOfs, BYTE byTestBits); BOOL MACbIsRegBitsOn(unsigned long dwIoBase, BYTE byRegOfs, BYTE byTestBits);
BOOL MACbIsRegBitsOff(DWORD_PTR dwIoBase, BYTE byRegOfs, BYTE byTestBits); BOOL MACbIsRegBitsOff(unsigned long dwIoBase, BYTE byRegOfs, BYTE byTestBits);
BOOL MACbIsIntDisable(DWORD_PTR dwIoBase); BOOL MACbIsIntDisable(unsigned long dwIoBase);
BYTE MACbyReadMultiAddr(DWORD_PTR dwIoBase, unsigned int uByteIdx); BYTE MACbyReadMultiAddr(unsigned long dwIoBase, unsigned int uByteIdx);
void MACvWriteMultiAddr(DWORD_PTR dwIoBase, unsigned int uByteIdx, BYTE byData); void MACvWriteMultiAddr(unsigned long dwIoBase, unsigned int uByteIdx, BYTE byData);
void MACvSetMultiAddrByHash(DWORD_PTR dwIoBase, BYTE byHashIdx); void MACvSetMultiAddrByHash(unsigned long dwIoBase, BYTE byHashIdx);
void MACvResetMultiAddrByHash(DWORD_PTR dwIoBase, BYTE byHashIdx); void MACvResetMultiAddrByHash(unsigned long dwIoBase, BYTE byHashIdx);
void MACvSetRxThreshold(DWORD_PTR dwIoBase, BYTE byThreshold); void MACvSetRxThreshold(unsigned long dwIoBase, BYTE byThreshold);
void MACvGetRxThreshold(DWORD_PTR dwIoBase, unsigned char *pbyThreshold); void MACvGetRxThreshold(unsigned long dwIoBase, unsigned char *pbyThreshold);
void MACvSetTxThreshold(DWORD_PTR dwIoBase, BYTE byThreshold); void MACvSetTxThreshold(unsigned long dwIoBase, BYTE byThreshold);
void MACvGetTxThreshold(DWORD_PTR dwIoBase, unsigned char *pbyThreshold); void MACvGetTxThreshold(unsigned long dwIoBase, unsigned char *pbyThreshold);
void MACvSetDmaLength(DWORD_PTR dwIoBase, BYTE byDmaLength); void MACvSetDmaLength(unsigned long dwIoBase, BYTE byDmaLength);
void MACvGetDmaLength(DWORD_PTR dwIoBase, unsigned char *pbyDmaLength); void MACvGetDmaLength(unsigned long dwIoBase, unsigned char *pbyDmaLength);
void MACvSetShortRetryLimit(DWORD_PTR dwIoBase, BYTE byRetryLimit); void MACvSetShortRetryLimit(unsigned long dwIoBase, BYTE byRetryLimit);
void MACvGetShortRetryLimit(DWORD_PTR dwIoBase, unsigned char *pbyRetryLimit); void MACvGetShortRetryLimit(unsigned long dwIoBase, unsigned char *pbyRetryLimit);
void MACvSetLongRetryLimit(DWORD_PTR dwIoBase, BYTE byRetryLimit); void MACvSetLongRetryLimit(unsigned long dwIoBase, BYTE byRetryLimit);
void MACvGetLongRetryLimit(DWORD_PTR dwIoBase, unsigned char *pbyRetryLimit); void MACvGetLongRetryLimit(unsigned long dwIoBase, unsigned char *pbyRetryLimit);
void MACvSetLoopbackMode(DWORD_PTR dwIoBase, BYTE byLoopbackMode); void MACvSetLoopbackMode(unsigned long dwIoBase, BYTE byLoopbackMode);
BOOL MACbIsInLoopbackMode(DWORD_PTR dwIoBase); BOOL MACbIsInLoopbackMode(unsigned long dwIoBase);
void MACvSetPacketFilter(DWORD_PTR dwIoBase, WORD wFilterType); void MACvSetPacketFilter(unsigned long dwIoBase, WORD wFilterType);
void MACvSaveContext(DWORD_PTR dwIoBase, unsigned char *pbyCxtBuf); void MACvSaveContext(unsigned long dwIoBase, unsigned char *pbyCxtBuf);
void MACvRestoreContext(DWORD_PTR dwIoBase, unsigned char *pbyCxtBuf); void MACvRestoreContext(unsigned long dwIoBase, unsigned char *pbyCxtBuf);
BOOL MACbCompareContext(DWORD_PTR dwIoBase, unsigned char *pbyCxtBuf); BOOL MACbCompareContext(unsigned long dwIoBase, unsigned char *pbyCxtBuf);
BOOL MACbSoftwareReset(DWORD_PTR dwIoBase); BOOL MACbSoftwareReset(unsigned long dwIoBase);
BOOL MACbSafeSoftwareReset(DWORD_PTR dwIoBase); BOOL MACbSafeSoftwareReset(unsigned long dwIoBase);
BOOL MACbSafeRxOff(DWORD_PTR dwIoBase); BOOL MACbSafeRxOff(unsigned long dwIoBase);
BOOL MACbSafeTxOff(DWORD_PTR dwIoBase); BOOL MACbSafeTxOff(unsigned long dwIoBase);
BOOL MACbSafeStop(DWORD_PTR dwIoBase); BOOL MACbSafeStop(unsigned long dwIoBase);
BOOL MACbShutdown(DWORD_PTR dwIoBase); BOOL MACbShutdown(unsigned long dwIoBase);
void MACvInitialize(DWORD_PTR dwIoBase); void MACvInitialize(unsigned long dwIoBase);
void MACvSetCurrRx0DescAddr(DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrRx0DescAddr(unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvSetCurrRx1DescAddr(DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrRx1DescAddr(unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvSetCurrTXDescAddr(int iTxType, DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrTXDescAddr(int iTxType, unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvSetCurrTx0DescAddrEx(DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrTx0DescAddrEx(unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvSetCurrAC0DescAddrEx(DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrAC0DescAddrEx(unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvSetCurrSyncDescAddrEx(DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrSyncDescAddrEx(unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvSetCurrATIMDescAddrEx(DWORD_PTR dwIoBase, DWORD dwCurrDescAddr); void MACvSetCurrATIMDescAddrEx(unsigned long dwIoBase, DWORD dwCurrDescAddr);
void MACvTimer0MicroSDelay(DWORD_PTR dwIoBase, unsigned int uDelay); void MACvTimer0MicroSDelay(unsigned long dwIoBase, unsigned int uDelay);
void MACvOneShotTimer0MicroSec(DWORD_PTR dwIoBase, unsigned int uDelayTime); void MACvOneShotTimer0MicroSec(unsigned long dwIoBase, unsigned int uDelayTime);
void MACvOneShotTimer1MicroSec(DWORD_PTR dwIoBase, unsigned int uDelayTime); void MACvOneShotTimer1MicroSec(unsigned long dwIoBase, unsigned int uDelayTime);
void MACvSetMISCFifo(DWORD_PTR dwIoBase, WORD wOffset, DWORD dwData); void MACvSetMISCFifo(unsigned long dwIoBase, WORD wOffset, DWORD dwData);
BOOL MACbTxDMAOff (DWORD_PTR dwIoBase, unsigned int idx); BOOL MACbTxDMAOff (unsigned long dwIoBase, unsigned int idx);
void MACvClearBusSusInd(DWORD_PTR dwIoBase); void MACvClearBusSusInd(unsigned long dwIoBase);
void MACvEnableBusSusEn(DWORD_PTR dwIoBase); void MACvEnableBusSusEn(unsigned long dwIoBase);
BOOL MACbFlushSYNCFifo(DWORD_PTR dwIoBase); BOOL MACbFlushSYNCFifo(unsigned long dwIoBase);
BOOL MACbPSWakeup(DWORD_PTR dwIoBase); BOOL MACbPSWakeup(unsigned long dwIoBase);
void MACvSetKeyEntry(DWORD_PTR dwIoBase, WORD wKeyCtl, unsigned int uEntryIdx, void MACvSetKeyEntry(unsigned long dwIoBase, WORD wKeyCtl, unsigned int uEntryIdx,
unsigned int uKeyIdx, unsigned char *pbyAddr, unsigned long *pdwKey, BYTE byLocalID); unsigned int uKeyIdx, unsigned char *pbyAddr, unsigned long *pdwKey, BYTE byLocalID);
void MACvDisableKeyEntry(DWORD_PTR dwIoBase, unsigned int uEntryIdx); void MACvDisableKeyEntry(unsigned long dwIoBase, unsigned int uEntryIdx);
void MACvSetDefaultKeyEntry(DWORD_PTR dwIoBase, unsigned int uKeyLen, void MACvSetDefaultKeyEntry(unsigned long dwIoBase, unsigned int uKeyLen,
unsigned int uKeyIdx, unsigned long *pdwKey, BYTE byLocalID); unsigned int uKeyIdx, unsigned long *pdwKey, BYTE byLocalID);
//void MACvEnableDefaultKey(DWORD_PTR dwIoBase, BYTE byLocalID); //void MACvEnableDefaultKey(unsigned long dwIoBase, BYTE byLocalID);
void MACvDisableDefaultKey(DWORD_PTR dwIoBase); void MACvDisableDefaultKey(unsigned long dwIoBase);
void MACvSetDefaultTKIPKeyEntry(DWORD_PTR dwIoBase, unsigned int uKeyLen, void MACvSetDefaultTKIPKeyEntry(unsigned long dwIoBase, unsigned int uKeyLen,
unsigned int uKeyIdx, unsigned long *pdwKey, BYTE byLocalID); unsigned int uKeyIdx, unsigned long *pdwKey, BYTE byLocalID);
void MACvSetDefaultKeyCtl(DWORD_PTR dwIoBase, WORD wKeyCtl, unsigned int uEntryIdx, BYTE byLocalID); void MACvSetDefaultKeyCtl(unsigned long dwIoBase, WORD wKeyCtl, unsigned int uEntryIdx, BYTE byLocalID);
#endif // __MAC_H__ #endif // __MAC_H__
...@@ -474,7 +474,7 @@ const DWORD dwAL7230ChannelTable2[CB_MAX_CHANNEL] = { ...@@ -474,7 +474,7 @@ const DWORD dwAL7230ChannelTable2[CB_MAX_CHANNEL] = {
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL s_bAL7230Init (DWORD_PTR dwIoBase) BOOL s_bAL7230Init (unsigned long dwIoBase)
{ {
int ii; int ii;
BOOL bResult; BOOL bResult;
...@@ -517,7 +517,7 @@ BOOL s_bAL7230Init (DWORD_PTR dwIoBase) ...@@ -517,7 +517,7 @@ BOOL s_bAL7230Init (DWORD_PTR dwIoBase)
} }
// Need to Pull PLLON low when writing channel registers through 3-wire interface // Need to Pull PLLON low when writing channel registers through 3-wire interface
BOOL s_bAL7230SelectChannel (DWORD_PTR dwIoBase, BYTE byChannel) BOOL s_bAL7230SelectChannel (unsigned long dwIoBase, BYTE byChannel)
{ {
BOOL bResult; BOOL bResult;
...@@ -622,7 +622,7 @@ BOOL s_bAL7230SelectChannel (DWORD_PTR dwIoBase, BYTE byChannel) ...@@ -622,7 +622,7 @@ BOOL s_bAL7230SelectChannel (DWORD_PTR dwIoBase, BYTE byChannel)
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL IFRFbWriteEmbeded (DWORD_PTR dwIoBase, DWORD dwData) BOOL IFRFbWriteEmbeded (unsigned long dwIoBase, DWORD dwData)
{ {
WORD ww; WORD ww;
DWORD dwValue; DWORD dwValue;
...@@ -684,7 +684,7 @@ BOOL IFRFbWriteEmbeded (DWORD_PTR dwIoBase, DWORD dwData) ...@@ -684,7 +684,7 @@ BOOL IFRFbWriteEmbeded (DWORD_PTR dwIoBase, DWORD dwData)
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL RFbAL2230Init (DWORD_PTR dwIoBase) BOOL RFbAL2230Init (unsigned long dwIoBase)
{ {
int ii; int ii;
BOOL bResult; BOOL bResult;
...@@ -734,7 +734,7 @@ MACvTimer0MicroSDelay(dwIoBase, 30); //delay 30 us ...@@ -734,7 +734,7 @@ MACvTimer0MicroSDelay(dwIoBase, 30); //delay 30 us
return bResult; return bResult;
} }
BOOL RFbAL2230SelectChannel (DWORD_PTR dwIoBase, BYTE byChannel) BOOL RFbAL2230SelectChannel (unsigned long dwIoBase, BYTE byChannel)
{ {
BOOL bResult; BOOL bResult;
...@@ -875,7 +875,7 @@ BOOL bResult = TRUE; ...@@ -875,7 +875,7 @@ BOOL bResult = TRUE;
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL RFbSelectChannel (DWORD_PTR dwIoBase, BYTE byRFType, BYTE byChannel) BOOL RFbSelectChannel (unsigned long dwIoBase, BYTE byRFType, BYTE byChannel)
{ {
BOOL bResult = TRUE; BOOL bResult = TRUE;
switch (byRFType) { switch (byRFType) {
...@@ -911,7 +911,7 @@ BOOL bResult = TRUE; ...@@ -911,7 +911,7 @@ BOOL bResult = TRUE;
* Return Value: None. * Return Value: None.
* *
*/ */
BOOL RFvWriteWakeProgSyn (DWORD_PTR dwIoBase, BYTE byRFType, unsigned int uChannel) BOOL RFvWriteWakeProgSyn (unsigned long dwIoBase, BYTE byRFType, unsigned int uChannel)
{ {
int ii; int ii;
BYTE byInitCount = 0; BYTE byInitCount = 0;
...@@ -1232,7 +1232,7 @@ RFvRSSITodBm ( ...@@ -1232,7 +1232,7 @@ RFvRSSITodBm (
// Post processing for the 11b/g and 11a. // Post processing for the 11b/g and 11a.
// for save time on changing Reg2,3,5,7,10,12,15 // for save time on changing Reg2,3,5,7,10,12,15
BOOL RFbAL7230SelectChannelPostProcess (DWORD_PTR dwIoBase, BYTE byOldChannel, BYTE byNewChannel) BOOL RFbAL7230SelectChannelPostProcess (unsigned long dwIoBase, BYTE byOldChannel, BYTE byNewChannel)
{ {
BOOL bResult; BOOL bResult;
......
...@@ -76,12 +76,12 @@ ...@@ -76,12 +76,12 @@
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
BOOL IFRFbWriteEmbeded(DWORD_PTR dwIoBase, DWORD dwData); BOOL IFRFbWriteEmbeded(unsigned long dwIoBase, DWORD dwData);
BOOL RFbSelectChannel(DWORD_PTR dwIoBase, BYTE byRFType, BYTE byChannel); BOOL RFbSelectChannel(unsigned long dwIoBase, BYTE byRFType, BYTE byChannel);
BOOL RFbInit ( BOOL RFbInit (
PSDevice pDevice PSDevice pDevice
); );
BOOL RFvWriteWakeProgSyn(DWORD_PTR dwIoBase, BYTE byRFType, unsigned int uChannel); BOOL RFvWriteWakeProgSyn(unsigned long dwIoBase, BYTE byRFType, unsigned int uChannel);
BOOL RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH); BOOL RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH);
BOOL RFbRawSetPower( BOOL RFbRawSetPower(
PSDevice pDevice, PSDevice pDevice,
...@@ -97,7 +97,7 @@ RFvRSSITodBm( ...@@ -97,7 +97,7 @@ RFvRSSITodBm(
); );
//{{ RobertYu: 20050104 //{{ RobertYu: 20050104
BOOL RFbAL7230SelectChannelPostProcess(DWORD_PTR dwIoBase, BYTE byOldChannel, BYTE byNewChannel); BOOL RFbAL7230SelectChannelPostProcess(unsigned long dwIoBase, BYTE byOldChannel, BYTE byNewChannel);
//}} RobertYu //}} RobertYu
#endif // __RF_H__ #endif // __RF_H__
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
* Return Value: data read * Return Value: data read
* *
*/ */
BYTE SROMbyReadEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset) BYTE SROMbyReadEmbedded(unsigned long dwIoBase, BYTE byContntOffset)
{ {
WORD wDelay, wNoACK; WORD wDelay, wNoACK;
BYTE byWait; BYTE byWait;
...@@ -125,7 +125,7 @@ BYTE SROMbyReadEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset) ...@@ -125,7 +125,7 @@ BYTE SROMbyReadEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset)
* Return Value: TRUE if succeeded; FALSE if failed. * Return Value: TRUE if succeeded; FALSE if failed.
* *
*/ */
BOOL SROMbWriteEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byData) BOOL SROMbWriteEmbedded(unsigned long dwIoBase, BYTE byContntOffset, BYTE byData)
{ {
WORD wDelay, wNoACK; WORD wDelay, wNoACK;
BYTE byWait; BYTE byWait;
...@@ -178,7 +178,7 @@ BOOL SROMbWriteEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byData) ...@@ -178,7 +178,7 @@ BOOL SROMbWriteEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byData)
* Return Value: none * Return Value: none
* *
*/ */
void SROMvRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits) void SROMvRegBitsOn(unsigned long dwIoBase, BYTE byContntOffset, BYTE byBits)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -199,7 +199,7 @@ void SROMvRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits) ...@@ -199,7 +199,7 @@ void SROMvRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits)
* none * none
* *
*/ */
void SROMvRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits) void SROMvRegBitsOff(unsigned long dwIoBase, BYTE byContntOffset, BYTE byBits)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -222,7 +222,7 @@ void SROMvRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits) ...@@ -222,7 +222,7 @@ void SROMvRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits)
* Return Value: TRUE if all test bits on; otherwise FALSE * Return Value: TRUE if all test bits on; otherwise FALSE
* *
*/ */
BOOL SROMbIsRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits) BOOL SROMbIsRegBitsOn(unsigned long dwIoBase, BYTE byContntOffset, BYTE byTestBits)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -245,7 +245,7 @@ BOOL SROMbIsRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits) ...@@ -245,7 +245,7 @@ BOOL SROMbIsRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits)
* Return Value: TRUE if all test bits off; otherwise FALSE * Return Value: TRUE if all test bits off; otherwise FALSE
* *
*/ */
BOOL SROMbIsRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits) BOOL SROMbIsRegBitsOff(unsigned long dwIoBase, BYTE byContntOffset, BYTE byTestBits)
{ {
BYTE byOrgData; BYTE byOrgData;
...@@ -266,7 +266,7 @@ BOOL SROMbIsRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits) ...@@ -266,7 +266,7 @@ BOOL SROMbIsRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits)
* Return Value: none * Return Value: none
* *
*/ */
void SROMvReadAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs) void SROMvReadAllContents(unsigned long dwIoBase, unsigned char *pbyEepromRegs)
{ {
int ii; int ii;
...@@ -291,7 +291,7 @@ void SROMvReadAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs) ...@@ -291,7 +291,7 @@ void SROMvReadAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs)
* Return Value: none * Return Value: none
* *
*/ */
void SROMvWriteAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs) void SROMvWriteAllContents(unsigned long dwIoBase, unsigned char *pbyEepromRegs)
{ {
int ii; int ii;
...@@ -315,7 +315,7 @@ void SROMvWriteAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs) ...@@ -315,7 +315,7 @@ void SROMvWriteAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs)
* Return Value: none * Return Value: none
* *
*/ */
void SROMvReadEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress) void SROMvReadEtherAddress(unsigned long dwIoBase, unsigned char *pbyEtherAddress)
{ {
BYTE ii; BYTE ii;
...@@ -340,7 +340,7 @@ void SROMvReadEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress) ...@@ -340,7 +340,7 @@ void SROMvReadEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress)
* Return Value: none * Return Value: none
* *
*/ */
void SROMvWriteEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress) void SROMvWriteEtherAddress(unsigned long dwIoBase, unsigned char *pbyEtherAddress)
{ {
BYTE ii; BYTE ii;
...@@ -364,7 +364,7 @@ void SROMvWriteEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress) ...@@ -364,7 +364,7 @@ void SROMvWriteEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress)
* Return Value: none * Return Value: none
* *
*/ */
void SROMvReadSubSysVenId(DWORD_PTR dwIoBase, unsigned long *pdwSubSysVenId) void SROMvReadSubSysVenId(unsigned long dwIoBase, unsigned long *pdwSubSysVenId)
{ {
unsigned char *pbyData; unsigned char *pbyData;
...@@ -389,7 +389,7 @@ void SROMvReadSubSysVenId(DWORD_PTR dwIoBase, unsigned long *pdwSubSysVenId) ...@@ -389,7 +389,7 @@ void SROMvReadSubSysVenId(DWORD_PTR dwIoBase, unsigned long *pdwSubSysVenId)
* Return Value: TRUE if success; otherwise FALSE * Return Value: TRUE if success; otherwise FALSE
* *
*/ */
BOOL SROMbAutoLoad(DWORD_PTR dwIoBase) BOOL SROMbAutoLoad(unsigned long dwIoBase)
{ {
BYTE byWait; BYTE byWait;
int ii; int ii;
......
...@@ -135,23 +135,23 @@ typedef struct tagSSromReg { ...@@ -135,23 +135,23 @@ typedef struct tagSSromReg {
/*--------------------- Export Functions --------------------------*/ /*--------------------- Export Functions --------------------------*/
BYTE SROMbyReadEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset); BYTE SROMbyReadEmbedded(unsigned long dwIoBase, BYTE byContntOffset);
BOOL SROMbWriteEmbedded(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byData); BOOL SROMbWriteEmbedded(unsigned long dwIoBase, BYTE byContntOffset, BYTE byData);
void SROMvRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits); void SROMvRegBitsOn(unsigned long dwIoBase, BYTE byContntOffset, BYTE byBits);
void SROMvRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byBits); void SROMvRegBitsOff(unsigned long dwIoBase, BYTE byContntOffset, BYTE byBits);
BOOL SROMbIsRegBitsOn(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits); BOOL SROMbIsRegBitsOn(unsigned long dwIoBase, BYTE byContntOffset, BYTE byTestBits);
BOOL SROMbIsRegBitsOff(DWORD_PTR dwIoBase, BYTE byContntOffset, BYTE byTestBits); BOOL SROMbIsRegBitsOff(unsigned long dwIoBase, BYTE byContntOffset, BYTE byTestBits);
void SROMvReadAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs); void SROMvReadAllContents(unsigned long dwIoBase, unsigned char *pbyEepromRegs);
void SROMvWriteAllContents(DWORD_PTR dwIoBase, unsigned char *pbyEepromRegs); void SROMvWriteAllContents(unsigned long dwIoBase, unsigned char *pbyEepromRegs);
void SROMvReadEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress); void SROMvReadEtherAddress(unsigned long dwIoBase, unsigned char *pbyEtherAddress);
void SROMvWriteEtherAddress(DWORD_PTR dwIoBase, unsigned char *pbyEtherAddress); void SROMvWriteEtherAddress(unsigned long dwIoBase, unsigned char *pbyEtherAddress);
void SROMvReadSubSysVenId(DWORD_PTR dwIoBase, unsigned long *pdwSubSysVenId); void SROMvReadSubSysVenId(unsigned long dwIoBase, unsigned long *pdwSubSysVenId);
BOOL SROMbAutoLoad (DWORD_PTR dwIoBase); BOOL SROMbAutoLoad (unsigned long dwIoBase);
#endif // __EEPROM_H__ #endif // __EEPROM_H__
...@@ -86,8 +86,6 @@ typedef UQuadWord QWORD; // 64-bit ...@@ -86,8 +86,6 @@ typedef UQuadWord QWORD; // 64-bit
/****** Common pointer types ***********************************************/ /****** Common pointer types ***********************************************/
typedef unsigned long DWORD_PTR; // 32-bit
// boolean pointer // boolean pointer
typedef unsigned int * PUINT; typedef unsigned int * PUINT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment