NEXT:staging: "vt6655" Fix typos in comments.
PATCH 1/3 NEXT:staging: "vt6655" Fix typos in comments.
From: "Justin P. Mattock" <[email protected]>
---
Note: the patches must be applied in order.
The patch below is 1 out of 3 that I will be sending out for fixing typos in staging vt6655. This patch mainly focuses on comments; patch 2 and 3 focus on actual code change.
drivers/staging/vt6655/80211mgr.h | 2 +- drivers/staging/vt6655/baseband.c | 8 ++--- drivers/staging/vt6655/bssdb.c | 4 +-- drivers/staging/vt6655/card.c | 3 +- drivers/staging/vt6655/datarate.c | 2 +- drivers/staging/vt6655/device.h | 4 +-- drivers/staging/vt6655/device_main.c | 6 ++-- drivers/staging/vt6655/dpc.c | 2 +- drivers/staging/vt6655/ioctl.c | 2 +- drivers/staging/vt6655/iwctl.c | 6 ++-- drivers/staging/vt6655/key.c | 2 +- drivers/staging/vt6655/mac.c | 12 ++++---- drivers/staging/vt6655/mac.h | 2 +- drivers/staging/vt6655/mib.c | 2 +- drivers/staging/vt6655/power.c | 2 +- drivers/staging/vt6655/rf.c | 10 +++--- drivers/staging/vt6655/rxtx.c | 6 ++-- drivers/staging/vt6655/tcrc.c | 2 +- drivers/staging/vt6655/tcrc.h | 2 +- drivers/staging/vt6655/vntwifi.c | 2 +- drivers/staging/vt6655/wcmd.c | 6 ++-- drivers/staging/vt6655/wmgr.c | 56 +++++++++++++++++----------------- drivers/staging/vt6655/wmgr.h | 4 +-- drivers/staging/vt6655/wpa.c | 2 +- drivers/staging/vt6655/wpa2.c | 8 ++--- drivers/staging/vt6655/wpactl.c | 6 ++-- drivers/staging/vt6655/wroute.c | 2 +- 27 files changed, 83 insertions(+), 82 deletions(-)
drivers/staging/vt6655/80211mgr.h +1 -1
@@ -186,7 +186,7 @@// -// Cipher Suite Selectors defiened in 802.11i +// Cipher Suite Selectors defined in 802.11i // #define WLAN_11i_CSS_USE_GROUP 0#define WLAN_11i_CSS_WEP40 1
drivers/staging/vt6655/baseband.c +4 -4
@@ -28,8 +28,8 @@* Functions: * BBuGetFrameTime - Calculate data frame transmitting time * BBvCaculateParameter - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx -* BBbReadEmbeded - Embeded read baseband register via MAC -* BBbWriteEmbeded - Embeded write baseband register via MAC +* BBbReadEmbeded - Embedded read baseband register via MAC +* BBbWriteEmbeded - Embedded write baseband register via MAC * BBbIsRegBitsOn - Test if baseband register bits on * BBbIsRegBitsOff - Test if baseband register bits off * BBbVT3253Init - VIA VT3253 baseband chip init code
@@ -2001,7 +2001,7 @@ BBvCaculateParameter ( }/* -* Description: Read a byte from BASEBAND, by embeded programming +* Description: Read a byte from BASEBAND, by embedded programming * * Parameters: * In:
@@ -2043,7 +2043,7 @@ bool BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch/* -* Description: Write a Byte to BASEBAND, by embeded programming +* Description: Write a Byte to BASEBAND, by embedded programming * * Parameters: * In:
drivers/staging/vt6655/bssdb.c +2 -2
@@ -784,8 +784,8 @@ BSSDBbIsSTAInNodeDB(void *pMgmtObject, unsigned char *abyDstAddr,/*+ * * Routine Description: -* Find an empty node and allocated; if no empty found, -* instand used of most inactive one. +* Find an empty node and allocat it; if there is no empty node, +* then use the most inactive one. * * Return Value: * None
drivers/staging/vt6655/card.c +2 -1
@@ -1354,7 +1354,8 @@ CARDbSetQuiet (/* * * Description: -* Do Quiet, It will called by either ISR (after start) or VNTWIFI (before start) so do not need SPINLOCK +* Do Quiet, It will be called by either ISR(after start) +* or VNTWIFI(before start) so we do not need a SPINLOCK * * Parameters: * In:
drivers/staging/vt6655/datarate.c +1 -1
@@ -126,7 +126,7 @@ DATARATEbyGetRateIdx (/*+ * * Routine Description: -* Rate fallback Algorithm Implementaion +* Rate fallback Algorithm Implementation * * Parameters: * In:
drivers/staging/vt6655/device.h +2 -2
@@ -327,7 +327,7 @@ typedef struct tagSDeFragControlBlock//flags for driver status #define DEVICE_FLAGS_OPENED 0x00010000UL#define DEVICE_FLAGS_WOL_ENABLED 0x00080000UL -//flags for capbilities +//flags for capabilities #define DEVICE_FLAGS_TX_ALIGN 0x01000000UL#define DEVICE_FLAGS_HAVE_CAM 0x02000000UL#define DEVICE_FLAGS_FLOW_CTRL 0x04000000UL
@@ -567,7 +567,7 @@ typedef struct __device_info {bool bPrvActive4RadioOFF;bool bGPIOBlockRead; -// Beacon releated +// Beacon related unsigned short wSeqCounter;unsigned short wBCNBufLen;bool bBeaconBufReady;
drivers/staging/vt6655/device_main.c +3 -3
@@ -518,7 +518,7 @@ static void s_vCompleteCurrentMeasure (PSDevice pDevice, unsigned char byResult)// -// Initialiation of MAC & BBP registers +// Initialisation of MAC & BBP registers // static void device_init_registers (PSDevice pDevice,DEVICE_INIT_TYPE InitType)
@@ -1064,7 +1064,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)//Mask out the options cannot be set to the chip pDevice->sOpts.flags &= pChip_info->flags; -//Enable the chip specified capbilities +//Enable the chip specified capabilities pDevice->flags = pDevice->sOpts.flags | (pChip_info->flags &0xFF000000UL ); pDevice->tx_80211 = device_dma0_tx_80211; pDevice->sMgmtObj.pAdapter = (void *)pDevice;
@@ -1678,7 +1678,7 @@ static int device_tx_srv(PSDevice pDevice, unsigned int uIdx) { uFrameSize = pTD->pTDInfo->dwReqCount - uFIFOHeaderSize; pTxBufHead = (PSTxBufHead) (pTD->pTDInfo->buf);// Update the statistics based on the Transmit status -// now, we DO'NT check TSR0_CDH +// now, we DONT check TSR0_CDH STAvUpdateTDStatCounter(&pDevice->scStatistic, byTsr0, byTsr1,
drivers/staging/vt6655/dpc.c +1 -1
@@ -718,7 +718,7 @@ device_receive_frame (if ((*pbyRSSI !=0 ) && (pMgmt->pCurrBSS!=NULL )) {RFvRSSITodBm (pDevice, *pbyRSSI, &ldBm); -// Moniter if RSSI is too strong. +// Monitor if RSSI is too strong. pMgmt->pCurrBSS->byRSSIStatCnt++; pMgmt->pCurrBSS->byRSSIStatCnt %=RSSI_STAT_COUNT ; pMgmt->pCurrBSS->ldBmAverage[pMgmt->pCurrBSS->byRSSIStatCnt] = ldBm;
drivers/staging/vt6655/ioctl.c +1 -1
@@ -111,7 +111,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)break ;case WLAN_CMD_ZONETYPE_SET : -/* mike add :cann't support. */ +/* mike add :can't support. */ result = -EOPNOTSUPP ;break ;
drivers/staging/vt6655/iwctl.c +3 -3
@@ -358,7 +358,7 @@ int iwctl_giwscan(struct net_device *dev,/* -* Wireless Handler : set frequence or channel +* Wireless Handler : set frequency or channel */ int iwctl_siwfreq(struct net_device *dev,
@@ -404,7 +404,7 @@ int iwctl_siwfreq(struct net_device *dev, }/* -* Wireless Handler : get frequence or channel +* Wireless Handler : get frequency or channel */ int iwctl_giwfreq(struct net_device *dev,
@@ -1346,7 +1346,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){ }else if (index>0 ){//when the length is 0 the request only changes the default transmit key index -//check the new key has a non zero lenget +//check the new key if it has a non zero length if (pDevice->bEncryptionEnable==false) { rc = -EINVAL ;
drivers/staging/vt6655/key.c +1 -1
@@ -372,7 +372,7 @@ bool KeybRemoveKey (int i;if (is_broadcast_ether_addr (pbyBSSID)) { -// dealte all key +// delete all keys if ((dwKeyIndex &PAIRWISE_KEY ) !=0 ) {for (i=0 ;i<MAX_KEY_TABLE ;i++) { pTable->KeyTable[i].PairwiseKey.bKeyValid = false;
drivers/staging/vt6655/mac.c +6 -6
@@ -56,9 +56,9 @@* MACbSafeStop - Stop MAC function * MACbShutdown - Shut down MAC * MACvInitialize - Initialize MAC -* MACvSetCurrRxDescAddr - Set Rx Descriptos Address -* MACvSetCurrTx0DescAddr - Set Tx0 Descriptos Address -* MACvSetCurrTx1DescAddr - Set Tx1 Descriptos Address +* MACvSetCurrRxDescAddr - Set Rx Descriptors Address +* MACvSetCurrTx0DescAddr - Set Tx0 Descriptors Address +* MACvSetCurrTx1DescAddr - Set Tx1 Descriptors Address * MACvTimer0MicroSDelay - Micro Second Delay Loop by MAC * * Revision History:
@@ -1498,7 +1498,7 @@ int ii; wOffset += (uKeyIdx *4 );for (ii=0 ;ii<4 ;ii++) { -// alway push 128 bits +// always push 128 bits DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "3.(%d) wOffset: %d, Data: %lX\n" , ii, wOffset+ii, *pdwKey);VNSvOutPortW (dwIoBase +MAC_REG_MISCFFNDEX , wOffset+ii);VNSvOutPortD (dwIoBase +MAC_REG_MISCFFDATA , *pdwKey++);
@@ -1567,7 +1567,7 @@ int ii; wOffset++; wOffset++; wOffset += (uKeyIdx *4 ); -// alway push 128 bits +// always push 128 bits for (ii=0 ; ii<3 ; ii++) {DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "(%d) wOffset: %d, Data: %lX\n" , ii, wOffset+ii, *pdwKey);VNSvOutPortW (dwIoBase +MAC_REG_MISCFFNDEX , wOffset+ii);
@@ -1696,7 +1696,7 @@ int ii; wOffset += (uKeyIdx *4 );DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "1. wOffset: %d, Data: %lX, idx:%d\n" , wOffset, *pdwKey, uKeyIdx); -// alway push 128 bits +// always push 128 bits for (ii=0 ; ii<4 ; ii++) {DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "2.(%d) wOffset: %d, Data: %lX\n" , ii, wOffset+ii, *pdwKey);VNSvOutPortW (dwIoBase +MAC_REG_MISCFFNDEX , wOffset+ii);
drivers/staging/vt6655/mac.h +1 -1
@@ -586,7 +586,7 @@#define PKT_TYPE_NONE 0x00 // turn off receiver#define PKT_TYPE_ALL_MULTICAST 0x80#define PKT_TYPE_PROMISCUOUS 0x40 -#define PKT_TYPE_DIRECTED 0x20 // obselete, directed address is always accepted +#define PKT_TYPE_DIRECTED 0x20 // obsolete, directed address is always accepted#define PKT_TYPE_BROADCAST 0x10#define PKT_TYPE_MULTICAST 0x08#define PKT_TYPE_ERROR_WPA 0x04
drivers/staging/vt6655/mib.c +1 -1
@@ -191,7 +191,7 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic, pStatistic->ullRsrOK++;if (cbFrameLength >=ETH_ALEN ) { -// update counters in case that successful transmit +// update counters in case of successful transmit if (byRSR &RSR_ADDRBROAD ) { pStatistic->ullRxBroadcastFrames++; pStatistic->ullRxBroadcastBytes += (unsigned long long ) cbFrameLength;
drivers/staging/vt6655/power.c +1 -1
@@ -207,7 +207,7 @@ PSbConsiderPowerDown(if (pDevice->bCmdRunning)return false; -// Froce PSEN on +// Force PSEN on MACvRegBitsOn (pDevice->PortOffset,MAC_REG_PSCTL ,PSCTL_PSEN );// check if all TD are empty,
drivers/staging/vt6655/rf.c +5 -5
@@ -26,7 +26,7 @@* Date: Feb. 19, 2004 * * Functions: -* IFRFbWriteEmbeded - Embeded write RF register via MAC +* IFRFbWriteEmbeded - Embedded write RF register via MAC * * Revision History: *
@@ -460,11 +460,11 @@ bool s_bAL7230Init (unsigned long dwIoBase)//Calibration MACvTimer0MicroSDelay (dwIoBase,150 );//150us - bResult &=IFRFbWriteEmbeded (dwIoBase, (0x9ABA8F00 +(BY_AL7230_REG_LEN <<3 )+IFREGCTL_REGW ));//TXDCOC:active, RCK:diable + bResult &=IFRFbWriteEmbeded (dwIoBase, (0x9ABA8F00 +(BY_AL7230_REG_LEN <<3 )+IFREGCTL_REGW ));//TXDCOC:active, RCK:disable MACvTimer0MicroSDelay (dwIoBase,30 );//30us - bResult &=IFRFbWriteEmbeded (dwIoBase, (0x3ABA8F00 +(BY_AL7230_REG_LEN <<3 )+IFREGCTL_REGW ));//TXDCOC:diable, RCK:active + bResult &=IFRFbWriteEmbeded (dwIoBase, (0x3ABA8F00 +(BY_AL7230_REG_LEN <<3 )+IFREGCTL_REGW ));//TXDCOC:disable, RCK:active MACvTimer0MicroSDelay (dwIoBase,30 );//30us - bResult &=IFRFbWriteEmbeded (dwIoBase, dwAL7230InitTable[CB_AL7230_INIT_SEQ -1 ]);//TXDCOC:diable, RCK:diable + bResult &=IFRFbWriteEmbeded (dwIoBase, dwAL7230InitTable[CB_AL7230_INIT_SEQ -1 ]);//TXDCOC:disable, RCK:disable MACvWordRegBitsOn(dwIoBase, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE3 | SOFTPWRCTL_SWPE2 |
@@ -574,7 +574,7 @@ bool s_bAL7230SelectChannel (unsigned long dwIoBase, unsigned char byChannel)/*--------------------- Export Functions --------------------------*/ /* -* Description: Write to IF/RF, by embeded programming +* Description: Write to IF/RF, by embedded programming * * Parameters: * In:
drivers/staging/vt6655/rxtx.c +3 -3
@@ -2568,7 +2568,7 @@ CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) {if (bIsPSPOLL) {// The MAC will automatically replace the Duration-field of MAC header by Duration-field // of FIFO control header. -// This will cause AID-field of PS-POLL packet be incorrect (Because PS-POLL's AID field is +// This will cause AID-field of PS-POLL packet to be incorrect (Because PS-POLL's AID field is // in the same place of other packet's Duration-field). // And it will cause Cisco-AP to issue Disassociation-packet if (byPktType ==PK_TYPE_11GB || byPktType ==PK_TYPE_11GA ) {
@@ -2860,7 +2860,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un// SetPower will cause error power TX state for OFDM Date packet in TX buffer. // 2004.11.11 Kyle -- Using OFDM power to tx MngPkt will decrease the connection capability. -// And cmd timer will wait data pkt TX finish before scanning so it's OK +// And cmd timer will wait data pkt TX to finish before scanning so it's OK // to set power here. if (pDevice->pMgmt->eScanState !=WMAC_NO_SCANNING ) {RFbSetPower (pDevice, wCurrentRate, pDevice->byCurrentCh);
@@ -2957,7 +2957,7 @@ vDMA0_tx_80211(PSDevice pDevice, struct sk_buff *skb, unsigned char *pbMPDU, un pTxBufHead->wFragCtl |=cpu_to_le16 ((unsigned short )cbMacHdLen <<10 );// Notes: -// Although spec says MMPDU can be fragmented; In most case, +// Although spec says MMPDU can be fragmented; In most casses, // no one will send a MMPDU under fragmentation. With RTS may occur. pDevice->bAES = false;//Set FRAGCTL_WEPTYP
drivers/staging/vt6655/tcrc.c +1 -1
@@ -18,7 +18,7 @@* * File: tcrc.c * -* Purpose: Implement functions to caculate CRC +* Purpose: Implement functions to calculate CRC * * Author: Tevin Chen *
drivers/staging/vt6655/tcrc.h +1 -1
@@ -18,7 +18,7 @@* * File: tcrc.h * -* Purpose: Implement functions to caculate CRC +* Purpose: Implement functions to calculate CRC * * Author: Tevin Chen *
drivers/staging/vt6655/vntwifi.c +1 -1
@@ -60,7 +60,7 @@* Parameters: * In: * pMgmtHandle - pointer to management object -* eOPMode - Opreation Mode +* eOPMode - Operation Mode * Out: * none *
drivers/staging/vt6655/wcmd.c +3 -3
@@ -121,7 +121,7 @@ vAdHocBeaconStop(PSDevice pDevice)/* * temporarily stop Beacon packet for AdHoc Server -* if all of the following coditions are met: +* if all of the following conditions are met: * (1) STA is in AdHoc mode * (2) VT3253 is programmed as automatic Beacon Transmitting * (3) One of the following conditions is met
@@ -812,8 +812,8 @@ printk("chester-abyDesireSSID=%s\n",((PWLAN_IE_SSID)pMgmt->abyDesireSSID)->abySSDBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "sta ps tx fail \n" ); } pMgmt->sNodeDBTable[ii].wEnQueueCnt--; -// check if sta ps enable, wait next pspoll -// if sta ps disable, send all pending buffers. +// check if sta ps enabled, and wait next pspoll. +// if sta ps disable, then send all pending buffers. if (pMgmt->sNodeDBTable[ii].bPSEnable)break ; }
drivers/staging/vt6655/wmgr.c +28 -28
212 lines not on this page · raw message
drivers/staging/vt6655/wmgr.h +2 -2
@@ -286,7 +286,7 @@ typedef struct tagSMgmtObjectCMD_STATE eCommandState;unsigned int uScanChannel; -// Desire joinning BSS vars +// Desire joining BSS vars unsigned char abyDesireSSID[WLAN_IEHDR_LEN +WLAN_SSID_MAXLEN +1 ];unsigned char abyDesireBSSID[WLAN_BSSID_LEN ];
@@ -310,7 +310,7 @@ typedef struct tagSMgmtObjectunsigned int uScanEndCh;unsigned short wScanSteps;unsigned int uScanBSSType; -// Desire scannig vars +// Desire scanning vars unsigned char abyScanSSID[WLAN_IEHDR_LEN +WLAN_SSID_MAXLEN +1 ];unsigned char abyScanBSSID[WLAN_BSSID_LEN ];
drivers/staging/vt6655/wpa.c +1 -1
@@ -229,7 +229,7 @@ WPA_ParseRSN (* Parameters: * In: * byCmd - Search type -* byEncrypt- Encrcypt Type +* byEncrypt- Encrypt Type * pBSSList - BSS list * Out: * none
drivers/staging/vt6655/wpa2.c +4 -4
@@ -175,16 +175,16 @@ WPA2vParseRSN ( pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_USE_GROUP; bUseGK = true; }else if ( !memcmp (pbyOUI, abyOUIWEP40,4 )) { -// Invialid CSS, continue to parsing +// Invalid CSS, continue to parsing }else if ( !memcmp (pbyOUI, abyOUITKIP,4 )) {if (pBSSNode->byCSSGK != WLAN_11i_CSS_CCMP) pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_TKIP;else - ;// Invialid CSS, continue to parsing + ;// Invalid CSS, continue to parsing }else if ( !memcmp (pbyOUI, abyOUICCMP,4 )) { pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_CCMP; }else if ( !memcmp (pbyOUI, abyOUIWEP104,4 )) { -// Invialid CSS, continue to parsing +// Invalid CSS, continue to parsing }else {// any vendor checks here pBSSNode->abyCSSPK[j++] = WLAN_11i_CSS_UNKNOWN;
@@ -329,7 +329,7 @@ WPA2uSetIEs( } pRSNIEs->len +=6 ; -// RSN Capabilites +// RSN Capabilities if (pMgmt->pCurrBSS->sRSNCapObj.bRSNCapExist == true) {memcpy (&pRSNIEs->abyRSN[16 ], &pMgmt->pCurrBSS->sRSNCapObj.wRSNCap,2 ); }else {
drivers/staging/vt6655/wpactl.c +3 -3
@@ -77,7 +77,7 @@ static void wpadev_setup(struct net_device *dev)/* * Description: -* register netdev for wpa supplicant deamon +* register netdev for wpa supplicant daemon * * Parameters: * In:
@@ -164,7 +164,7 @@ static int wpa_release_wpadev(PSDevice pDevice)/* * Description: -* Set enable/disable dev for wpa supplicant deamon +* Set enable/disable dev for wpa supplicant daemon * * Parameters: * In:
@@ -847,7 +847,7 @@ elseif (!bWepEnabled) pDevice->eEncryptionStatus = Ndis802_11EncryptionDisabled;else pDevice->eEncryptionStatus = Ndis802_11Encryption1Enabled;//pMgmt->eAuthenMode = WMAC_AUTH_OPEN; -//pMgmt->bShareKeyAlgorithm = false; //20080717-06,<Modify> by chester//Fix Open mode, WEP encrytion +//pMgmt->bShareKeyAlgorithm = false; //20080717-06,<Modify> by chester//Fix Open mode, WEP encryption }//mike save old encryption status pDevice->eOldEncryptionStatus = pDevice->eEncryptionStatus;
drivers/staging/vt6655/wroute.c +1 -1
@@ -18,7 +18,7 @@* * File: wroute.c * -* Purpose: handle WMAC frame relay & filterring +* Purpose: handle WMAC frame relay & filtering * * Author: Lyndon Chen *
Signature · 1 line
1.7.9.5
PATCH 2/3 NEXT:staging: "vt6655" Typo change *Embeded to *Embedded.
From: "Justin P. Mattock" <[email protected]>
---
The below patch changes *Embeded to *Embedded in comments and code.
Note: I am grepping but grepping is being difficult, if I missed any let me know and I will resubmit.
drivers/staging/vt6655/baseband.c | 162 +++++++++++++++++----------------- drivers/staging/vt6655/baseband.h | 8 +- drivers/staging/vt6655/card.c | 36 ++++---- drivers/staging/vt6655/device_main.c | 2 +- drivers/staging/vt6655/rf.c | 80 ++++++++--------- drivers/staging/vt6655/rf.h | 2 +- 6 files changed, 145 insertions(+), 145 deletions(-)
drivers/staging/vt6655/baseband.c +81 -81
@@ -28,8 +28,8 @@* Functions: * BBuGetFrameTime - Calculate data frame transmitting time * BBvCaculateParameter - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx -* BBbReadEmbeded - Embedded read baseband register via MAC -* BBbWriteEmbeded - Embedded write baseband register via MAC +* BBbReadEmbedded - Embedded read baseband register via MAC +* BBbWriteEmbedded - Embedded write baseband register via MAC * BBbIsRegBitsOn - Test if baseband register bits on * BBbIsRegBitsOff - Test if baseband register bits off * BBbVT3253Init - VIA VT3253 baseband chip init code
@@ -2013,7 +2013,7 @@ BBvCaculateParameter (* Return Value: true if succeeded; false if failed. * */ -bool BBbReadEmbeded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char *pbyData) +bool BBbReadEmbedded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char *pbyData) {unsigned short ww;unsigned char byValue;
@@ -2056,7 +2056,7 @@ bool BBbReadEmbeded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch* Return Value: true if succeeded; false if failed. * */ -bool BBbWriteEmbeded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char byData) +bool BBbWriteEmbedded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char byData) {unsigned short ww;unsigned char byValue;
@@ -2102,7 +2102,7 @@ bool BBbIsRegBitsOn (unsigned long dwIoBase, unsigned char byBBAddr, unsigned ch {unsigned char byOrgData; -BBbReadEmbeded (dwIoBase, byBBAddr, &byOrgData); +BBbReadEmbedded (dwIoBase, byBBAddr, &byOrgData);return (byOrgData & byTestBits) == byTestBits; }
@@ -2125,7 +2125,7 @@ bool BBbIsRegBitsOff (unsigned long dwIoBase, unsigned char byBBAddr, unsigned c {unsigned char byOrgData; -BBbReadEmbeded (dwIoBase, byBBAddr, &byOrgData); +BBbReadEmbedded (dwIoBase, byBBAddr, &byOrgData);return (byOrgData & byTestBits) ==0 ; }
@@ -2155,14 +2155,14 @@ bool BBbVT3253Init (PSDevice pDevice)if (byRFType ==RF_RFMD2959 ) {if (byLocalID <=REV_ID_VT3253_A1 ) {for (ii =0 ; ii <CB_VT3253_INIT_FOR_RFMD ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253InitTab_RFMD[ii][0 ],byVT3253InitTab_RFMD[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253InitTab_RFMD[ii][0 ],byVT3253InitTab_RFMD[ii][1 ]); } }else {for (ii =0 ; ii <CB_VT3253B0_INIT_FOR_RFMD ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_RFMD[ii][0 ],byVT3253B0_RFMD[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_RFMD[ii][0 ],byVT3253B0_RFMD[ii][1 ]); }for (ii =0 ; ii <CB_VT3253B0_AGC_FOR_RFMD2959 ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AGC4_RFMD2959[ii][0 ],byVT3253B0_AGC4_RFMD2959[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AGC4_RFMD2959[ii][0 ],byVT3253B0_AGC4_RFMD2959[ii][1 ]); }VNSvOutPortD (dwIoBase +MAC_REG_ITRTMSET ,0x23 );MACvRegBitsOn (dwIoBase,MAC_REG_PAPEDELAY ,BIT0 );
@@ -2177,10 +2177,10 @@ bool BBbVT3253Init (PSDevice pDevice) pDevice->ldBmThreshold[3 ] =0 ; }else if ((byRFType ==RF_AIROHA ) || (byRFType ==RF_AL2230S ) ) {for (ii =0 ; ii <CB_VT3253B0_INIT_FOR_AIROHA2230 ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AIROHA2230[ii][0 ],byVT3253B0_AIROHA2230[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AIROHA2230[ii][0 ],byVT3253B0_AIROHA2230[ii][1 ]); }for (ii =0 ; ii <CB_VT3253B0_AGC ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); } pDevice->abyBBVGA[0 ] =0x1C ; pDevice->abyBBVGA[1 ] =0x10 ;
@@ -2192,10 +2192,10 @@ bool BBbVT3253Init (PSDevice pDevice) pDevice->ldBmThreshold[3 ] =0 ; }else if (byRFType ==RF_UW2451 ) {for (ii =0 ; ii <CB_VT3253B0_INIT_FOR_UW2451 ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_UW2451[ii][0 ],byVT3253B0_UW2451[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_UW2451[ii][0 ],byVT3253B0_UW2451[ii][1 ]); }for (ii =0 ; ii <CB_VT3253B0_AGC ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); }VNSvOutPortB (dwIoBase +MAC_REG_ITRTMSET ,0x23 );MACvRegBitsOn (dwIoBase,MAC_REG_PAPEDELAY ,BIT0 );
@@ -2210,28 +2210,28 @@ bool BBbVT3253Init (PSDevice pDevice) pDevice->ldBmThreshold[3 ] =0 ; }else if (byRFType ==RF_UW2452 ) {for (ii =0 ; ii <CB_VT3253B0_INIT_FOR_UW2451 ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_UW2451[ii][0 ],byVT3253B0_UW2451[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_UW2451[ii][0 ],byVT3253B0_UW2451[ii][1 ]); }// Init ANT B select,TX Config CR09 = 0x61->0x45, 0x45->0x41(VC1/VC2 define, make the ANT_A, ANT_B inverted) -//bResult &= BBbWriteEmbeded(dwIoBase,0x09,0x41); +//bResult &= BBbWriteEmbedded(dwIoBase,0x09,0x41); // Init ANT B select,RX Config CR10 = 0x28->0x2A, 0x2A->0x28(VC1/VC2 define, make the ANT_A, ANT_B inverted) -//bResult &= BBbWriteEmbeded(dwIoBase,0x0a,0x28); +//bResult &= BBbWriteEmbedded(dwIoBase,0x0a,0x28); // Select VC1/VC2, CR215 = 0x02->0x06 - bResult &=BBbWriteEmbeded (dwIoBase,0xd7 ,0x06 ); + bResult &=BBbWriteEmbedded (dwIoBase,0xd7 ,0x06 );//{{RobertYu:20050125, request by Jack - bResult &=BBbWriteEmbeded (dwIoBase,0x90 ,0x20 ); - bResult &=BBbWriteEmbeded (dwIoBase,0x97 ,0xeb ); + bResult &=BBbWriteEmbedded (dwIoBase,0x90 ,0x20 ); + bResult &=BBbWriteEmbedded (dwIoBase,0x97 ,0xeb );//}} //{{RobertYu:20050221, request by Jack - bResult &=BBbWriteEmbeded (dwIoBase,0xa6 ,0x00 ); - bResult &=BBbWriteEmbeded (dwIoBase,0xa8 ,0x30 ); + bResult &=BBbWriteEmbedded (dwIoBase,0xa6 ,0x00 ); + bResult &=BBbWriteEmbedded (dwIoBase,0xa8 ,0x30 );//}} - bResult &=BBbWriteEmbeded (dwIoBase,0xb0 ,0x58 ); + bResult &=BBbWriteEmbedded (dwIoBase,0xb0 ,0x58 );for (ii =0 ; ii <CB_VT3253B0_AGC ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); }//VNSvOutPortB(dwIoBase + MAC_REG_ITRTMSET, 0x23); // RobertYu: 20050104, 20050131 disable PA_Delay //MACvRegBitsOn(dwIoBase, MAC_REG_PAPEDELAY, BIT0); // RobertYu: 20050104, 20050131 disable PA_Delay
@@ -2248,10 +2248,10 @@ bool BBbVT3253Init (PSDevice pDevice) }else if (byRFType ==RF_VT3226 ) {for (ii =0 ; ii <CB_VT3253B0_INIT_FOR_AIROHA2230 ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AIROHA2230[ii][0 ],byVT3253B0_AIROHA2230[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AIROHA2230[ii][0 ],byVT3253B0_AIROHA2230[ii][1 ]); }for (ii =0 ; ii <CB_VT3253B0_AGC ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); } pDevice->abyBBVGA[0 ] =0x1C ; pDevice->abyBBVGA[1 ] =0x10 ;
@@ -2266,20 +2266,20 @@ bool BBbVT3253Init (PSDevice pDevice)//{{ RobertYu: 20050104 }else if (byRFType ==RF_AIROHA7230 ) {for (ii =0 ; ii <CB_VT3253B0_INIT_FOR_AIROHA2230 ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AIROHA2230[ii][0 ],byVT3253B0_AIROHA2230[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AIROHA2230[ii][0 ],byVT3253B0_AIROHA2230[ii][1 ]); }//{{ RobertYu:20050223, request by JerryChung // Init ANT B select,TX Config CR09 = 0x61->0x45, 0x45->0x41(VC1/VC2 define, make the ANT_A, ANT_B inverted) -//bResult &= BBbWriteEmbeded(dwIoBase,0x09,0x41); +//bResult &= BBbWriteEmbedded(dwIoBase,0x09,0x41); // Init ANT B select,RX Config CR10 = 0x28->0x2A, 0x2A->0x28(VC1/VC2 define, make the ANT_A, ANT_B inverted) -//bResult &= BBbWriteEmbeded(dwIoBase,0x0a,0x28); +//bResult &= BBbWriteEmbedded(dwIoBase,0x0a,0x28); // Select VC1/VC2, CR215 = 0x02->0x06 - bResult &=BBbWriteEmbeded (dwIoBase,0xd7 ,0x06 ); + bResult &=BBbWriteEmbedded (dwIoBase,0xd7 ,0x06 );//}} for (ii =0 ; ii <CB_VT3253B0_AGC ; ii++) { - bResult &=BBbWriteEmbeded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); + bResult &=BBbWriteEmbedded (dwIoBase,byVT3253B0_AGC[ii][0 ],byVT3253B0_AGC[ii][1 ]); } pDevice->abyBBVGA[0 ] =0x1C ; pDevice->abyBBVGA[1 ] =0x10 ;
@@ -2297,8 +2297,8 @@ bool BBbVT3253Init (PSDevice pDevice) }if (byLocalID >REV_ID_VT3253_A1 ) { -BBbWriteEmbeded (dwIoBase,0x04 ,0x7F ); -BBbWriteEmbeded (dwIoBase,0x0D ,0x01 ); +BBbWriteEmbedded (dwIoBase,0x04 ,0x7F ); +BBbWriteEmbedded (dwIoBase,0x0D ,0x01 ); }return bResult;
@@ -2324,7 +2324,7 @@ void BBvReadAllRegs (unsigned long dwIoBase, unsigned char *pbyBBRegs)int ii;unsigned char byBase =1 ;for (ii =0 ; ii <BB_MAX_CONTEXT_SIZE ; ii++) { -BBbReadEmbeded (dwIoBase, (unsigned char )(ii*byBase), pbyBBRegs); +BBbReadEmbedded (dwIoBase, (unsigned char )(ii*byBase), pbyBBRegs); pbyBBRegs += byBase; } }
@@ -2350,39 +2350,39 @@ void BBvLoopbackOn (PSDevice pDevice)unsigned long dwIoBase = pDevice->PortOffset;//CR C9 = 0x00 -BBbReadEmbeded (dwIoBase,0xC9 , &pDevice->byBBCRc9);//CR201 -BBbWriteEmbeded (dwIoBase,0xC9 ,0 ); -BBbReadEmbeded (dwIoBase,0x4D , &pDevice->byBBCR4d);//CR77 -BBbWriteEmbeded (dwIoBase,0x4D ,0x90 ); +BBbReadEmbedded (dwIoBase,0xC9 , &pDevice->byBBCRc9);//CR201 +BBbWriteEmbedded (dwIoBase,0xC9 ,0 ); +BBbReadEmbedded (dwIoBase,0x4D , &pDevice->byBBCR4d);//CR77 +BBbWriteEmbedded (dwIoBase,0x4D ,0x90 );//CR 88 = 0x02(CCK), 0x03(OFDM) -BBbReadEmbeded (dwIoBase,0x88 , &pDevice->byBBCR88);//CR136 +BBbReadEmbedded (dwIoBase,0x88 , &pDevice->byBBCR88);//CR136 if (pDevice->uConnectionRate <=RATE_11M ) {//CCK // Enable internal digital loopback: CR33 |= 0000 0001 -BBbReadEmbeded (dwIoBase,0x21 , &byData);//CR33 -BBbWriteEmbeded (dwIoBase,0x21 , (unsigned char )(byData |0x01 ));//CR33 +BBbReadEmbedded (dwIoBase,0x21 , &byData);//CR33 +BBbWriteEmbedded (dwIoBase,0x21 , (unsigned char )(byData |0x01 ));//CR33 // CR154 = 0x00 -BBbWriteEmbeded (dwIoBase,0x9A ,0 );//CR154 +BBbWriteEmbedded (dwIoBase,0x9A ,0 );//CR154 -BBbWriteEmbeded (dwIoBase,0x88 ,0x02 );//CR239 +BBbWriteEmbedded (dwIoBase,0x88 ,0x02 );//CR239 }else {//OFDM // Enable internal digital loopback:CR154 |= 0000 0001 -BBbReadEmbeded (dwIoBase,0x9A , &byData);//CR154 -BBbWriteEmbeded (dwIoBase,0x9A , (unsigned char )(byData |0x01 ));//CR154 +BBbReadEmbedded (dwIoBase,0x9A , &byData);//CR154 +BBbWriteEmbedded (dwIoBase,0x9A , (unsigned char )(byData |0x01 ));//CR154 // CR33 = 0x00 -BBbWriteEmbeded (dwIoBase,0x21 ,0 );//CR33 +BBbWriteEmbedded (dwIoBase,0x21 ,0 );//CR33 -BBbWriteEmbeded (dwIoBase,0x88 ,0x03 );//CR239 +BBbWriteEmbedded (dwIoBase,0x88 ,0x03 );//CR239 }//CR14 = 0x00 -BBbWriteEmbeded (dwIoBase,0x0E ,0 );//CR14 +BBbWriteEmbedded (dwIoBase,0x0E ,0 );//CR14 // Disable TX_IQUN -BBbReadEmbeded (pDevice->PortOffset,0x09 , &pDevice->byBBCR09); -BBbWriteEmbeded (pDevice->PortOffset,0x09 , (unsigned char )(pDevice->byBBCR09 &0xDE )); +BBbReadEmbedded (pDevice->PortOffset,0x09 , &pDevice->byBBCR09); +BBbWriteEmbedded (pDevice->PortOffset,0x09 , (unsigned char )(pDevice->byBBCR09 &0xDE )); }/*
@@ -2403,22 +2403,22 @@ void BBvLoopbackOff (PSDevice pDevice)unsigned char byData;unsigned long dwIoBase = pDevice->PortOffset; -BBbWriteEmbeded (dwIoBase,0xC9 , pDevice->byBBCRc9);//CR201 -BBbWriteEmbeded (dwIoBase,0x88 , pDevice->byBBCR88);//CR136 -BBbWriteEmbeded (dwIoBase,0x09 , pDevice->byBBCR09);//CR136 -BBbWriteEmbeded (dwIoBase,0x4D , pDevice->byBBCR4d);//CR77 +BBbWriteEmbedded (dwIoBase,0xC9 , pDevice->byBBCRc9);//CR201 +BBbWriteEmbedded (dwIoBase,0x88 , pDevice->byBBCR88);//CR136 +BBbWriteEmbedded (dwIoBase,0x09 , pDevice->byBBCR09);//CR136 +BBbWriteEmbedded (dwIoBase,0x4D , pDevice->byBBCR4d);//CR77 if (pDevice->uConnectionRate <=RATE_11M ) {// CCK // Set the CR33 Bit2 to disable internal Loopback. -BBbReadEmbeded (dwIoBase,0x21 , &byData);//CR33 -BBbWriteEmbeded (dwIoBase,0x21 , (unsigned char )(byData &0xFE ));//CR33 +BBbReadEmbedded (dwIoBase,0x21 , &byData);//CR33 +BBbWriteEmbedded (dwIoBase,0x21 , (unsigned char )(byData &0xFE ));//CR33 }else {// OFDM -BBbReadEmbeded (dwIoBase,0x9A , &byData);//CR154 -BBbWriteEmbeded (dwIoBase,0x9A , (unsigned char )(byData &0xFE ));//CR154 +BBbReadEmbedded (dwIoBase,0x9A , &byData);//CR154 +BBbWriteEmbedded (dwIoBase,0x9A , (unsigned char )(byData &0xFE ));//CR154 } -BBbReadEmbeded (dwIoBase,0x0E , &byData);//CR14 -BBbWriteEmbeded (dwIoBase,0x0E , (unsigned char )(byData |0x80 ));//CR14 +BBbReadEmbedded (dwIoBase,0x0E , &byData);//CR14 +BBbWriteEmbedded (dwIoBase,0x0E , (unsigned char )(byData |0x80 ));//CR14 }
@@ -2442,7 +2442,7 @@ BBvSetShortSlotTime (PSDevice pDevice)unsigned char byBBRxConf=0 ;unsigned char byBBVGA=0 ; -BBbReadEmbeded (pDevice->PortOffset,0x0A , &byBBRxConf);//CR10 +BBbReadEmbedded (pDevice->PortOffset,0x0A , &byBBRxConf);//CR10 if (pDevice->bShortSlotTime) { byBBRxConf &=0xDF ;//1101 1111
@@ -2451,12 +2451,12 @@ BBvSetShortSlotTime (PSDevice pDevice) }// patch for 3253B0 Baseband with Cardbus module -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byBBVGA); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byBBVGA);if (byBBVGA == pDevice->abyBBVGA[0 ]) { byBBRxConf |=0x20 ;//0010 0000 } -BBbWriteEmbeded (pDevice->PortOffset,0x0A , byBBRxConf);//CR10 +BBbWriteEmbedded (pDevice->PortOffset,0x0A , byBBRxConf);//CR10 }
@@ -2464,9 +2464,9 @@ void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData) {unsigned char byBBRxConf=0 ; -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , byData); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , byData); -BBbReadEmbeded (pDevice->PortOffset,0x0A , &byBBRxConf);//CR10 +BBbReadEmbedded (pDevice->PortOffset,0x0A , &byBBRxConf);//CR10 // patch for 3253B0 Baseband with Cardbus module if (byData == pDevice->abyBBVGA[0 ]) { byBBRxConf |=0x20 ;//0010 0000
@@ -2476,7 +2476,7 @@ void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData) byBBRxConf |=0x20 ;//0010 0000 } pDevice->byBBVGACurrent = byData; -BBbWriteEmbeded (pDevice->PortOffset,0x0A , byBBRxConf);//CR10 +BBbWriteEmbedded (pDevice->PortOffset,0x0A , byBBRxConf);//CR10 }
@@ -2495,10 +2495,10 @@ void BBvSetVGAGainOffset(PSDevice pDevice, unsigned char byData)void BBvSoftwareReset (unsigned long dwIoBase) { -BBbWriteEmbeded (dwIoBase,0x50 ,0x40 ); -BBbWriteEmbeded (dwIoBase,0x50 ,0 ); -BBbWriteEmbeded (dwIoBase,0x9C ,0x01 ); -BBbWriteEmbeded (dwIoBase,0x9C ,0 ); +BBbWriteEmbedded (dwIoBase,0x50 ,0x40 ); +BBbWriteEmbedded (dwIoBase,0x50 ,0 ); +BBbWriteEmbedded (dwIoBase,0x9C ,0x01 ); +BBbWriteEmbedded (dwIoBase,0x9C ,0 ); }/*
@@ -2518,9 +2518,9 @@ BBvPowerSaveModeON (unsigned long dwIoBase) {unsigned char byOrgData; -BBbReadEmbeded (dwIoBase,0x0D , &byOrgData); +BBbReadEmbedded (dwIoBase,0x0D , &byOrgData); byOrgData |=BIT0 ; -BBbWriteEmbeded (dwIoBase,0x0D , byOrgData); +BBbWriteEmbedded (dwIoBase,0x0D , byOrgData); }/*
@@ -2540,9 +2540,9 @@ BBvPowerSaveModeOFF (unsigned long dwIoBase) {unsigned char byOrgData; -BBbReadEmbeded (dwIoBase,0x0D , &byOrgData); +BBbReadEmbedded (dwIoBase,0x0D , &byOrgData); byOrgData &= ~(BIT0 ); -BBbWriteEmbeded (dwIoBase,0x0D , byOrgData); +BBbWriteEmbedded (dwIoBase,0x0D , byOrgData); }/*
@@ -2567,7 +2567,7 @@ BBvSetTxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode)#ifdef PLICE_DEBUG //printk("Enter BBvSetTxAntennaMode\n"); #endif -BBbReadEmbeded (dwIoBase,0x09 , &byBBTxConf);//CR09 +BBbReadEmbedded (dwIoBase,0x09 , &byBBTxConf);//CR09 if (byAntennaMode ==ANT_DIVERSITY ) {// bit 1 is diversity byBBTxConf |=0x02 ;
@@ -2581,7 +2581,7 @@ BBvSetTxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode) byBBTxConf &=0xFD ;// 1111 1101 byBBTxConf |=0x04 ; } -BBbWriteEmbeded (dwIoBase,0x09 , byBBTxConf);//CR09 +BBbWriteEmbedded (dwIoBase,0x09 , byBBTxConf);//CR09 }
@@ -2606,7 +2606,7 @@ BBvSetRxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode) {unsigned char byBBRxConf; -BBbReadEmbeded (dwIoBase,0x0A , &byBBRxConf);//CR10 +BBbReadEmbedded (dwIoBase,0x0A , &byBBRxConf);//CR10 if (byAntennaMode ==ANT_DIVERSITY ) { byBBRxConf |=0x01 ;
@@ -2616,7 +2616,7 @@ BBvSetRxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode) byBBRxConf &=0xFE ;// 1111 1110 byBBRxConf |=0x02 ; } -BBbWriteEmbeded (dwIoBase,0x0A , byBBRxConf);//CR10 +BBbWriteEmbedded (dwIoBase,0x0A , byBBRxConf);//CR10 }
@@ -2635,15 +2635,15 @@ BBvSetRxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode)void BBvSetDeepSleep (unsigned long dwIoBase,unsigned char byLocalID) { -BBbWriteEmbeded (dwIoBase,0x0C ,0x17 );//CR12 -BBbWriteEmbeded (dwIoBase,0x0D ,0xB9 );//CR13 +BBbWriteEmbedded (dwIoBase,0x0C ,0x17 );//CR12 +BBbWriteEmbedded (dwIoBase,0x0D ,0xB9 );//CR13 }void BBvExitDeepSleep (unsigned long dwIoBase,unsigned char byLocalID) { -BBbWriteEmbeded (dwIoBase,0x0C ,0x00 );//CR12 -BBbWriteEmbeded (dwIoBase,0x0D ,0x01 );//CR13 +BBbWriteEmbedded (dwIoBase,0x0C ,0x00 );//CR12 +BBbWriteEmbedded (dwIoBase,0x0D ,0x01 );//CR13 }
drivers/staging/vt6655/baseband.h +4 -4
@@ -73,12 +73,12 @@#define BBvClearFOE (dwIoBase) \ { \ - BBbWriteEmbeded(dwIoBase, 0xB1, 0); \ + BBbWriteEmbedded(dwIoBase, 0xB1, 0); \ }#define BBvSetFOE (dwIoBase) \ { \ - BBbWriteEmbeded(dwIoBase, 0xB1, 0x0C); \ + BBbWriteEmbedded(dwIoBase, 0xB1, 0x0C); \ }
@@ -107,8 +107,8 @@ BBvCaculateParameter (unsigned char *pbyPhySgn ); -bool BBbReadEmbeded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char *pbyData); -bool BBbWriteEmbeded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char byData); +bool BBbReadEmbedded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char *pbyData); +bool BBbWriteEmbedded (unsigned long dwIoBase,unsigned char byBBAddr,unsigned char byData);void BBvReadAllRegs (unsigned long dwIoBase,unsigned char *pbyBBRegs);void BBvLoopbackOn (PSDevice pDevice);
drivers/staging/vt6655/card.c +18 -18
@@ -461,22 +461,22 @@ bool CARDbSetPhyParameter (void *pDeviceHandler, CARD_PHY_TYPE ePHYType, unsigne pDevice->abyBBVGA[0 ] =0x20 ; pDevice->abyBBVGA[2 ] =0x10 ; pDevice->abyBBVGA[3 ] =0x10 ; -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byData); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byData);if (byData ==0x1C ) { -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); } }else if (pDevice->byRFType ==RF_UW2452 ) {MACvSetBBType (pDevice->PortOffset,BB_TYPE_11A ); pDevice->abyBBVGA[0 ] =0x18 ; -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byData); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byData);if (byData ==0x14 ) { -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); -BBbWriteEmbeded (pDevice->PortOffset,0xE1 ,0x57 ); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); +BBbWriteEmbedded (pDevice->PortOffset,0xE1 ,0x57 ); } }else {MACvSetBBType (pDevice->PortOffset,BB_TYPE_11A ); } -BBbWriteEmbeded (pDevice->PortOffset,0x88 ,0x03 ); +BBbWriteEmbedded (pDevice->PortOffset,0x88 ,0x03 ); bySlot =C_SLOT_SHORT ; bySIFS =C_SIFS_A ; byDIFS =C_SIFS_A +2 *C_SLOT_SHORT ;
@@ -490,19 +490,19 @@ bool CARDbSetPhyParameter (void *pDeviceHandler, CARD_PHY_TYPE ePHYType, unsigne pDevice->abyBBVGA[0 ] =0x1C ; pDevice->abyBBVGA[2 ] =0x00 ; pDevice->abyBBVGA[3 ] =0x00 ; -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byData); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byData);if (byData ==0x20 ) { -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); } }else if (pDevice->byRFType ==RF_UW2452 ) { pDevice->abyBBVGA[0 ] =0x14 ; -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byData); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byData);if (byData ==0x18 ) { -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); -BBbWriteEmbeded (pDevice->PortOffset,0xE1 ,0xD3 ); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); +BBbWriteEmbedded (pDevice->PortOffset,0xE1 ,0xD3 ); } } -BBbWriteEmbeded (pDevice->PortOffset,0x88 ,0x02 ); +BBbWriteEmbedded (pDevice->PortOffset,0x88 ,0x02 ); bySlot =C_SLOT_LONG ; bySIFS =C_SIFS_BG ; byDIFS =C_SIFS_BG +2 *C_SLOT_LONG ;
@@ -517,19 +517,19 @@ bool CARDbSetPhyParameter (void *pDeviceHandler, CARD_PHY_TYPE ePHYType, unsigne pDevice->abyBBVGA[0 ] =0x1C ; pDevice->abyBBVGA[2 ] =0x00 ; pDevice->abyBBVGA[3 ] =0x00 ; -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byData); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byData);if (byData ==0x20 ) { -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); } }else if (pDevice->byRFType ==RF_UW2452 ) { pDevice->abyBBVGA[0 ] =0x14 ; -BBbReadEmbeded (pDevice->PortOffset,0xE7 , &byData); +BBbReadEmbedded (pDevice->PortOffset,0xE7 , &byData);if (byData ==0x18 ) { -BBbWriteEmbeded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); -BBbWriteEmbeded (pDevice->PortOffset,0xE1 ,0xD3 ); +BBbWriteEmbedded (pDevice->PortOffset,0xE7 , pDevice->abyBBVGA[0 ]); +BBbWriteEmbedded (pDevice->PortOffset,0xE1 ,0xD3 ); } } -BBbWriteEmbeded (pDevice->PortOffset,0x88 ,0x08 ); +BBbWriteEmbedded (pDevice->PortOffset,0x88 ,0x08 ); bySIFS =C_SIFS_BG ;if (VNTWIFIbIsShortSlotTime (wCapInfo)) { bySlot =C_SLOT_SHORT ;
drivers/staging/vt6655/device_main.c +1 -1
@@ -2660,7 +2660,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) {(pDevice->byLocalID != REV_ID_VT3253_B0) && (pDevice->bBSSIDFilter == true)) { // update RSSI -//BBbReadEmbeded(pDevice->PortOffset, 0x3E, &byRSSI); +//BBbReadEmbedded(pDevice->PortOffset, 0x3E, &byRSSI); //pDevice->uCurrRSSI = byRSSI; } */
drivers/staging/vt6655/rf.c +40 -40
172 lines not on this page · raw message
drivers/staging/vt6655/rf.h +1 -1
@@ -75,7 +75,7 @@/*--------------------- Export Functions --------------------------*/ -bool IFRFbWriteEmbeded (unsigned long dwIoBase,unsigned long dwData); +bool IFRFbWriteEmbedded (unsigned long dwIoBase,unsigned long dwData);bool RFbSelectChannel (unsigned long dwIoBase,unsigned char byRFType,unsigned char byChannel);bool RFbInit ( PSDevice pDevice
Signature · 1 line
1.7.9.5
PATCH 3/3 NEXT:staging: "vt6655" Typo change *Caculate to *Calculate.
In reply to Justin P. MattockFrom: "Justin P. Mattock" <[email protected]>
---
The below patch changes *Caculate to *Calculate in comments and code.
drivers/staging/vt6655/baseband.c | 6 ++-- drivers/staging/vt6655/baseband.h | 2 +- drivers/staging/vt6655/card.c | 62 ++++++++++++++++++------------------- drivers/staging/vt6655/rxtx.c | 36 ++++++++++----------- drivers/staging/vt6655/tether.c | 4 +-- drivers/staging/vt6655/tkip.c | 2 +- 6 files changed, 56 insertions(+), 56 deletions(-)
drivers/staging/vt6655/baseband.c +3 -3
@@ -40,7 +40,7 @@* Revision History: * 06-10-2003 Bryan YC Fan: Re-write codes to support VT3253 spec. * 08-07-2003 Bryan YC Fan: Add MAXIM2827/2825 and RFMD2959 support. -* 08-26-2003 Kyle Hsu : Modify BBuGetFrameTime() and BBvCaculateParameter(). +* 08-26-2003 Kyle Hsu : Modify BBuGetFrameTime() and BBvCalculateParameter(). * cancel the setting of MAC_REG_SOFTPWRCTL on BBbVT3253Init(). * Add the comments. * 09-01-2003 Bryan YC Fan: RF & BB tables updated.
@@ -1826,7 +1826,7 @@ BBuGetFrameTime ( }/* -* Description: Caculate Length, Service, and Signal fields of Phy for Tx +* Description: Calculate Length, Service, and Signal fields of Phy for Tx * * Parameters: * In:
@@ -1842,7 +1842,7 @@ BBuGetFrameTime (* */ void -BBvCaculateParameter ( +BBvCalculateParameter ( PSDevice pDevice, unsigned int cbFrameLength, unsigned short wRate,
drivers/staging/vt6655/baseband.h +1 -1
@@ -97,7 +97,7 @@ BBuGetFrameTime( ); void -BBvCaculateParameter ( +BBvCalculateParameter ( PSDevice pDevice, unsigned int cbFrameLength, unsigned short wRate,
drivers/staging/vt6655/card.c +31 -31
231 lines not on this page · raw message
drivers/staging/vt6655/rxtx.c +18 -18
@@ -27,7 +27,7 @@* Functions: * s_vGenerateTxParameter - Generate tx dma required parameter. * vGenerateMACHeader - Translate 802.3 to 802.11 header -* cbGetFragCount - Caculate fragment number count +* cbGetFragCount - Calculate fragment number count * csBeacon_xmit - beacon tx function * csMgmt_xmit - management tx function * s_cbFillTxBufHead - fulfill tx dma buffer header
@@ -733,11 +733,11 @@ s_uFillDataHead (if (byFBOption ==AUTO_FB_NONE ) {PSTxDataHead_g pBuf = (PSTxDataHead_g )pTxDataHead;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, +BBvCalculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_a), (unsigned char *)&(pBuf->bySignalField_a) ); pBuf->wTransmitLength_a =cpu_to_le16 (wLen); -BBvCaculateParameter (pDevice, cbFrameLength, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, cbFrameLength, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_b), (unsigned char *)&(pBuf->bySignalField_b) ); pBuf->wTransmitLength_b =cpu_to_le16 (wLen);
@@ -759,11 +759,11 @@ s_uFillDataHead (// Auto Fallback PSTxDataHead_g_FB pBuf = (PSTxDataHead_g_FB )pTxDataHead;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, +BBvCalculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_a), (unsigned char *)&(pBuf->bySignalField_a) ); pBuf->wTransmitLength_a =cpu_to_le16 (wLen); -BBvCaculateParameter (pDevice, cbFrameLength, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, cbFrameLength, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_b), (unsigned char *)&(pBuf->bySignalField_b) ); pBuf->wTransmitLength_b =cpu_to_le16 (wLen);
@@ -788,7 +788,7 @@ s_uFillDataHead (// Auto Fallback PSTxDataHead_a_FB pBuf = (PSTxDataHead_a_FB )pTxDataHead;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, +BBvCalculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField), (unsigned char *)&(pBuf->bySignalField) ); pBuf->wTransmitLength =cpu_to_le16 (wLen);
@@ -805,7 +805,7 @@ s_uFillDataHead ( }else {PSTxDataHead_ab pBuf = (PSTxDataHead_ab )pTxDataHead;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, +BBvCalculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField), (unsigned char *)&(pBuf->bySignalField) ); pBuf->wTransmitLength =cpu_to_le16 (wLen);
@@ -823,7 +823,7 @@ s_uFillDataHead (else {PSTxDataHead_ab pBuf = (PSTxDataHead_ab )pTxDataHead;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, +BBvCalculateParameter (pDevice, cbFrameLength, wCurrentRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField), (unsigned char *)&(pBuf->bySignalField) ); pBuf->wTransmitLength =cpu_to_le16 (wLen);
@@ -871,11 +871,11 @@ s_vFillRTSHead (if (byFBOption ==AUTO_FB_NONE ) {PSRTS_g pBuf = (PSRTS_g )pvRTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_b), (unsigned char *)&(pBuf->bySignalField_b) ); pBuf->wTransmitLength_b =cpu_to_le16 (wLen); -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_a), (unsigned char *)&(pBuf->bySignalField_a) ); pBuf->wTransmitLength_a =cpu_to_le16 (wLen);
@@ -904,11 +904,11 @@ s_vFillRTSHead (else {PSRTS_g_FB pBuf = (PSRTS_g_FB )pvRTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_b), (unsigned char *)&(pBuf->bySignalField_b) ); pBuf->wTransmitLength_b =cpu_to_le16 (wLen); -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_a), (unsigned char *)&(pBuf->bySignalField_a) ); pBuf->wTransmitLength_a =cpu_to_le16 (wLen);
@@ -946,7 +946,7 @@ s_vFillRTSHead (if (byFBOption ==AUTO_FB_NONE ) {PSRTS_ab pBuf = (PSRTS_ab )pvRTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField), (unsigned char *)&(pBuf->bySignalField) ); pBuf->wTransmitLength =cpu_to_le16 (wLen);
@@ -975,7 +975,7 @@ s_vFillRTSHead (else {PSRTS_a_FB pBuf = (PSRTS_a_FB )pvRTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopOFDMBasicRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField), (unsigned char *)&(pBuf->bySignalField) ); pBuf->wTransmitLength =cpu_to_le16 (wLen);
@@ -1005,7 +1005,7 @@ s_vFillRTSHead (else if (byPktType ==PK_TYPE_11B ) {PSRTS_ab pBuf = (PSRTS_ab )pvRTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uRTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, uRTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField), (unsigned char *)&(pBuf->bySignalField) ); pBuf->wTransmitLength =cpu_to_le16 (wLen);
@@ -1065,7 +1065,7 @@ s_vFillCTSHead (// Auto Fall back PSCTS_FB pBuf = (PSCTS_FB )pvCTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uCTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, uCTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_b), (unsigned char *)&(pBuf->bySignalField_b) );
@@ -1092,7 +1092,7 @@ s_vFillCTSHead ( }else {//if (byFBOption != AUTO_FB_NONE && uDMAIdx != TYPE_ATIMDMA && uDMAIdx != TYPE_BEACONDMA) PSCTS pBuf = (PSCTS )pvCTS;//Get SignalField,ServiceField,Length -BBvCaculateParameter (pDevice, uCTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , +BBvCalculateParameter (pDevice, uCTSFrameLen, pDevice->byTopCCKBasicRate,PK_TYPE_11B , (unsigned short *)&(wLen), (unsigned char *)&(pBuf->byServiceField_b), (unsigned char *)&(pBuf->bySignalField_b) ); pBuf->wTransmitLength_b =cpu_to_le16 (wLen);
@@ -2664,7 +2664,7 @@ CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket) { wCurrentRate, false, 0, 0, 1, AUTO_FB_NONE)); } -BBvCaculateParameter (pDevice, cbFrameSize, wCurrentRate, byPktType, +BBvCalculateParameter (pDevice, cbFrameSize, wCurrentRate, byPktType, (unsigned short *)&(wLen), (unsigned char *)&(pTxDataHead->byServiceField), (unsigned char *)&(pTxDataHead->bySignalField) ); pTxDataHead->wTransmitLength =cpu_to_le16 (wLen);
drivers/staging/vt6655/tether.c +2 -2
@@ -25,7 +25,7 @@* Date: May 21, 1996 * * Functions: -* ETHbyGetHashIndexByCrc32 - Caculate multicast hash value by CRC32 +* ETHbyGetHashIndexByCrc32 - Calculate multicast hash value by CRC32 * ETHbIsBufferCrc32Ok - Check CRC value of the buffer if Ok or not * * Revision History:
@@ -50,7 +50,7 @@/* -* Description: Caculate multicast hash value by CRC32 +* Description: Calculate multicast hash value by CRC32 * * Parameters: * In:
drivers/staging/vt6655/tkip.c +1 -1
@@ -170,7 +170,7 @@ unsigned int rotr1(unsigned int a)/* -* Description: Caculate RC4Key fom TK, TA, and TSC +* Description: Calculate RC4Key fom TK, TA, and TSC * * Parameters: * In:
Signature · 1 line
1.7.9.5