Staging: rtxxx0: remove dead platform specific code

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>
This commit is contained in:
Bartlomiej Zolnierkiewicz 2009-08-16 21:29:59 +02:00 committed by Greg Kroah-Hartman
parent 20e3c65381
commit c6597767af
5 changed files with 0 additions and 90 deletions

View File

@ -68,9 +68,5 @@
#include "igmp_snoop.h" #include "igmp_snoop.h"
#endif // IGMP_SNOOP_SUPPORT // #endif // IGMP_SNOOP_SUPPORT //
#ifdef IKANOS_VX_1X0
#include "vr_ikans.h"
#endif // IKANOS_VX_1X0 //
#endif // __RT_CONFIG_H__ #endif // __RT_CONFIG_H__

View File

@ -662,13 +662,9 @@ void announce_802_3_packet(
pRxPkt = RTPKT_TO_OSPKT(pPacket); pRxPkt = RTPKT_TO_OSPKT(pPacket);
/* Push up the protocol stack */ /* 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); pRxPkt->protocol = eth_type_trans(pRxPkt, pRxPkt->dev);
netif_rx(pRxPkt); netif_rx(pRxPkt);
#endif // IKANOS_VX_1X0 //
} }

View File

@ -441,51 +441,6 @@ extern ULONG RTDebugLevel;
} }
#ifdef RT2860 #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 //Patch for ASIC turst read/write bug, needs to remove after metel fix
#define RTMP_IO_READ32(_A, _R, _pV) \ #define RTMP_IO_READ32(_A, _R, _pV) \
{ \ { \
@ -516,32 +471,18 @@ extern ULONG RTDebugLevel;
writel(_V, (void *)((_A)->CSRBaseAddress + (_R))); \ 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) \ #define RTMP_IO_WRITE8(_A, _R, _V) \
{ \ { \
UINT Val; \ UINT Val; \
Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \ Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
writeb((_V), (PUCHAR)((_A)->CSRBaseAddress + (_R))); \ writeb((_V), (PUCHAR)((_A)->CSRBaseAddress + (_R))); \
} }
#endif
#define RTMP_IO_WRITE16(_A, _R, _V) \ #define RTMP_IO_WRITE16(_A, _R, _V) \
{ \ { \
UINT Val; \ UINT Val; \
Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \ Val = readl((void *)((_A)->CSRBaseAddress + MAC_CSR0)); \
writew((_V), (PUSHORT)((_A)->CSRBaseAddress + (_R))); \ writew((_V), (PUSHORT)((_A)->CSRBaseAddress + (_R))); \
} }
#endif
#endif /* RT2860 */ #endif /* RT2860 */
#ifdef RT2870 #ifdef RT2870
//Patch for ASIC turst read/write bug, needs to remove after metel fix //Patch for ASIC turst read/write bug, needs to remove after metel fix

View File

@ -515,9 +515,6 @@ static int rt28xx_init(IN struct net_device *net_dev)
NICInitRT30xxRFRegisters(pAd); NICInitRT30xxRFRegisters(pAd);
#endif // RT2870 // #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 // Initialize RF register to default value
@ -678,11 +675,7 @@ static const struct net_device_ops rt2860_netdev_ops = {
.ndo_validate_addr = NULL, .ndo_validate_addr = NULL,
.ndo_set_mac_address = eth_mac_addr, .ndo_set_mac_address = eth_mac_addr,
.ndo_change_mtu = eth_change_mtu, .ndo_change_mtu = eth_change_mtu,
#ifdef IKANOS_VX_1X0
.ndo_start_xmit = IKANOS_DataFramesTx,
#else
.ndo_start_xmit = rt28xx_send_packets, .ndo_start_xmit = rt28xx_send_packets,
#endif
}; };
/* Must not be called for mdev and apdev */ /* Must not be called for mdev and apdev */

View File

@ -2532,16 +2532,6 @@ typedef struct _INF_USB_CONFIG
}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 #ifdef DBG_DIAGNOSE
#define DIAGNOSE_TIME 10 // 10 sec #define DIAGNOSE_TIME 10 // 10 sec
typedef struct _RtmpDiagStrcut_ typedef struct _RtmpDiagStrcut_
@ -2989,12 +2979,6 @@ typedef struct _RTMP_ADAPTER
UCHAR flg_be_adjust; UCHAR flg_be_adjust;
ULONG be_adjust_last_time; 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 #ifdef DBG_DIAGNOSE
RtmpDiagStruct DiagStruct; RtmpDiagStruct DiagStruct;
#endif // DBG_DIAGNOSE // #endif // DBG_DIAGNOSE //