forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h
....@@ -1,27 +1,5 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2010 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-2010 Realtek Corporation.*/
253
264 #ifndef __RTL8821AE_REG_H__
275 #define __RTL8821AE_REG_H__
....@@ -696,7 +674,7 @@
696674 #define EEPROM_CHANNEL_PLAN_TELEC 0x8
697675 #define EEPROM_CHANNEL_PLAN_GLOBAL_DOMAIN 0x9
698676 #define EEPROM_CHANNEL_PLAN_WORLD_WIDE_13 0xA
699
-#define EEPROM_CHANNEL_PLAN_NCC 0xB
677
+#define EEPROM_CHANNEL_PLAN_NCC 0XB
700678 #define EEPROM_CHANNEL_PLAN_BY_HW_MASK 0x80
701679
702680 #define EEPROM_CID_DEFAULT 0x0
....@@ -718,10 +696,10 @@
718696
719697 #define EEPROM_TX_PWR_INX 0x10
720698
721
-#define EEPROM_CHANNELPLAN 0xB8
722
-#define EEPROM_XTAL_8821AE 0xB9
723
-#define EEPROM_THERMAL_METER 0xBA
724
-#define EEPROM_IQK_LCK_88E 0xBB
699
+#define EEPROM_CHANNELPLAN 0XB8
700
+#define EEPROM_XTAL_8821AE 0XB9
701
+#define EEPROM_THERMAL_METER 0XBA
702
+#define EEPROM_IQK_LCK_88E 0XBB
725703
726704 #define EEPROM_RF_BOARD_OPTION 0xC1
727705 #define EEPROM_RF_FEATURE_OPTION_88E 0xC2
....@@ -1015,7 +993,7 @@
1015993 #define _LBMODE(x) (((x) & 0xF) << 24)
1016994 #define MASK_LBMODE 0xF000000
1017995 #define LOOPBACK_NORMAL 0x0
1018
-#define LOOPBACK_IMMEDIATELY 0xB
996
+#define LOOPBACK_IMMEDIATELY 0XB
1019997 #define LOOPBACK_MAC_DELAY 0x3
1020998 #define LOOPBACK_PHY 0x1
1021999 #define LOOPBACK_DMA 0x7
....@@ -1430,7 +1408,7 @@
14301408 #define RCCK0_FACOUNTERUPPER 0xa58
14311409 #define RCCK0_CCA_CNT 0xa60
14321410
1433
-/* PageB(0xB00) */
1411
+/* PageB(0XB00) */
14341412 #define RPDP_ANTA 0xb00
14351413 #define RPDP_ANTA_4 0xb04
14361414 #define RPDP_ANTA_8 0xb08
....@@ -1477,16 +1455,16 @@
14771455 #define RPM_RX3_ANTB 0xbf8
14781456
14791457 /*RSSI Dump*/
1480
-#define RA_RSSI_DUMP 0xBF0
1481
-#define RB_RSSI_DUMP 0xBF1
1482
-#define RS1_RX_EVM_DUMP 0xBF4
1483
-#define RS2_RX_EVM_DUMP 0xBF5
1484
-#define RA_RX_SNR_DUMP 0xBF6
1485
-#define RB_RX_SNR_DUMP 0xBF7
1486
-#define RA_CFO_SHORT_DUMP 0xBF8
1487
-#define RB_CFO_SHORT_DUMP 0xBFA
1488
-#define RA_CFO_LONG_DUMP 0xBEC
1489
-#define RB_CFO_LONG_DUMP 0xBEE
1458
+#define RA_RSSI_DUMP 0XBF0
1459
+#define RB_RSSI_DUMP 0XBF1
1460
+#define RS1_RX_EVM_DUMP 0XBF4
1461
+#define RS2_RX_EVM_DUMP 0XBF5
1462
+#define RA_RX_SNR_DUMP 0XBF6
1463
+#define RB_RX_SNR_DUMP 0XBF7
1464
+#define RA_CFO_SHORT_DUMP 0XBF8
1465
+#define RB_CFO_SHORT_DUMP 0XBFA
1466
+#define RA_CFO_LONG_DUMP 0XBEC
1467
+#define RB_CFO_LONG_DUMP 0XBEE
14901468
14911469 /*Page C*/
14921470 #define ROFDM0_LSTF 0xc00