Skip to content

Commit

Permalink
Staging: rtxxx0: remove dead platform specific code
Browse files Browse the repository at this point in the history
Remove dead support for:

* IKANOS_VX_1X0
* INF_TWINPASS
* INF_DANUBE
* BRCM_6358

platforms.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 20e3c65 commit c659776
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 90 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/rt2860/rt_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,5 @@
#include "igmp_snoop.h"
#endif // IGMP_SNOOP_SUPPORT //

#ifdef IKANOS_VX_1X0
#include "vr_ikans.h"
#endif // IKANOS_VX_1X0 //

#endif // __RT_CONFIG_H__

4 changes: 0 additions & 4 deletions drivers/staging/rt2860/rt_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,9 @@ void announce_802_3_packet(
pRxPkt = RTPKT_TO_OSPKT(pPacket);

/* Push up the protocol stack */
#ifdef IKANOS_VX_1X0
IKANOS_DataFrameRx(pAd, pRxPkt->dev, pRxPkt, pRxPkt->len);
#else
pRxPkt->protocol = eth_type_trans(pRxPkt, pRxPkt->dev);

netif_rx(pRxPkt);
#endif // IKANOS_VX_1X0 //
}


Expand Down
59 changes: 0 additions & 59 deletions drivers/staging/rt2860/rt_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,51 +441,6 @@ extern ULONG RTDebugLevel;
}

#ifdef RT2860
#if defined(INF_TWINPASS) || defined(INF_DANUBE) || defined(IKANOS_VX_1X0)
//Patch for ASIC turst read/write bug, needs to remove after metel fix
#define RTMP_IO_READ32(_A, _R, _pV) \
{ \
if ((_A)->bPCIclkOff == FALSE) \
{ \
(*_pV = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0))); \
(*_pV = readl((void *)((_A)->CSRBaseAddress + (_R)))); \
(*_pV = SWAP32(*((UINT32 *)(_pV)))); \
} \
}
#define RTMP_IO_FORCE_READ32(_A, _R, _pV) \
{ \
(*_pV = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0))); \
(*_pV = readl((void *)((_A)->CSRBaseAddress + (_R)))); \
(*_pV = SWAP32(*((UINT32 *)(_pV)))); \
}
#define RTMP_IO_READ8(_A, _R, _pV) \
{ \
(*_pV = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0))); \
(*_pV = readb((void *)((_A)->CSRBaseAddress + (_R)))); \
}
#define RTMP_IO_WRITE32(_A, _R, _V) \
{ \
if ((_A)->bPCIclkOff == FALSE) \
{ \
UINT32 _Val; \
_Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
_Val = SWAP32(_V); \
writel(_Val, (void *)((_A)->CSRBaseAddress + (_R))); \
} \
}
#define RTMP_IO_WRITE8(_A, _R, _V) \
{ \
UINT Val; \
Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
writeb((_V), (PUCHAR)((_A)->CSRBaseAddress + (_R))); \
}
#define RTMP_IO_WRITE16(_A, _R, _V) \
{ \
UINT Val; \
Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
writew(SWAP16((_V)), (PUSHORT)((_A)->CSRBaseAddress + (_R))); \
}
#else
//Patch for ASIC turst read/write bug, needs to remove after metel fix
#define RTMP_IO_READ32(_A, _R, _pV) \
{ \
Expand Down Expand Up @@ -516,32 +471,18 @@ extern ULONG RTDebugLevel;
writel(_V, (void *)((_A)->CSRBaseAddress + (_R))); \
} \
}
#if defined(BRCM_6358)
#define RTMP_IO_WRITE8(_A, _R, _V) \
{ \
ULONG Val; \
UCHAR _i; \
_i = (_R & 0x3); \
Val = readl((void *)((_A)->CSRBaseAddress + (_R - _i))); \
Val = Val & (~(0x000000ff << ((_i)*8))); \
Val = Val | ((ULONG)_V << ((_i)*8)); \
writel((Val), (void *)((_A)->CSRBaseAddress + (_R - _i))); \
}
#else
#define RTMP_IO_WRITE8(_A, _R, _V) \
{ \
UINT Val; \
Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
writeb((_V), (PUCHAR)((_A)->CSRBaseAddress + (_R))); \
}
#endif
#define RTMP_IO_WRITE16(_A, _R, _V) \
{ \
UINT Val; \
Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
writew((_V), (PUSHORT)((_A)->CSRBaseAddress + (_R))); \
}
#endif
#endif /* RT2860 */
#ifdef RT2870
//Patch for ASIC turst read/write bug, needs to remove after metel fix
Expand Down
7 changes: 0 additions & 7 deletions drivers/staging/rt2860/rt_main_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@ static int rt28xx_init(IN struct net_device *net_dev)
NICInitRT30xxRFRegisters(pAd);
#endif // RT2870 //

#ifdef IKANOS_VX_1X0
VR_IKANOS_FP_Init(pAd->ApCfg.BssidNum, pAd->PermanentAddress);
#endif // IKANOS_VX_1X0 //

//
// Initialize RF register to default value
Expand Down Expand Up @@ -678,11 +675,7 @@ static const struct net_device_ops rt2860_netdev_ops = {
.ndo_validate_addr = NULL,
.ndo_set_mac_address = eth_mac_addr,
.ndo_change_mtu = eth_change_mtu,
#ifdef IKANOS_VX_1X0
.ndo_start_xmit = IKANOS_DataFramesTx,
#else
.ndo_start_xmit = rt28xx_send_packets,
#endif
};

/* Must not be called for mdev and apdev */
Expand Down
16 changes: 0 additions & 16 deletions drivers/staging/rt2860/rtmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2532,16 +2532,6 @@ typedef struct _INF_USB_CONFIG

}INF_USB_CONFIG;

#ifdef IKANOS_VX_1X0
typedef void (*IkanosWlanTxCbFuncP)(void *, void *);

struct IKANOS_TX_INFO
{
struct net_device *netdev;
IkanosWlanTxCbFuncP *fp;
};
#endif // IKANOS_VX_1X0 //

#ifdef DBG_DIAGNOSE
#define DIAGNOSE_TIME 10 // 10 sec
typedef struct _RtmpDiagStrcut_
Expand Down Expand Up @@ -2989,12 +2979,6 @@ typedef struct _RTMP_ADAPTER
UCHAR flg_be_adjust;
ULONG be_adjust_last_time;

#ifdef IKANOS_VX_1X0
struct IKANOS_TX_INFO IkanosTxInfo;
struct IKANOS_TX_INFO IkanosRxInfo[MAX_MBSSID_NUM + MAX_WDS_ENTRY + MAX_APCLI_NUM + MAX_MESH_NUM];
#endif // IKANOS_VX_1X0 //


#ifdef DBG_DIAGNOSE
RtmpDiagStruct DiagStruct;
#endif // DBG_DIAGNOSE //
Expand Down

0 comments on commit c659776

Please sign in to comment.