.. | .. |
---|
1 | | -/****************************************************************************** |
---|
2 | | - * |
---|
3 | | - * Copyright(c) 2009-2012 Realtek Corporation. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of version 2 of the GNU General Public License as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * The full GNU General Public License is included in this distribution in the |
---|
15 | | - * file called LICENSE. |
---|
16 | | - * |
---|
17 | | - * Contact Information: |
---|
18 | | - * wlanfae <wlanfae@realtek.com> |
---|
19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
---|
20 | | - * Hsinchu 300, Taiwan. |
---|
21 | | - * |
---|
22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
---|
23 | | - * |
---|
24 | | - *****************************************************************************/ |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
---|
25 | 3 | |
---|
26 | 4 | #ifndef __RTL92C_REG_H__ |
---|
27 | 5 | #define __RTL92C_REG_H__ |
---|
.. | .. |
---|
702 | 680 | #define PWC_EV12V BIT(15) |
---|
703 | 681 | |
---|
704 | 682 | #define FEN_BBRSTB BIT(0) |
---|
705 | | -#define FEN_BB_GLB_RSTn BIT(1) |
---|
| 683 | +#define FEN_BB_GLB_RSTN BIT(1) |
---|
706 | 684 | #define FEN_USBA BIT(2) |
---|
707 | 685 | #define FEN_UPLL BIT(3) |
---|
708 | 686 | #define FEN_USBD BIT(4) |
---|
.. | .. |
---|
722 | 700 | #define PFM_ALDN BIT(1) |
---|
723 | 701 | #define PFM_LDKP BIT(2) |
---|
724 | 702 | #define PFM_WOWL BIT(3) |
---|
725 | | -#define EnPDN BIT(4) |
---|
| 703 | +#define ENPDN BIT(4) |
---|
726 | 704 | #define PDN_PL BIT(5) |
---|
727 | 705 | #define APFM_ONMAC BIT(8) |
---|
728 | 706 | #define APFM_OFF BIT(9) |
---|
.. | .. |
---|
837 | 815 | #define LDOE25_EN BIT(31) |
---|
838 | 816 | |
---|
839 | 817 | #define RSM_EN BIT(0) |
---|
840 | | -#define Timer_EN BIT(4) |
---|
| 818 | +#define TIMER_EN BIT(4) |
---|
841 | 819 | |
---|
842 | 820 | #define TRSW0EN BIT(2) |
---|
843 | 821 | #define TRSW1EN BIT(3) |
---|
844 | 822 | #define EROM_EN BIT(4) |
---|
845 | | -#define EnBT BIT(5) |
---|
846 | | -#define EnUart BIT(8) |
---|
847 | | -#define Uart_910 BIT(9) |
---|
848 | | -#define EnPMAC BIT(10) |
---|
| 823 | +#define ENBT BIT(5) |
---|
| 824 | +#define ENUART BIT(8) |
---|
| 825 | +#define UART_910 BIT(9) |
---|
| 826 | +#define ENPMAC BIT(10) |
---|
849 | 827 | #define SIC_SWRST BIT(11) |
---|
850 | | -#define EnSIC BIT(12) |
---|
| 828 | +#define ENSIC BIT(12) |
---|
851 | 829 | #define SIC_23 BIT(13) |
---|
852 | | -#define EnHDP BIT(14) |
---|
| 830 | +#define ENHDP BIT(14) |
---|
853 | 831 | #define SIC_LBK BIT(15) |
---|
854 | 832 | |
---|
855 | 833 | #define LED0PL BIT(4) |
---|
.. | .. |
---|
858 | 836 | |
---|
859 | 837 | #define MCUFWDL_EN BIT(0) |
---|
860 | 838 | #define MCUFWDL_RDY BIT(1) |
---|
861 | | -#define FWDL_ChkSum_rpt BIT(2) |
---|
| 839 | +#define FWDL_CHKSUM_RPT BIT(2) |
---|
862 | 840 | #define MACINI_RDY BIT(3) |
---|
863 | 841 | #define BBINI_RDY BIT(4) |
---|
864 | 842 | #define RFINI_RDY BIT(5) |
---|
.. | .. |
---|
1076 | 1054 | #define DIS_TSF_UDT0_NORMAL_CHIP BIT(4) |
---|
1077 | 1055 | #define DIS_TSF_UDT0_TEST_CHIP BIT(5) |
---|
1078 | 1056 | |
---|
1079 | | -#define AcmHw_HwEn BIT(0) |
---|
1080 | | -#define AcmHw_BeqEn BIT(1) |
---|
1081 | | -#define AcmHw_ViqEn BIT(2) |
---|
1082 | | -#define AcmHw_VoqEn BIT(3) |
---|
1083 | | -#define AcmHw_BeqStatus BIT(4) |
---|
1084 | | -#define AcmHw_ViqStatus BIT(5) |
---|
1085 | | -#define AcmHw_VoqStatus BIT(6) |
---|
| 1057 | +#define ACMHW_HWEN BIT(0) |
---|
| 1058 | +#define ACMHW_BEQEN BIT(1) |
---|
| 1059 | +#define ACMHW_VIQEN BIT(2) |
---|
| 1060 | +#define ACMHW_VOQEN BIT(3) |
---|
| 1061 | +#define ACMHW_BEQSTATUS BIT(4) |
---|
| 1062 | +#define ACMHW_VIQSTATUS BIT(5) |
---|
| 1063 | +#define ACMHW_VOQSTATUS BIT(6) |
---|
1086 | 1064 | |
---|
1087 | 1065 | #define APSDOFF BIT(6) |
---|
1088 | 1066 | #define APSDOFF_STATUS BIT(7) |
---|
.. | .. |
---|
1121 | 1099 | #define BM_DATA_EN BIT(17) |
---|
1122 | 1100 | #define MFBEN BIT(22) |
---|
1123 | 1101 | #define LSIGEN BIT(23) |
---|
1124 | | -#define EnMBID BIT(24) |
---|
| 1102 | +#define ENMBID BIT(24) |
---|
1125 | 1103 | #define APP_BASSN BIT(27) |
---|
1126 | 1104 | #define APP_PHYSTS BIT(28) |
---|
1127 | 1105 | #define APP_ICV BIT(29) |
---|
.. | .. |
---|
1150 | 1128 | #define RXERR_RPT_RST BIT(27) |
---|
1151 | 1129 | #define _RXERR_RPT_SEL(type) ((type) << 28) |
---|
1152 | 1130 | |
---|
1153 | | -#define SCR_TxUseDK BIT(0) |
---|
1154 | | -#define SCR_RxUseDK BIT(1) |
---|
1155 | | -#define SCR_TxEncEnable BIT(2) |
---|
1156 | | -#define SCR_RxDecEnable BIT(3) |
---|
1157 | | -#define SCR_SKByA2 BIT(4) |
---|
1158 | | -#define SCR_NoSKMC BIT(5) |
---|
| 1131 | +#define SCR_TXUSEDK BIT(0) |
---|
| 1132 | +#define SCR_RXUSEDK BIT(1) |
---|
| 1133 | +#define SCR_TXENCENABLE BIT(2) |
---|
| 1134 | +#define SCR_RXDECENABLE BIT(3) |
---|
| 1135 | +#define SCR_SKBYA2 BIT(4) |
---|
| 1136 | +#define SCR_NOSKMC BIT(5) |
---|
1159 | 1137 | #define SCR_TXBCUSEDK BIT(6) |
---|
1160 | 1138 | #define SCR_RXBCUSEDK BIT(7) |
---|
1161 | 1139 | |
---|
.. | .. |
---|
1208 | 1186 | #define RPMAC_CCKPLCPHEADER 0x144 |
---|
1209 | 1187 | #define RPMAC_CCKCRC16 0x148 |
---|
1210 | 1188 | #define RPMAC_OFDMRXCRC32OK 0x170 |
---|
1211 | | -#define RPMAC_OFDMRXCRC32Er 0x174 |
---|
| 1189 | +#define RPMAC_OFDMRXCRC32ER 0x174 |
---|
1212 | 1190 | #define RPMAC_OFDMRXPARITYER 0x178 |
---|
1213 | 1191 | #define RPMAC_OFDMRXCRC8ER 0x17c |
---|
1214 | 1192 | #define RPMAC_CCKCRXRC16ER 0x180 |
---|
.. | .. |
---|
1246 | 1224 | #define RFPGA0_XAB_RFINTERFACESW 0x870 |
---|
1247 | 1225 | #define RFPGA0_XCD_RFINTERFACESW 0x874 |
---|
1248 | 1226 | |
---|
1249 | | -#define rFPGA0_XAB_RFPARAMETER 0x878 |
---|
1250 | | -#define rFPGA0_XCD_RFPARAMETER 0x87c |
---|
| 1227 | +#define RFPGA0_XAB_RFPARAMETER 0x878 |
---|
| 1228 | +#define RFPGA0_XCD_RFPARAMETER 0x87c |
---|
1251 | 1229 | |
---|
1252 | 1230 | #define RFPGA0_ANALOGPARAMETER1 0x880 |
---|
1253 | 1231 | #define RFPGA0_ANALOGPARAMETER2 0x884 |
---|
.. | .. |
---|
1521 | 1499 | #define BCCKTXCRC16 0xffff |
---|
1522 | 1500 | #define BCCKTXSTATUS 0x1 |
---|
1523 | 1501 | #define BOFDMTXSTATUS 0x2 |
---|
1524 | | -#define IS_BB_REG_OFFSET_92S(_Offset) \ |
---|
1525 | | - ((_Offset >= 0x800) && (_Offset <= 0xfff)) |
---|
| 1502 | +#define IS_BB_REG_OFFSET_92S(_offset) \ |
---|
| 1503 | + (((_offset) >= 0x800) && ((_offset) <= 0xfff)) |
---|
1526 | 1504 | |
---|
1527 | 1505 | #define BRFMOD 0x1 |
---|
1528 | 1506 | #define BJAPANMODE 0x2 |
---|
.. | .. |
---|
1715 | 1693 | #define BCCK_RF_EXTEND 0x20000000 |
---|
1716 | 1694 | #define BCCK_RXAGC_SATLEVEL 0x1f000000 |
---|
1717 | 1695 | #define BCCK_RXAGC_SATCOUNT 0xe0 |
---|
1718 | | -#define bCCKRxRFSettle 0x1f |
---|
1719 | 1696 | #define BCCK_FIXED_RXAGC 0x8000 |
---|
1720 | 1697 | #define BCCK_ANTENNA_POLARITY 0x2000 |
---|
1721 | 1698 | #define BCCK_TXFILTER_TYPE 0x0c00 |
---|