mirror of https://gitee.com/openkylin/linux.git
staging: vt6655: fix style violations for lines over 80 characters
This patch addresses line length errors reported by checkpatch.pl that could be fixed with simple line breaks. Signed-off-by: Kathryn Hampton <kh353dev@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
779bee40b9
commit
5150d01ea9
|
@ -36,8 +36,10 @@
|
||||||
* Revision History:
|
* Revision History:
|
||||||
* 06-10-2003 Bryan YC Fan: Re-write codes to support VT3253 spec.
|
* 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-07-2003 Bryan YC Fan: Add MAXIM2827/2825 and RFMD2959 support.
|
||||||
* 08-26-2003 Kyle Hsu : Modify BBuGetFrameTime() and BBvCalculateParameter().
|
* 08-26-2003 Kyle Hsu : Modify BBuGetFrameTime() and
|
||||||
* cancel the setting of MAC_REG_SOFTPWRCTL on BBbVT3253Init().
|
* BBvCalculateParameter().
|
||||||
|
* cancel the setting of MAC_REG_SOFTPWRCTL on
|
||||||
|
* BBbVT3253Init().
|
||||||
* Add the comments.
|
* Add the comments.
|
||||||
* 09-01-2003 Bryan YC Fan: RF & BB tables updated.
|
* 09-01-2003 Bryan YC Fan: RF & BB tables updated.
|
||||||
* Modified BBvLoopbackOn & BBvLoopbackOff().
|
* Modified BBvLoopbackOn & BBvLoopbackOff().
|
||||||
|
@ -777,7 +779,8 @@ static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
|
||||||
|
|
||||||
#define CB_VT3253B0_AGC_FOR_RFMD2959 195
|
#define CB_VT3253B0_AGC_FOR_RFMD2959 195
|
||||||
/* For RFMD2959 */
|
/* For RFMD2959 */
|
||||||
static unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] = {
|
static
|
||||||
|
unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] = {
|
||||||
{0xF0, 0x00},
|
{0xF0, 0x00},
|
||||||
{0xF1, 0x3E},
|
{0xF1, 0x3E},
|
||||||
{0xF0, 0x80},
|
{0xF0, 0x80},
|
||||||
|
@ -977,7 +980,8 @@ static unsigned char byVT3253B0_AGC4_RFMD2959[CB_VT3253B0_AGC_FOR_RFMD2959][2] =
|
||||||
|
|
||||||
#define CB_VT3253B0_INIT_FOR_AIROHA2230 256
|
#define CB_VT3253B0_INIT_FOR_AIROHA2230 256
|
||||||
/* For AIROHA */
|
/* For AIROHA */
|
||||||
static unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2] = {
|
static
|
||||||
|
unsigned char byVT3253B0_AIROHA2230[CB_VT3253B0_INIT_FOR_AIROHA2230][2] = {
|
||||||
{0x00, 0x31},
|
{0x00, 0x31},
|
||||||
{0x01, 0x00},
|
{0x01, 0x00},
|
||||||
{0x02, 0x00},
|
{0x02, 0x00},
|
||||||
|
@ -2160,9 +2164,13 @@ bool BBbVT3253Init(struct vnt_private *priv)
|
||||||
|
|
||||||
|
|
||||||
/* {{ RobertYu:20050223, request by JerryChung */
|
/* {{ 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) */
|
/* Init ANT B select,TX Config CR09 = 0x61->0x45,
|
||||||
|
* 0x45->0x41(VC1/VC2 define, make the ANT_A, ANT_B inverted)
|
||||||
|
*/
|
||||||
/*bResult &= BBbWriteEmbedded(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) */
|
/* Init ANT B select,RX Config CR10 = 0x28->0x2A,
|
||||||
|
* 0x2A->0x28(VC1/VC2 define, make the ANT_A, ANT_B inverted)
|
||||||
|
*/
|
||||||
/*bResult &= BBbWriteEmbedded(dwIoBase,0x0a,0x28);*/
|
/*bResult &= BBbWriteEmbedded(dwIoBase,0x0a,0x28);*/
|
||||||
/* Select VC1/VC2, CR215 = 0x02->0x06 */
|
/* Select VC1/VC2, CR215 = 0x02->0x06 */
|
||||||
bResult &= BBbWriteEmbedded(priv, 0xd7, 0x06);
|
bResult &= BBbWriteEmbedded(priv, 0xd7, 0x06);
|
||||||
|
|
|
@ -77,8 +77,10 @@ BBuGetFrameTime(
|
||||||
void vnt_get_phy_field(struct vnt_private *, u32 frame_length,
|
void vnt_get_phy_field(struct vnt_private *, u32 frame_length,
|
||||||
u16 tx_rate, u8 pkt_type, struct vnt_phy_field *);
|
u16 tx_rate, u8 pkt_type, struct vnt_phy_field *);
|
||||||
|
|
||||||
bool BBbReadEmbedded(struct vnt_private *, unsigned char byBBAddr, unsigned char *pbyData);
|
bool BBbReadEmbedded(struct vnt_private *, unsigned char byBBAddr,
|
||||||
bool BBbWriteEmbedded(struct vnt_private *, unsigned char byBBAddr, unsigned char byData);
|
unsigned char *pbyData);
|
||||||
|
bool BBbWriteEmbedded(struct vnt_private *, unsigned char byBBAddr,
|
||||||
|
unsigned char byData);
|
||||||
|
|
||||||
void BBvSetShortSlotTime(struct vnt_private *);
|
void BBvSetShortSlotTime(struct vnt_private *);
|
||||||
void BBvSetVGAGainOffset(struct vnt_private *, unsigned char byData);
|
void BBvSetVGAGainOffset(struct vnt_private *, unsigned char byData);
|
||||||
|
|
|
@ -336,7 +336,8 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type)
|
||||||
}
|
}
|
||||||
if (priv->byCWMaxMin != byCWMaxMin) {
|
if (priv->byCWMaxMin != byCWMaxMin) {
|
||||||
priv->byCWMaxMin = byCWMaxMin;
|
priv->byCWMaxMin = byCWMaxMin;
|
||||||
VNSvOutPortB(priv->PortOffset + MAC_REG_CWMAXMIN0, priv->byCWMaxMin);
|
VNSvOutPortB(priv->PortOffset + MAC_REG_CWMAXMIN0,
|
||||||
|
priv->byCWMaxMin);
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->byPacketType = CARDbyGetPktType(priv);
|
priv->byPacketType = CARDbyGetPktType(priv);
|
||||||
|
@ -373,9 +374,12 @@ bool CARDbUpdateTSF(struct vnt_private *priv, unsigned char byRxRate,
|
||||||
qwTSFOffset = CARDqGetTSFOffset(byRxRate, qwBSSTimestamp,
|
qwTSFOffset = CARDqGetTSFOffset(byRxRate, qwBSSTimestamp,
|
||||||
local_tsf);
|
local_tsf);
|
||||||
/* adjust TSF, HW's TSF add TSF Offset reg */
|
/* adjust TSF, HW's TSF add TSF Offset reg */
|
||||||
VNSvOutPortD(priv->PortOffset + MAC_REG_TSFOFST, (u32)qwTSFOffset);
|
VNSvOutPortD(priv->PortOffset + MAC_REG_TSFOFST,
|
||||||
VNSvOutPortD(priv->PortOffset + MAC_REG_TSFOFST + 4, (u32)(qwTSFOffset >> 32));
|
(u32)qwTSFOffset);
|
||||||
MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_TSFSYNCEN);
|
VNSvOutPortD(priv->PortOffset + MAC_REG_TSFOFST + 4,
|
||||||
|
(u32)(qwTSFOffset >> 32));
|
||||||
|
MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL,
|
||||||
|
TFTCTL_TSFSYNCEN);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -407,7 +411,8 @@ bool CARDbSetBeaconPeriod(struct vnt_private *priv,
|
||||||
priv->wBeaconInterval = wBeaconInterval;
|
priv->wBeaconInterval = wBeaconInterval;
|
||||||
/* Set NextTBTT */
|
/* Set NextTBTT */
|
||||||
VNSvOutPortD(priv->PortOffset + MAC_REG_NEXTTBTT, (u32)qwNextTBTT);
|
VNSvOutPortD(priv->PortOffset + MAC_REG_NEXTTBTT, (u32)qwNextTBTT);
|
||||||
VNSvOutPortD(priv->PortOffset + MAC_REG_NEXTTBTT + 4, (u32)(qwNextTBTT >> 32));
|
VNSvOutPortD(priv->PortOffset + MAC_REG_NEXTTBTT + 4,
|
||||||
|
(u32)(qwNextTBTT >> 32));
|
||||||
MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_TBTTSYNCEN);
|
MACvRegBitsOn(priv->PortOffset, MAC_REG_TFTCTL, TFTCTL_TBTTSYNCEN);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -433,15 +438,19 @@ bool CARDbRadioPowerOff(struct vnt_private *priv)
|
||||||
|
|
||||||
switch (priv->byRFType) {
|
switch (priv->byRFType) {
|
||||||
case RF_RFMD2959:
|
case RF_RFMD2959:
|
||||||
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_TXPEINV);
|
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_SWPE1);
|
SOFTPWRCTL_TXPEINV);
|
||||||
|
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
|
SOFTPWRCTL_SWPE1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RF_AIROHA:
|
case RF_AIROHA:
|
||||||
case RF_AL2230S:
|
case RF_AL2230S:
|
||||||
case RF_AIROHA7230:
|
case RF_AIROHA7230:
|
||||||
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_SWPE2);
|
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_SWPE3);
|
SOFTPWRCTL_SWPE2);
|
||||||
|
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
|
SOFTPWRCTL_SWPE3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -451,7 +460,8 @@ bool CARDbRadioPowerOff(struct vnt_private *priv)
|
||||||
|
|
||||||
priv->bRadioOff = true;
|
priv->bRadioOff = true;
|
||||||
pr_debug("chester power off\n");
|
pr_debug("chester power off\n");
|
||||||
MACvRegBitsOn(priv->PortOffset, MAC_REG_GPIOCTL0, LED_ACTSET); /* LED issue */
|
MACvRegBitsOn(priv->PortOffset, MAC_REG_GPIOCTL0,
|
||||||
|
LED_ACTSET); /* LED issue */
|
||||||
return bResult;
|
return bResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -488,21 +498,24 @@ bool CARDbRadioPowerOn(struct vnt_private *priv)
|
||||||
|
|
||||||
switch (priv->byRFType) {
|
switch (priv->byRFType) {
|
||||||
case RF_RFMD2959:
|
case RF_RFMD2959:
|
||||||
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_TXPEINV);
|
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_SWPE1);
|
SOFTPWRCTL_TXPEINV);
|
||||||
|
MACvWordRegBitsOff(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
|
SOFTPWRCTL_SWPE1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RF_AIROHA:
|
case RF_AIROHA:
|
||||||
case RF_AL2230S:
|
case RF_AL2230S:
|
||||||
case RF_AIROHA7230:
|
case RF_AIROHA7230:
|
||||||
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL, (SOFTPWRCTL_SWPE2 |
|
MACvWordRegBitsOn(priv->PortOffset, MAC_REG_SOFTPWRCTL,
|
||||||
SOFTPWRCTL_SWPE3));
|
(SOFTPWRCTL_SWPE2 | SOFTPWRCTL_SWPE3));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->bRadioOff = false;
|
priv->bRadioOff = false;
|
||||||
pr_debug("chester power on\n");
|
pr_debug("chester power on\n");
|
||||||
MACvRegBitsOff(priv->PortOffset, MAC_REG_GPIOCTL0, LED_ACTSET); /* LED issue */
|
MACvRegBitsOff(priv->PortOffset, MAC_REG_GPIOCTL0,
|
||||||
|
LED_ACTSET); /* LED issue */
|
||||||
return bResult;
|
return bResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -717,55 +730,72 @@ void CARDvSetRSPINF(struct vnt_private *priv, u8 bb_type)
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_6, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_6,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_9 */
|
/* RSPINF_a_9 */
|
||||||
s_vCalculateOFDMRParameter(RATE_9M,
|
s_vCalculateOFDMRParameter(RATE_9M,
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_9, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_9,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_12 */
|
/* RSPINF_a_12 */
|
||||||
s_vCalculateOFDMRParameter(RATE_12M,
|
s_vCalculateOFDMRParameter(RATE_12M,
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_12, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_12,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_18 */
|
/* RSPINF_a_18 */
|
||||||
s_vCalculateOFDMRParameter(RATE_18M,
|
s_vCalculateOFDMRParameter(RATE_18M,
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_18, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_18,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_24 */
|
/* RSPINF_a_24 */
|
||||||
s_vCalculateOFDMRParameter(RATE_24M,
|
s_vCalculateOFDMRParameter(RATE_24M,
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_24, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_24,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_36 */
|
/* RSPINF_a_36 */
|
||||||
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate((void *)priv, RATE_36M),
|
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate(
|
||||||
|
(void *)priv,
|
||||||
|
RATE_36M),
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_36, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_36,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_48 */
|
/* RSPINF_a_48 */
|
||||||
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate((void *)priv, RATE_48M),
|
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate(
|
||||||
|
(void *)priv,
|
||||||
|
RATE_48M),
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_48, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_48,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_54 */
|
/* RSPINF_a_54 */
|
||||||
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate((void *)priv, RATE_54M),
|
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate(
|
||||||
|
(void *)priv,
|
||||||
|
RATE_54M),
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_54, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_54,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* RSPINF_a_72 */
|
/* RSPINF_a_72 */
|
||||||
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate((void *)priv, RATE_54M),
|
s_vCalculateOFDMRParameter(CARDwGetOFDMControlRate(
|
||||||
|
(void *)priv,
|
||||||
|
RATE_54M),
|
||||||
bb_type,
|
bb_type,
|
||||||
&byTxRate,
|
&byTxRate,
|
||||||
&byRsvTime);
|
&byRsvTime);
|
||||||
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_72, MAKEWORD(byTxRate, byRsvTime));
|
VNSvOutPortW(priv->PortOffset + MAC_REG_RSPINF_A_72,
|
||||||
|
MAKEWORD(byTxRate, byRsvTime));
|
||||||
/* Set to Page0 */
|
/* Set to Page0 */
|
||||||
MACvSelectPage0(priv->PortOffset);
|
MACvSelectPage0(priv->PortOffset);
|
||||||
|
|
||||||
|
@ -830,7 +860,8 @@ unsigned char CARDbyGetPktType(struct vnt_private *priv)
|
||||||
*
|
*
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*/
|
*/
|
||||||
void CARDvSetLoopbackMode(struct vnt_private *priv, unsigned short wLoopbackMode)
|
void CARDvSetLoopbackMode(struct vnt_private *priv,
|
||||||
|
unsigned short wLoopbackMode)
|
||||||
{
|
{
|
||||||
switch (wLoopbackMode) {
|
switch (wLoopbackMode) {
|
||||||
case CARD_LB_NONE:
|
case CARD_LB_NONE:
|
||||||
|
@ -965,7 +996,8 @@ u64 CARDqGetNextTBTT(u64 qwTSF, unsigned short wBeaconInterval)
|
||||||
*
|
*
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*/
|
*/
|
||||||
void CARDvSetFirstNextTBTT(struct vnt_private *priv, unsigned short wBeaconInterval)
|
void CARDvSetFirstNextTBTT(struct vnt_private *priv,
|
||||||
|
unsigned short wBeaconInterval)
|
||||||
{
|
{
|
||||||
void __iomem *dwIoBase = priv->PortOffset;
|
void __iomem *dwIoBase = priv->PortOffset;
|
||||||
u64 qwNextTBTT = 0;
|
u64 qwNextTBTT = 0;
|
||||||
|
@ -993,7 +1025,8 @@ void CARDvSetFirstNextTBTT(struct vnt_private *priv, unsigned short wBeaconInter
|
||||||
*
|
*
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*/
|
*/
|
||||||
void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 qwTSF, unsigned short wBeaconInterval)
|
void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 qwTSF,
|
||||||
|
unsigned short wBeaconInterval)
|
||||||
{
|
{
|
||||||
void __iomem *dwIoBase = priv->PortOffset;
|
void __iomem *dwIoBase = priv->PortOffset;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
* LOBYTE is MAC LB mode, HIBYTE is MII LB mode
|
* LOBYTE is MAC LB mode, HIBYTE is MII LB mode
|
||||||
*/
|
*/
|
||||||
#define CARD_LB_NONE MAKEWORD(MAC_LB_NONE, 0)
|
#define CARD_LB_NONE MAKEWORD(MAC_LB_NONE, 0)
|
||||||
#define CARD_LB_MAC MAKEWORD(MAC_LB_INTERNAL, 0) /* PHY must ISO, avoid MAC loopback packet go out */
|
/* PHY must ISO, avoid MAC loopback packet go out */
|
||||||
|
#define CARD_LB_MAC MAKEWORD(MAC_LB_INTERNAL, 0)
|
||||||
#define CARD_LB_PHY MAKEWORD(MAC_LB_EXT, 0)
|
#define CARD_LB_PHY MAKEWORD(MAC_LB_EXT, 0)
|
||||||
|
|
||||||
#define DEFAULT_MSDU_LIFETIME 512 /* ms */
|
#define DEFAULT_MSDU_LIFETIME 512 /* ms */
|
||||||
|
@ -71,8 +72,10 @@ void CARDvUpdateBasicTopRate(struct vnt_private *);
|
||||||
bool CARDbIsOFDMinBasicRate(struct vnt_private *);
|
bool CARDbIsOFDMinBasicRate(struct vnt_private *);
|
||||||
void CARDvSetLoopbackMode(struct vnt_private *, unsigned short wLoopbackMode);
|
void CARDvSetLoopbackMode(struct vnt_private *, unsigned short wLoopbackMode);
|
||||||
bool CARDbSoftwareReset(struct vnt_private *);
|
bool CARDbSoftwareReset(struct vnt_private *);
|
||||||
void CARDvSetFirstNextTBTT(struct vnt_private *, unsigned short wBeaconInterval);
|
void CARDvSetFirstNextTBTT(struct vnt_private *,
|
||||||
void CARDvUpdateNextTBTT(struct vnt_private *, u64 qwTSF, unsigned short wBeaconInterval);
|
unsigned short wBeaconInterval);
|
||||||
|
void CARDvUpdateNextTBTT(struct vnt_private *, u64 qwTSF,
|
||||||
|
unsigned short wBeaconInterval);
|
||||||
bool CARDbGetCurrentTSF(struct vnt_private *, u64 *pqwCurrTSF);
|
bool CARDbGetCurrentTSF(struct vnt_private *, u64 *pqwCurrTSF);
|
||||||
u64 CARDqGetNextTBTT(u64 qwTSF, unsigned short wBeaconInterval);
|
u64 CARDqGetNextTBTT(u64 qwTSF, unsigned short wBeaconInterval);
|
||||||
u64 CARDqGetTSFOffset(unsigned char byRxRate, u64 qwTSF1, u64 qwTSF2);
|
u64 CARDqGetTSFOffset(unsigned char byRxRate, u64 qwTSF1, u64 qwTSF2);
|
||||||
|
|
|
@ -157,7 +157,8 @@
|
||||||
|
|
||||||
/* TD_INFO flags control bit */
|
/* TD_INFO flags control bit */
|
||||||
#define TD_FLAGS_NETIF_SKB 0x01 /* check if need release skb */
|
#define TD_FLAGS_NETIF_SKB 0x01 /* check if need release skb */
|
||||||
#define TD_FLAGS_PRIV_SKB 0x02 /* check if called from private skb (hostap) */
|
/* check if called from private skb (hostap) */
|
||||||
|
#define TD_FLAGS_PRIV_SKB 0x02
|
||||||
#define TD_FLAGS_PS_RETRY 0x04 /* check if PS STA frame re-transmit */
|
#define TD_FLAGS_PS_RETRY 0x04 /* check if PS STA frame re-transmit */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
*
|
*
|
||||||
* Revision History:
|
* Revision History:
|
||||||
* 08-22-2003 Kyle Hsu : Porting MAC functions from sim53
|
* 08-22-2003 Kyle Hsu : Porting MAC functions from sim53
|
||||||
* 09-03-2003 Bryan YC Fan : Add MACvClearBusSusInd()& MACvEnableBusSusEn()
|
* 09-03-2003 Bryan YC Fan : Add MACvClearBusSusInd()&
|
||||||
|
* MACvEnableBusSusEn()
|
||||||
* 09-18-2003 Jerry Chen : Add MACvSetKeyEntry & MACvDisableKeyEntry
|
* 09-18-2003 Jerry Chen : Add MACvSetKeyEntry & MACvDisableKeyEntry
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -138,7 +139,8 @@ bool MACbIsIntDisable(struct vnt_private *priv)
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void MACvSetShortRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit)
|
void MACvSetShortRetryLimit(struct vnt_private *priv,
|
||||||
|
unsigned char byRetryLimit)
|
||||||
{
|
{
|
||||||
void __iomem *io_base = priv->PortOffset;
|
void __iomem *io_base = priv->PortOffset;
|
||||||
/* set SRT */
|
/* set SRT */
|
||||||
|
@ -160,7 +162,8 @@ void MACvSetShortRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void MACvSetLongRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit)
|
void MACvSetLongRetryLimit(struct vnt_private *priv,
|
||||||
|
unsigned char byRetryLimit)
|
||||||
{
|
{
|
||||||
void __iomem *io_base = priv->PortOffset;
|
void __iomem *io_base = priv->PortOffset;
|
||||||
/* set LRT */
|
/* set LRT */
|
||||||
|
@ -304,7 +307,8 @@ bool MACbSoftwareReset(struct vnt_private *priv)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Description:
|
* Description:
|
||||||
* save some important register's value, then do reset, then restore register's value
|
* save some important register's value, then do reset, then restore
|
||||||
|
* register's value
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* In:
|
* In:
|
||||||
|
@ -738,7 +742,8 @@ void MACvTimer0MicroSDelay(struct vnt_private *priv, unsigned int uDelay)
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void MACvOneShotTimer1MicroSec(struct vnt_private *priv, unsigned int uDelayTime)
|
void MACvOneShotTimer1MicroSec(struct vnt_private *priv,
|
||||||
|
unsigned int uDelayTime)
|
||||||
{
|
{
|
||||||
void __iomem *io_base = priv->PortOffset;
|
void __iomem *io_base = priv->PortOffset;
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,8 @@
|
||||||
* Return Value: data read
|
* Return Value: data read
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
unsigned char SROMbyReadEmbedded(void __iomem *dwIoBase, unsigned char byContntOffset)
|
unsigned char SROMbyReadEmbedded(void __iomem *dwIoBase,
|
||||||
|
unsigned char byContntOffset)
|
||||||
{
|
{
|
||||||
unsigned short wDelay, wNoACK;
|
unsigned short wDelay, wNoACK;
|
||||||
unsigned char byWait;
|
unsigned char byWait;
|
||||||
|
@ -124,7 +125,8 @@ void SROMvReadAllContents(void __iomem *dwIoBase, unsigned char *pbyEepromRegs)
|
||||||
|
|
||||||
/* ii = Rom Address */
|
/* ii = Rom Address */
|
||||||
for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) {
|
for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) {
|
||||||
*pbyEepromRegs = SROMbyReadEmbedded(dwIoBase, (unsigned char)ii);
|
*pbyEepromRegs = SROMbyReadEmbedded(dwIoBase,
|
||||||
|
(unsigned char)ii);
|
||||||
pbyEepromRegs++;
|
pbyEepromRegs++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -141,7 +143,8 @@ void SROMvReadAllContents(void __iomem *dwIoBase, unsigned char *pbyEepromRegs)
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void SROMvReadEtherAddress(void __iomem *dwIoBase, unsigned char *pbyEtherAddress)
|
void SROMvReadEtherAddress(void __iomem *dwIoBase,
|
||||||
|
unsigned char *pbyEtherAddress)
|
||||||
{
|
{
|
||||||
unsigned char ii;
|
unsigned char ii;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue