Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205593
b: refs/heads/master
c: e3fd16d
h: refs/heads/master
i:
  205591: 7aa563b
v: v3
  • Loading branch information
Charles Clément authored and Greg Kroah-Hartman committed Jun 18, 2010
1 parent d5b086c commit 92e95c9
Show file tree
Hide file tree
Showing 20 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6e95cd52a81079abc1def7867e27bf541953089
refs/heads/master: e3fd16d0819e3b316a4fe316e5f32032df61e9db
10 changes: 5 additions & 5 deletions trunk/drivers/staging/vt6655/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ const WORD awcFrameTime[MAX_RATE] =
/*--------------------- Static Functions --------------------------*/

static
ULONG
unsigned long
s_ulGetRatio(PSDevice pDevice);

static
Expand Down Expand Up @@ -2651,12 +2651,12 @@ BBvExitDeepSleep (DWORD_PTR dwIoBase, BYTE byLocalID)


static
ULONG
unsigned long
s_ulGetRatio (PSDevice pDevice)
{
ULONG ulRatio = 0;
ULONG ulMaxPacket;
ULONG ulPacketNum;
unsigned long ulRatio = 0;
unsigned long ulMaxPacket;
unsigned long ulPacketNum;

//This is a thousand-ratio
ulMaxPacket = pDevice->uNumSQ3[RATE_54M];
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,9 +1680,9 @@ void s_uCalculateLinkQual(
)
{
PSDevice pDevice = (PSDevice)hDeviceContext;
ULONG TxOkRatio, TxCnt;
ULONG RxOkRatio,RxCnt;
ULONG RssiRatio;
unsigned long TxOkRatio, TxCnt;
unsigned long RxOkRatio,RxCnt;
unsigned long RssiRatio;
long ldBm;

TxCnt = pDevice->scStatistic.TxNoRetryOkCount +
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/bssdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ typedef struct tagKnownNodeDB {
BOOL bPSEnable;
BOOL bRxPSPoll;
BYTE byAuthSequence;
ULONG ulLastRxJiffer;
unsigned long ulLastRxJiffer;
BYTE bySuppRate;
DWORD dwFlags;
WORD wEnQueueCnt;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/card.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void CARDvUpdateNextTBTT(DWORD_PTR dwIoBase, QWORD qwTSF, WORD wBeaconInterval);
BOOL CARDbGetCurrentTSF(DWORD_PTR dwIoBase, PQWORD pqwCurrTSF);
QWORD CARDqGetNextTBTT(QWORD qwTSF, WORD wBeaconInterval);
QWORD CARDqGetTSFOffset(BYTE byRxRate, QWORD qwTSF1, QWORD qwTSF2);
BOOL CARDbSetTxPower(void *pDeviceHandler, ULONG ulTxPower);
BOOL CARDbSetTxPower(void *pDeviceHandler, unsigned long ulTxPower);
BYTE CARDbyGetPktType(void *pDeviceHandler);
void CARDvSafeResetTx(void *pDeviceHandler);
void CARDvSafeResetRx(void *pDeviceHandler);
Expand Down
28 changes: 14 additions & 14 deletions trunk/drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ typedef enum _NDIS_802_11_STATUS_TYPE
//Added new types for PMKID Candidate lists.
typedef struct _PMKID_CANDIDATE {
NDIS_802_11_MAC_ADDRESS BSSID;
ULONG Flags;
unsigned long Flags;
} PMKID_CANDIDATE, *PPMKID_CANDIDATE;


Expand All @@ -261,15 +261,15 @@ typedef struct _BSSID_INFO
} BSSID_INFO, *PBSSID_INFO;

typedef struct tagSPMKID {
ULONG Length;
ULONG BSSIDInfoCount;
unsigned long Length;
unsigned long BSSIDInfoCount;
BSSID_INFO BSSIDInfo[MAX_BSSIDINFO_4_PMKID];
} SPMKID, *PSPMKID;

typedef struct tagSPMKIDCandidateEvent {
NDIS_802_11_STATUS_TYPE StatusType;
ULONG Version; // Version of the structure
ULONG NumCandidates; // No. of pmkid candidates
unsigned long Version; // Version of the structure
unsigned long NumCandidates; // No. of pmkid candidates
PMKID_CANDIDATE CandidateList[MAX_PMKIDLIST];
} SPMKIDCandidateEvent, *PSPMKIDCandidateEvent;

Expand Down Expand Up @@ -618,7 +618,7 @@ typedef struct __device_info {
//WOW
BYTE abyIPAddr[4];

ULONG ulTxPower;
unsigned long ulTxPower;
NDIS_802_11_WEP_STATUS eEncryptionStatus;
BOOL bTransmitKey;
//2007-0925-01<Add>by MikeLiu
Expand Down Expand Up @@ -712,7 +712,7 @@ typedef struct __device_info {
struct timer_list sTimerCommand;
#ifdef TxInSleep
struct timer_list sTimerTxData;
ULONG nTxDataTimeCout;
unsigned long nTxDataTimeCout;
BOOL fTxDataInSleep;
BOOL IsTxDataTrigger;
#endif
Expand All @@ -728,26 +728,26 @@ typedef struct __device_info {

BOOL bDiversityRegCtlON;
BOOL bDiversityEnable;
ULONG ulDiversityNValue;
ULONG ulDiversityMValue;
unsigned long ulDiversityNValue;
unsigned long ulDiversityMValue;
BYTE byTMax;
BYTE byTMax2;
BYTE byTMax3;
ULONG ulSQ3TH;
unsigned long ulSQ3TH;

// ANT diversity
ULONG uDiversityCnt;
unsigned long uDiversityCnt;
BYTE byAntennaState;
ULONG ulRatio_State0;
ULONG ulRatio_State1;
unsigned long ulRatio_State0;
unsigned long ulRatio_State1;

//SQ3 functions for antenna diversity
struct timer_list TimerSQ3Tmax1;
struct timer_list TimerSQ3Tmax2;
struct timer_list TimerSQ3Tmax3;


ULONG uNumSQ3[MAX_RATE];
unsigned long uNumSQ3[MAX_RATE];
WORD wAntDiversityMaxRate;


Expand Down
13 changes: 7 additions & 6 deletions trunk/drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static void device_init_registers(PSDevice pDevice, DEVICE_INIT_TYPE InitType)
pDevice->ulDiversityMValue = 100*16;//SROMbyReadEmbedded(pDevice->PortOffset, 0x52);
pDevice->byTMax = 1;//SROMbyReadEmbedded(pDevice->PortOffset, 0x53);
pDevice->byTMax2 = 4;//SROMbyReadEmbedded(pDevice->PortOffset, 0x54);
pDevice->ulSQ3TH = 0;//(ULONG) SROMbyReadEmbedded(pDevice->PortOffset, 0x55);
pDevice->ulSQ3TH = 0;//(unsigned long) SROMbyReadEmbedded(pDevice->PortOffset, 0x55);
pDevice->byTMax3 = 64;//SROMbyReadEmbedded(pDevice->PortOffset, 0x56);

if (byValue == (EEP_ANTENNA_AUX | EEP_ANTENNA_MAIN)) {
Expand Down Expand Up @@ -851,17 +851,17 @@ else CARDbRadioPowerOn(pDevice);
static void device_init_diversity_timer(PSDevice pDevice) {

init_timer(&pDevice->TimerSQ3Tmax1);
pDevice->TimerSQ3Tmax1.data = (ULONG)pDevice;
pDevice->TimerSQ3Tmax1.data = (unsigned long) pDevice;
pDevice->TimerSQ3Tmax1.function = (TimerFunction)TimerSQ3CallBack;
pDevice->TimerSQ3Tmax1.expires = RUN_AT(HZ);

init_timer(&pDevice->TimerSQ3Tmax2);
pDevice->TimerSQ3Tmax2.data = (ULONG)pDevice;
pDevice->TimerSQ3Tmax2.data = (unsigned long) pDevice;
pDevice->TimerSQ3Tmax2.function = (TimerFunction)TimerSQ3CallBack;
pDevice->TimerSQ3Tmax2.expires = RUN_AT(HZ);

init_timer(&pDevice->TimerSQ3Tmax3);
pDevice->TimerSQ3Tmax3.data = (ULONG)pDevice;
pDevice->TimerSQ3Tmax3.data = (unsigned long) pDevice;
pDevice->TimerSQ3Tmax3.function = (TimerFunction)TimerState1CallBack;
pDevice->TimerSQ3Tmax3.expires = RUN_AT(HZ);

Expand Down Expand Up @@ -1112,10 +1112,11 @@ static void device_print_info(PSDevice pDevice)
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: %s\n",dev->name, get_chip_name(pDevice->chip_id));
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: MAC=%pM", dev->name, dev->dev_addr);
#ifdef IO_MAP
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx ",(ULONG) pDevice->ioaddr);
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx ",(unsigned long) pDevice->ioaddr);
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IRQ=%d \n", pDevice->dev->irq);
#else
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx Mem=0x%lx ",(ULONG) pDevice->ioaddr,(ULONG) pDevice->PortOffset);
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IO=0x%lx Mem=0x%lx ",
(unsigned long) pDevice->ioaddr,(unsigned long) pDevice->PortOffset);
DBG_PRT(MSG_LEVEL_INFO, KERN_INFO" IRQ=%d \n", pDevice->dev->irq);
#endif

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ vConfigWEPKey (
PSDevice pDevice,
DWORD dwKeyIndex,
PBYTE pbyKey,
ULONG uKeyLength
unsigned long uKeyLength
)
{
int ii;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void vConfigWEPKey (
PSDevice pDevice,
DWORD dwKeyIndex,
PBYTE pbyKey,
ULONG uKeyLength
unsigned long uKeyLength
);
*/

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ BOOL KeybSetKey (
PSKeyManagement pTable,
PBYTE pbyBSSID,
DWORD dwKeyIndex,
ULONG uKeyLength,
unsigned long uKeyLength,
PQWORD pKeyRSC,
PBYTE pbyKey,
BYTE byKeyDecMode,
Expand Down Expand Up @@ -634,7 +634,7 @@ BOOL KeybCheckPairewiseKey (
BOOL KeybSetDefaultKey (
PSKeyManagement pTable,
DWORD dwKeyIndex,
ULONG uKeyLength,
unsigned long uKeyLength,
PQWORD pKeyRSC,
PBYTE pbyKey,
BYTE byKeyDecMode,
Expand Down Expand Up @@ -741,7 +741,7 @@ BOOL KeybSetDefaultKey (
BOOL KeybSetAllGroupKey (
PSKeyManagement pTable,
DWORD dwKeyIndex,
ULONG uKeyLength,
unsigned long uKeyLength,
PQWORD pKeyRSC,
PBYTE pbyKey,
BYTE byKeyDecMode,
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/vt6655/key.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
typedef struct tagSKeyItem
{
BOOL bKeyValid;
ULONG uKeyLength;
unsigned long uKeyLength;
BYTE abyKey[MAX_KEY_LEN];
QWORD KeyRSC;
DWORD dwTSC47_16;
Expand Down Expand Up @@ -114,7 +114,7 @@ BOOL KeybSetKey(
PSKeyManagement pTable,
PBYTE pbyBSSID,
DWORD dwKeyIndex,
ULONG uKeyLength,
unsigned long uKeyLength,
PQWORD pKeyRSC,
PBYTE pbyKey,
BYTE byKeyDecMode,
Expand All @@ -125,7 +125,7 @@ BOOL KeybSetKey(
BOOL KeybSetDefaultKey(
PSKeyManagement pTable,
DWORD dwKeyIndex,
ULONG uKeyLength,
unsigned long uKeyLength,
PQWORD pKeyRSC,
PBYTE pbyKey,
BYTE byKeyDecMode,
Expand Down Expand Up @@ -172,7 +172,7 @@ void KeyvRemoveAllWEPKey(
BOOL KeybSetAllGroupKey (
PSKeyManagement pTable,
DWORD dwKeyIndex,
ULONG uKeyLength,
unsigned long uKeyLength,
PQWORD pKeyRSC,
PBYTE pbyKey,
BYTE byKeyDecMode,
Expand Down
20 changes: 10 additions & 10 deletions trunk/drivers/staging/vt6655/mib.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
//

typedef struct tagSDot11Counters {
ULONG Length; // Length of structure
unsigned long Length; // Length of structure
ULONGLONG TransmittedFragmentCount;
ULONGLONG MulticastTransmittedFrameCount;
ULONGLONG FailedCount;
Expand Down Expand Up @@ -138,7 +138,7 @@ typedef struct tagSRmonCounter {
// Custom counter
//
typedef struct tagSCustomCounters {
ULONG Length;
unsigned long Length;

ULONGLONG ullTsrAllOK;

Expand Down Expand Up @@ -177,7 +177,7 @@ typedef struct tagSCustomCounters {
// Custom counter
//
typedef struct tagSISRCounters {
ULONG Length;
unsigned long Length;

DWORD dwIsrTx0OK;
DWORD dwIsrAC0TxOK;
Expand Down Expand Up @@ -324,15 +324,15 @@ typedef struct tagSStatCounter {

#ifdef Calcu_LinkQual
//Tx count:
ULONG TxNoRetryOkCount; //success tx no retry !
ULONG TxRetryOkCount; //success tx but retry !
ULONG TxFailCount; //fail tx ?
unsigned long TxNoRetryOkCount; //success tx no retry !
unsigned long TxRetryOkCount; //success tx but retry !
unsigned long TxFailCount; //fail tx ?
//Rx count:
ULONG RxOkCnt; //success rx !
ULONG RxFcsErrCnt; //fail rx ?
unsigned long RxOkCnt; //success rx !
unsigned long RxFcsErrCnt; //fail rx ?
//statistic
ULONG SignalStren;
ULONG LinkQuality;
unsigned long SignalStren;
unsigned long LinkQuality;
#endif
} SStatCounter, *PSStatCounter;

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/vt6655/ttype.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ typedef int BOOL;
* but it doesn't matter if they're signed or unsigned.
*/

typedef unsigned long ULONG;
typedef unsigned long long ULONGLONG; //64 bit


Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/upc.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

#define PCAvDelayByIO(uDelayUnit) { \
BYTE byData; \
ULONG ii; \
unsigned long ii; \
\
if (uDelayUnit <= 50) { \
udelay(uDelayUnit); \
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/vntwifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ VNTWIFIbInit(
BOOL
VNTWIFIbSetPMKIDCache (
void *pMgmtObject,
ULONG ulCount,
unsigned long ulCount,
void *pPMKIDInfo
)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/vntwifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ VNTWIFIbyGetKeyCypher(
BOOL
VNTWIFIbSetPMKIDCache (
void *pMgmtObject,
ULONG ulCount,
unsigned long ulCount,
void *pPMKIDInfo
);

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/wcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ vCommandTimerWait(
PSDevice pDevice = (PSDevice)hDeviceContext;

init_timer(&pDevice->sTimerCommand);
pDevice->sTimerCommand.data = (ULONG)pDevice;
pDevice->sTimerCommand.data = (unsigned long) pDevice;
pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer;
// RUN_AT :1 msec ~= (HZ/1024)
pDevice->sTimerCommand.expires = (unsigned int)RUN_AT((MSecond * HZ) >> 10);
Expand Down Expand Up @@ -723,7 +723,7 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySS
// printk("Re-initial TxDataTimer****\n");
del_timer(&pDevice->sTimerTxData);
init_timer(&pDevice->sTimerTxData);
pDevice->sTimerTxData.data = (ULONG)pDevice;
pDevice->sTimerTxData.data = (unsigned long) pDevice;
pDevice->sTimerTxData.function = (TimerFunction)BSSvSecondTxData;
pDevice->sTimerTxData.expires = RUN_AT(10*HZ); //10s callback
pDevice->fTxDataInSleep = FALSE;
Expand Down Expand Up @@ -1092,7 +1092,7 @@ vResetCommandTimer(
del_timer(&pDevice->sTimerCommand);
//init timer
init_timer(&pDevice->sTimerCommand);
pDevice->sTimerCommand.data = (ULONG)pDevice;
pDevice->sTimerCommand.data = (unsigned long) pDevice;
pDevice->sTimerCommand.function = (TimerFunction)vCommandTimer;
pDevice->sTimerCommand.expires = RUN_AT(HZ);
pDevice->cbFreeCmdQueue = CMD_Q_SIZE;
Expand Down
Loading

0 comments on commit 92e95c9

Please sign in to comment.