79 #define CB_VT3253_INIT_FOR_RFMD 446
529 #define CB_VT3253B0_INIT_FOR_RFMD 256
789 #define CB_VT3253B0_AGC_FOR_RFMD2959 195
989 #define CB_VT3253B0_INIT_FOR_AIROHA2230 256
1253 #define CB_VT3253B0_INIT_FOR_UW2451 256
1515 #define CB_VT3253B0_AGC 193
1714 {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
1779 unsigned char byPreambleType,
1780 unsigned char byPktType,
1781 unsigned int cbFrameLength,
1782 unsigned short wRate
1785 unsigned int uFrameTime;
1786 unsigned int uPreamble;
1788 unsigned int uRateIdx = (
unsigned int) wRate;
1789 unsigned int uRate = 0;
1799 if (uRateIdx <= 3) {
1801 if (byPreambleType == 1) {
1806 uFrameTime = (cbFrameLength * 80) / uRate;
1807 uTmp = (uFrameTime * uRate) / 80;
1808 if (cbFrameLength != uTmp) {
1812 return (uPreamble + uFrameTime);
1815 uFrameTime = (cbFrameLength * 8 + 22) / uRate;
1816 uTmp = ((uFrameTime * uRate) - 22) / 8;
1817 if(cbFrameLength != uTmp) {
1820 uFrameTime = uFrameTime * 4;
1824 return (20 + uFrameTime);
1847 unsigned int cbFrameLength,
1848 unsigned short wRate,
1849 unsigned char byPacketType,
1850 unsigned short *pwPhyLen,
1851 unsigned char *pbyPhySrv,
1852 unsigned char *pbyPhySgn
1855 unsigned int cbBitCount;
1856 unsigned int cbUsCount = 0;
1860 bool bCCK = pDevice->
bCCK;
1862 cbBitCount = cbFrameLength * 8;
1867 cbUsCount = cbBitCount;
1872 cbUsCount = cbBitCount / 2;
1873 if (byPreambleType == 1)
1882 cbUsCount = (cbBitCount * 10) / 55;
1883 cbTmp = (cbUsCount * 55) / 10;
1884 if (cbTmp != cbBitCount)
1886 if (byPreambleType == 1)
1896 cbUsCount = cbBitCount / 11;
1897 cbTmp = cbUsCount * 11;
1898 if (cbTmp != cbBitCount) {
1900 if ((cbBitCount - cbTmp) <= 3)
1903 if (byPreambleType == 1)
1994 *pbyPhySrv = *pbyPhySrv | 0x80;
1995 *pwPhyLen = (
unsigned short)cbUsCount;
1999 *pwPhyLen = (
unsigned short)cbFrameLength;
2016 bool BBbReadEmbedded (
unsigned long dwIoBase,
unsigned char byBBAddr,
unsigned char *pbyData)
2019 unsigned char byValue;
2036 if (ww == W_MAX_TIMEOUT) {
2062 unsigned char byValue;
2078 if (ww == W_MAX_TIMEOUT) {
2101 bool BBbIsRegBitsOn (
unsigned long dwIoBase,
unsigned char byBBAddr,
unsigned char byTestBits)
2103 unsigned char byOrgData;
2106 return (byOrgData & byTestBits) == byTestBits;
2124 bool BBbIsRegBitsOff (
unsigned long dwIoBase,
unsigned char byBBAddr,
unsigned char byTestBits)
2126 unsigned char byOrgData;
2129 return (byOrgData & byTestBits) == 0;
2149 bool bResult =
true;
2151 unsigned long dwIoBase = pDevice->
PortOffset;
2152 unsigned char byRFType = pDevice->
byRFType;
2153 unsigned char byLocalID = pDevice->
byLocalID;
2325 unsigned char byBase = 1;
2328 pbyBBRegs += byBase;
2349 unsigned char byData;
2350 unsigned long dwIoBase = pDevice->
PortOffset;
2403 unsigned char byData;
2404 unsigned long dwIoBase = pDevice->
PortOffset;
2442 unsigned char byBBRxConf=0;
2443 unsigned char byBBVGA=0;
2455 if (byBBVGA == pDevice->
abyBBVGA[0]) {
2465 unsigned char byBBRxConf=0;
2471 if (byData == pDevice->
abyBBVGA[0]) {
2519 unsigned char byOrgData;
2541 unsigned char byOrgData;
2544 byOrgData &= ~(
BIT0);
2565 unsigned char byBBTxConf;
2574 }
else if (byAntennaMode ==
ANT_A) {
2577 }
else if (byAntennaMode ==
ANT_B) {
2607 unsigned char byBBRxConf;
2613 }
else if (byAntennaMode ==
ANT_A) {
2615 }
else if (byAntennaMode ==
ANT_B) {
2655 unsigned long ulRatio = 0;
2656 unsigned long ulMaxPacket;
2657 unsigned long ulPacketNum;
2766 for (ii = 0; ii <
MAX_RATE; ii++) {
2810 if ( pDevice->
byTMax == 0 )
2818 s_vChangeAntenna(pDevice);
2851 s_vChangeAntenna(pDevice);
2879 void *hDeviceContext
2885 spin_lock_irq(&pDevice->
lock);
2892 s_vChangeAntenna(pDevice);
2902 spin_unlock_irq(&pDevice->
lock);
2927 void *hDeviceContext
2934 spin_lock_irq(&pDevice->
lock);
2940 s_vChangeAntenna(pDevice);
2959 s_vChangeAntenna(pDevice);
2969 spin_unlock_irq(&pDevice->
lock);