forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192se/reg.h
....@@ -1,27 +1,6 @@
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.*/
3
+
254 #ifndef __REALTEK_92S_REG_H__
265 #define __REALTEK_92S_REG_H__
276
....@@ -190,7 +169,7 @@
190169 #define BCNTCFG 0x01E0
191170 #define CWRR 0x01E2
192171 #define ACMAVG 0x01E4
193
-#define AcmHwCtrl 0x01E7
172
+#define ACMHWCTRL 0x01E7
194173 #define VO_ADMTM 0x01E8
195174 #define VI_ADMTM 0x01EC
196175 #define BE_ADMTM 0x01F0
....@@ -256,7 +235,7 @@
256235 #define INTA_MASK 0x0300
257236 #define ISR 0x0308
258237
259
-/* 13. Test Mode and Debug Control Registers */
238
+/* 13. Test mode and Debug Control Registers */
260239 #define DBG_PORT_SWITCH 0x003A
261240 #define BIST 0x0310
262241 #define DBS 0x0314
....@@ -346,9 +325,9 @@
346325 #define SYS_SWHW_SEL BIT(14)
347326 #define SYS_FWHW_SEL BIT(15)
348327
349
-#define CmdEEPROM_En BIT(5)
350
-#define CmdEERPOMSEL BIT(4)
351
-#define Cmd9346CR_9356SEL BIT(4)
328
+#define CMDEEPROM_EN BIT(5)
329
+#define CMDEERPOMSEL BIT(4)
330
+#define CMD9346CR_9356SEL BIT(4)
352331
353332 #define AFE_MBEN BIT(1)
354333 #define AFE_BGEN BIT(0)
....@@ -369,9 +348,9 @@
369348
370349 #define APLL_EN BIT(0)
371350
372
-#define AFR_CardBEn BIT(0)
351
+#define AFR_CARDBEN BIT(0)
373352 #define AFR_CLKRUN_SEL BIT(1)
374
-#define AFR_FuncRegEn BIT(2)
353
+#define AFR_FUNCREGEN BIT(2)
375354
376355 #define APSDOFF_STATUS BIT(15)
377356 #define APSDOFF BIT(14)
....@@ -387,13 +366,13 @@
387366 #define HCI_RXDMA_EN BIT(3)
388367 #define HCI_TXDMA_EN BIT(2)
389368
390
-#define StopHCCA BIT(6)
391
-#define StopHigh BIT(5)
392
-#define StopMgt BIT(4)
393
-#define StopVO BIT(3)
394
-#define StopVI BIT(2)
395
-#define StopBE BIT(1)
396
-#define StopBK BIT(0)
369
+#define STOPHCCA BIT(6)
370
+#define STOPHIGH BIT(5)
371
+#define STOPMGT BIT(4)
372
+#define STOPVO BIT(3)
373
+#define STOPVI BIT(2)
374
+#define STOPBE BIT(1)
375
+#define STOPBK BIT(0)
397376
398377 #define LBK_NORMAL 0x00
399378 #define LBK_MAC_LB (BIT(0) | BIT(1) | BIT(3))
....@@ -405,7 +384,7 @@
405384 #define TXDMAPRE2FULL BIT(23)
406385 #define DISCW BIT(20)
407386 #define TCRICV BIT(19)
408
-#define CfendForm BIT(17)
387
+#define cfendform BIT(17)
409388 #define TCRCRC BIT(16)
410389 #define FAKE_IMEM_EN BIT(15)
411390 #define TSFRST BIT(9)
....@@ -530,7 +509,7 @@
530509 #define RRSR_MCS5 BIT(17)
531510 #define RRSR_MCS6 BIT(18)
532511 #define RRSR_MCS7 BIT(19)
533
-#define BRSR_AckShortPmb BIT(23)
512
+#define BRSR_ACKSHORTPMB BIT(23)
534513
535514 #define RATR_1M 0x00000001
536515 #define RATR_2M 0x00000002
....@@ -581,13 +560,13 @@
581560 #define AC_PARAM_ECW_MIN_OFFSET 8
582561 #define AC_PARAM_AIFS_OFFSET 0
583562
584
-#define AcmHw_HwEn BIT(0)
585
-#define AcmHw_BeqEn BIT(1)
586
-#define AcmHw_ViqEn BIT(2)
587
-#define AcmHw_VoqEn BIT(3)
588
-#define AcmHw_BeqStatus BIT(4)
589
-#define AcmHw_ViqStatus BIT(5)
590
-#define AcmHw_VoqStatus BIT(6)
563
+#define ACMHW_HWEN BIT(0)
564
+#define ACMHW_BEQEN BIT(1)
565
+#define ACMHW_VIQEN BIT(2)
566
+#define ACMHW_VOQEN BIT(3)
567
+#define ACMHW_BEQSTATUS BIT(4)
568
+#define ACMHW_VIQSTATUS BIT(5)
569
+#define ACMHW_VOQSTATUS BIT(6)
591570
592571 #define RETRY_LIMIT_SHORT_SHIFT 8
593572 #define RETRY_LIMIT_LONG_SHIFT 0
....@@ -845,7 +824,7 @@
845824 #define TCR_SAT BIT(24)
846825 #define RCR_MXDMA_OFFSET 8
847826 #define RCR_FIFO_OFFSET 13
848
-#define RCR_OnlyErlPkt BIT(31)
827
+#define RCR_ONLYERLPKT BIT(31)
849828 #define CWR 0xDC
850829 #define RETRYCTR 0xDE
851830