Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162468
b: refs/heads/master
c: 5cc86f2
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 849cad6 commit ce0a1c1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 46 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30d36c28d03b099d5bc94dab50e91a3940f84a22
refs/heads/master: 5cc86f28ca09738652000e73827a5579279ef810
7 changes: 2 additions & 5 deletions trunk/drivers/staging/rt2860/common/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ VOID RTMP_EEPROM_WRITE16(
#endif
}

//2008/09/11:KH add to support efuse<--
#ifdef RT30xx
#ifdef RT2870
/*
========================================================================
Expand Down Expand Up @@ -1485,6 +1484,4 @@ NTSTATUS eFuseWriteRegistersFromBin(

return TRUE;
}

#endif // RT30xx //
//2008/09/11:KH add to support efuse-->
#endif
10 changes: 3 additions & 7 deletions trunk/drivers/staging/rt2860/common/rtmp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,10 +2186,8 @@ NDIS_STATUS NICInitializeAsic(
UINT32 MacCsr0 = 0;
NTSTATUS Status;
UCHAR Value = 0xff;
#endif // RT2870 //
#ifdef RT30xx
UINT32 eFuseCtrl;
#endif // RT30xx //
#endif
USHORT KeyIdx;
INT i,apidx;

Expand Down Expand Up @@ -2501,8 +2499,7 @@ NDIS_STATUS NICInitializeAsic(
Counter&=0xffffff00;
Counter|=0x000001e;
RTMP_IO_WRITE32(pAd, USB_CYC_CFG, Counter);
#endif // RT2870 //
#ifdef RT30xx

pAd->bUseEfuse=FALSE;
RTMP_IO_READ32(pAd, EFUSE_CTRL, &eFuseCtrl);
pAd->bUseEfuse = ( (eFuseCtrl & 0x80000000) == 0x80000000) ? 1 : 0;
Expand All @@ -2513,9 +2510,8 @@ NDIS_STATUS NICInitializeAsic(
else
{
DBGPRINT(RT_DEBUG_TRACE, ("NVM is EEPROM\n"));

}
#endif // RT30xx //
#endif

{
// for rt2860E and after, init TXOP_CTRL_CFG with 0x583f. This is for extension channel overlapping IOT.
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/staging/rt2860/rtmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2938,12 +2938,9 @@ typedef struct _RTMP_ADAPTER

UINT8 PM_FlgSuspend;

#ifdef RT30xx
//======efuse
#ifdef RT2870
BOOLEAN bUseEfuse;
BOOLEAN bEEPROMFile;
#endif // RT30xx //

#endif
} RTMP_ADAPTER, *PRTMP_ADAPTER;

//
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/staging/rt2860/sta_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,11 @@ static struct {
{"ForceGF", Set_ForceGF_Proc},
{"LongRetry", Set_LongRetryLimit_Proc},
{"ShortRetry", Set_ShortRetryLimit_Proc},
//2008/09/11:KH add to support efuse<--
#ifdef RT30xx
#ifdef RT2870
{"efuseFreeNumber", set_eFuseGetFreeBlockCount_Proc},
{"efuseDump", set_eFusedump_Proc},
{"efuseLoadFromBin", set_eFuseLoadFromBin_Proc},
#endif // RT30xx //
//2008/09/11:KH add to support efuse-->
#endif
{NULL,}
};

Expand Down
8 changes: 0 additions & 8 deletions trunk/drivers/staging/rt2870/common/rtusb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,9 @@ NTSTATUS RTUSBReadEEPROM(
{
NTSTATUS Status = STATUS_SUCCESS;

#ifdef RT30xx
if(pAd->bUseEfuse)
{
Status =eFuseRead(pAd, Offset, pData, length);
}
else
#endif // RT30xx //
{
Status = RTUSB_VendorRequest(
pAd,
Expand Down Expand Up @@ -848,13 +844,9 @@ NTSTATUS RTUSBWriteEEPROM(
{
NTSTATUS Status = STATUS_SUCCESS;

#ifdef RT30xx
if(pAd->bUseEfuse)
{
Status = eFuseWrite(pAd, Offset, pData, length);
}
else
#endif // RT30xx //
{
Status = RTUSB_VendorRequest(
pAd,
Expand Down
16 changes: 0 additions & 16 deletions trunk/drivers/staging/rt2870/rt2870.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ typedef struct _MGMT_STRUC {


/* ----------------- EEPROM Related MACRO ----------------- */
#ifdef RT30xx
#define RT28xx_EEPROM_READ16(pAd, offset, var) \
do { \
RTUSBReadEEPROM(pAd, offset, (PUCHAR)&(var), 2); \
Expand All @@ -150,21 +149,6 @@ typedef struct _MGMT_STRUC {
_tmpVar = cpu2le16(var); \
RTUSBWriteEEPROM(pAd, offset, (PUCHAR)&(_tmpVar), 2); \
}while(0)
#endif // RT30xx //
#ifndef RT30xx
#define RT28xx_EEPROM_READ16(pAd, offset, var) \
do { \
RTUSBReadEEPROM(pAd, offset, (PUCHAR)&(var), 2); \
var = le2cpu16(var); \
}while(0)

#define RT28xx_EEPROM_WRITE16(pAd, offset, var) \
do{ \
USHORT _tmpVar; \
_tmpVar = cpu2le16(var); \
RTUSBWriteEEPROM(pAd, offset, (PUCHAR)&(_tmpVar), 2); \
}while(0)
#endif // RT30xx //

/* ----------------- TASK/THREAD Related MACRO ----------------- */
#define RT28XX_TASK_THREAD_INIT(pAd, Status) \
Expand Down

0 comments on commit ce0a1c1

Please sign in to comment.