![Larry Finger](/assets/img/avatar_default.png)
This code is for a completely new version of the Realtek 8192 USB devices such as the D-Link DWA-130. The Realtek code, which was originally for Linux, Windows XP and Windows CE, has been stripped of all code not needed for Linux. In addition, only one additional configuration variable, which enables AP mode, remains. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com> Tested-by: Frederic Leroy <fredo@starox.org>
127 lines
2.9 KiB
C
127 lines
2.9 KiB
C
#ifndef __RTL8712_FIFOCTRL_BITDEF_H__
|
|
#define __RTL8712_FIFOCTRL_BITDEF_H__
|
|
|
|
/*PBP*/
|
|
#define _PSTX_MSK 0xF0
|
|
#define _PSTX_SHT 4
|
|
#define _PSRX_MSK 0x0F
|
|
#define _PSRX_SHT 0
|
|
|
|
/*TXFF_STATUS*/
|
|
#define _TXSTATUS_OVF BIT(15)
|
|
|
|
/*RXFF_STATUS*/
|
|
#define _STATUSFF1_OVF BIT(7)
|
|
#define _STATUSFF1_EMPTY BIT(6)
|
|
#define _STATUSFF0_OVF BIT(5)
|
|
#define _STATUSFF0_EMPTY BIT(4)
|
|
#define _RXFF1_OVF BIT(3)
|
|
#define _RXFF1_EMPTY BIT(2)
|
|
#define _RXFF0_OVF BIT(1)
|
|
#define _RXFF0_EMPTY BIT(0)
|
|
|
|
/*TXFF_EMPTY_TH*/
|
|
#define _BKQ_EMPTY_TH_MSK 0x0F0000
|
|
#define _BKQ_EMPTY_TH_SHT 16
|
|
#define _BEQ_EMPTY_TH_MSK 0x00F000
|
|
#define _BEQ_EMPTY_TH_SHT 12
|
|
#define _VIQ_EMPTY_TH_MSK 0x000F00
|
|
#define _VIQ_EMPTY_TH_SHT 8
|
|
#define _VOQ_EMPTY_TH_MSK 0x0000F0
|
|
#define _VOQ_EMPTY_TH_SHT 4
|
|
#define _BMCQ_EMPTY_TH_MSK 0x00000F
|
|
#define _BMCQ_EMPTY_TH_SHT 0
|
|
|
|
/*SDIO_RX_BLKSZ*/
|
|
#define _SDIO_RX_BLKSZ_MSK 0x07
|
|
|
|
/*RXDMA_CTRL*/
|
|
#define _C2HFF_POLL BIT(4)
|
|
#define _RXPKT_POLL BIT(0)
|
|
|
|
/*RXPKT_NUM*/
|
|
#define _RXCMD_NUM_MSK 0xFF00
|
|
#define _RXCMD_NUM_SHT 8
|
|
#define _RXFF0_NUM_MSK 0x00FF
|
|
#define _RXFF0_NUM_SHT 0
|
|
|
|
/*FIFOPAGE2*/
|
|
#define _PUB_AVAL_PG_MSK 0xFFFF0000
|
|
#define _PUB_AVAL_PG_SHT 16
|
|
#define _BCN_AVAL_PG_MSK 0x0000FFFF
|
|
#define _BCN_AVAL_PG_SHT 0
|
|
|
|
/*RX0PKTNUM*/
|
|
#define _RXFF0_DEC_POLL BIT(15)
|
|
#define _RXFF0_PKT_DEC_NUM_MSK 0x3F00
|
|
#define _RXFF0_PKT_DEC_NUM_SHT 8
|
|
#define _RXFF0_PKTNUM_RPT_MSK 0x00FF
|
|
#define _RXFF0_PKTNUM_RPT_SHT 0
|
|
|
|
/*RX1PKTNUM*/
|
|
#define _RXFF1_DEC_POLL BIT(15)
|
|
#define _RXFF1_PKT_DEC_NUM_MSK 0x3F00
|
|
#define _RXFF1_PKT_DEC_NUM_SHT 8
|
|
#define _RXFF1_PKTNUM_RPT_MSK 0x00FF
|
|
#define _RXFF1_PKTNUM_RPT_SHT 0
|
|
|
|
/*RXFLTMAP0*/
|
|
#define _MGTFLT13EN BIT(13)
|
|
#define _MGTFLT12EN BIT(12)
|
|
#define _MGTFLT11EN BIT(11)
|
|
#define _MGTFLT10EN BIT(10)
|
|
#define _MGTFLT9EN BIT(9)
|
|
#define _MGTFLT8EN BIT(8)
|
|
#define _MGTFLT5EN BIT(5)
|
|
#define _MGTFLT4EN BIT(4)
|
|
#define _MGTFLT3EN BIT(3)
|
|
#define _MGTFLT2EN BIT(2)
|
|
#define _MGTFLT1EN BIT(1)
|
|
#define _MGTFLT0EN BIT(0)
|
|
|
|
/*RXFLTMAP1*/
|
|
#define _CTRLFLT15EN BIT(15)
|
|
#define _CTRLFLT14EN BIT(14)
|
|
#define _CTRLFLT13EN BIT(13)
|
|
#define _CTRLFLT12EN BIT(12)
|
|
#define _CTRLFLT11EN BIT(11)
|
|
#define _CTRLFLT10EN BIT(10)
|
|
#define _CTRLFLT9EN BIT(9)
|
|
#define _CTRLFLT8EN BIT(8)
|
|
#define _CTRLFLT7EN BIT(7)
|
|
#define _CTRLFLT6EN BIT(6)
|
|
|
|
/*RXFLTMAP2*/
|
|
#define _DATAFLT15EN BIT(15)
|
|
#define _DATAFLT14EN BIT(14)
|
|
#define _DATAFLT13EN BIT(13)
|
|
#define _DATAFLT12EN BIT(12)
|
|
#define _DATAFLT11EN BIT(11)
|
|
#define _DATAFLT10EN BIT(10)
|
|
#define _DATAFLT9EN BIT(9)
|
|
#define _DATAFLT8EN BIT(8)
|
|
#define _DATAFLT7EN BIT(7)
|
|
#define _DATAFLT6EN BIT(6)
|
|
#define _DATAFLT5EN BIT(5)
|
|
#define _DATAFLT4EN BIT(4)
|
|
#define _DATAFLT3EN BIT(3)
|
|
#define _DATAFLT2EN BIT(2)
|
|
#define _DATAFLT1EN BIT(1)
|
|
#define _DATAFLT0EN BIT(0)
|
|
|
|
/*RXFLTMAP3*/
|
|
#define _MESHAFLT1EN BIT(1)
|
|
#define _MESHAFLT0EN BIT(0)
|
|
|
|
/*TXPKT_NUM_CTRL*/
|
|
#define _TXPKTNUM_DEC BIT(8)
|
|
#define _TXPKTNUM_MSK 0x00FF
|
|
#define _TXPKTNUM_SHT 0
|
|
|
|
/*TXFF_PG_NUM*/
|
|
#define _TXFF_PG_NUM_MSK 0x0FFF
|
|
|
|
|
|
#endif /* __RTL8712_FIFOCTRL_BITDEF_H__ */
|
|
|