staging: vt6656: int : Replace typedef struct tagSINTData.

New struct vnt_interrupt_data removing the camel case from members.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2014-02-16 19:09:20 +00:00 committed by Greg Kroah-Hartman
parent dbb18cbb7e
commit 864ace8ca7
2 changed files with 44 additions and 47 deletions

View File

@ -77,60 +77,58 @@ void INTvWorkItem(struct vnt_private *pDevice)
void INTnsProcessData(struct vnt_private *pDevice) void INTnsProcessData(struct vnt_private *pDevice)
{ {
PSINTData pINTData; struct vnt_interrupt_data *pINTData;
struct vnt_manager *pMgmt = &pDevice->vnt_mgmt; struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
struct net_device_stats *pStats = &pDevice->stats; struct net_device_stats *pStats = &pDevice->stats;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsInterruptProcessData\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---->s_nsInterruptProcessData\n");
pINTData = (PSINTData) pDevice->intBuf.pDataBuf; pINTData = (struct vnt_interrupt_data *)pDevice->intBuf.pDataBuf;
if (pINTData->byTSR0 & TSR_VALID) { if (pINTData->tsr0 & TSR_VALID) {
if (pINTData->byTSR0 & (TSR_TMO | TSR_RETRYTMO)) if (pINTData->tsr0 & (TSR_TMO | TSR_RETRYTMO))
pDevice->wstats.discard.retries++; pDevice->wstats.discard.retries++;
else else
pStats->tx_packets++; pStats->tx_packets++;
BSSvUpdateNodeTxCounter(pDevice, BSSvUpdateNodeTxCounter(pDevice,
pINTData->byTSR0, pINTData->tsr0,
pINTData->byPkt0); pINTData->pkt0);
/*DBG_PRN_GRP01(("TSR0 %02x\n", pINTData->byTSR0));*/
} }
if (pINTData->byTSR1 & TSR_VALID) { if (pINTData->tsr1 & TSR_VALID) {
if (pINTData->byTSR1 & (TSR_TMO | TSR_RETRYTMO)) if (pINTData->tsr1 & (TSR_TMO | TSR_RETRYTMO))
pDevice->wstats.discard.retries++; pDevice->wstats.discard.retries++;
else else
pStats->tx_packets++; pStats->tx_packets++;
BSSvUpdateNodeTxCounter(pDevice, BSSvUpdateNodeTxCounter(pDevice,
pINTData->byTSR1, pINTData->tsr1,
pINTData->byPkt1); pINTData->pkt1);
/*DBG_PRN_GRP01(("TSR1 %02x\n", pINTData->byTSR1));*/
} }
if (pINTData->byTSR2 & TSR_VALID) { if (pINTData->tsr2 & TSR_VALID) {
if (pINTData->byTSR2 & (TSR_TMO | TSR_RETRYTMO)) if (pINTData->tsr2 & (TSR_TMO | TSR_RETRYTMO))
pDevice->wstats.discard.retries++; pDevice->wstats.discard.retries++;
else else
pStats->tx_packets++; pStats->tx_packets++;
BSSvUpdateNodeTxCounter(pDevice, BSSvUpdateNodeTxCounter(pDevice,
pINTData->byTSR2, pINTData->tsr2,
pINTData->byPkt2); pINTData->pkt2);
/*DBG_PRN_GRP01(("TSR2 %02x\n", pINTData->byTSR2));*/ /*DBG_PRN_GRP01(("TSR2 %02x\n", pINTData->byTSR2));*/
} }
if (pINTData->byTSR3 & TSR_VALID) { if (pINTData->tsr3 & TSR_VALID) {
if (pINTData->byTSR3 & (TSR_TMO | TSR_RETRYTMO)) if (pINTData->tsr3 & (TSR_TMO | TSR_RETRYTMO))
pDevice->wstats.discard.retries++; pDevice->wstats.discard.retries++;
else else
pStats->tx_packets++; pStats->tx_packets++;
BSSvUpdateNodeTxCounter(pDevice, BSSvUpdateNodeTxCounter(pDevice,
pINTData->byTSR3, pINTData->tsr3,
pINTData->byPkt3); pINTData->pkt3);
/*DBG_PRN_GRP01(("TSR3 %02x\n", pINTData->byTSR3));*/ /*DBG_PRN_GRP01(("TSR3 %02x\n", pINTData->byTSR3));*/
} }
if (pINTData->byISR0 != 0) { if (pINTData->isr0 != 0) {
if (pINTData->byISR0 & ISR_BNTX) { if (pINTData->isr0 & ISR_BNTX) {
if (pDevice->op_mode == NL80211_IFTYPE_AP) { if (pDevice->op_mode == NL80211_IFTYPE_AP) {
if (pMgmt->byDTIMCount > 0) { if (pMgmt->byDTIMCount > 0) {
pMgmt->byDTIMCount--; pMgmt->byDTIMCount--;
@ -154,7 +152,7 @@ void INTnsProcessData(struct vnt_private *pDevice)
} else { } else {
pDevice->bBeaconSent = false; pDevice->bBeaconSent = false;
} }
if (pINTData->byISR0 & ISR_TBTT) { if (pINTData->isr0 & ISR_TBTT) {
if (pDevice->bEnablePSMode) if (pDevice->bEnablePSMode)
bScheduleCommand((void *) pDevice, bScheduleCommand((void *) pDevice,
WLAN_CMD_TBTT_WAKEUP, WLAN_CMD_TBTT_WAKEUP,
@ -175,8 +173,8 @@ void INTnsProcessData(struct vnt_private *pDevice)
pINTData->dwLoTSF, pINTData->dwLoTSF,
pINTData->dwHiTSF)); */ pINTData->dwHiTSF)); */
} }
if (pINTData->byISR1 != 0) if (pINTData->isr1 != 0)
if (pINTData->byISR1 & ISR_GPIO3) if (pINTData->isr1 & ISR_GPIO3)
bScheduleCommand((void *) pDevice, bScheduleCommand((void *) pDevice,
WLAN_CMD_RADIO, WLAN_CMD_RADIO,
NULL); NULL);

View File

@ -32,29 +32,28 @@
#include "device.h" #include "device.h"
typedef struct tagSINTData { struct vnt_interrupt_data {
u8 byTSR0; u8 tsr0;
u8 byPkt0; u8 pkt0;
u16 wTime0; u16 time0;
u8 byTSR1; u8 tsr1;
u8 byPkt1; u8 pkt1;
u16 wTime1; u16 time1;
u8 byTSR2; u8 tsr2;
u8 byPkt2; u8 pkt2;
u16 wTime2; u16 time2;
u8 byTSR3; u8 tsr3;
u8 byPkt3; u8 pkt3;
u16 wTime3; u16 time3;
__le64 tsf; __le64 tsf;
u8 byISR0; u8 isr0;
u8 byISR1; u8 isr1;
u8 byRTSSuccess; u8 rts_success;
u8 byRTSFail; u8 rts_fail;
u8 byACKFail; u8 ack_fail;
u8 byFCSErr; u8 fcs_err;
u8 abySW[2]; u8 sw[2];
} __attribute__ ((__packed__)) } __packed;
SINTData, *PSINTData;
void INTvWorkItem(struct vnt_private *); void INTvWorkItem(struct vnt_private *);
void INTnsProcessData(struct vnt_private *); void INTnsProcessData(struct vnt_private *);