.. | .. |
---|
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 | + |
---|
25 | 4 | #ifndef __REALTEK_92S_REG_H__ |
---|
26 | 5 | #define __REALTEK_92S_REG_H__ |
---|
27 | 6 | |
---|
.. | .. |
---|
190 | 169 | #define BCNTCFG 0x01E0 |
---|
191 | 170 | #define CWRR 0x01E2 |
---|
192 | 171 | #define ACMAVG 0x01E4 |
---|
193 | | -#define AcmHwCtrl 0x01E7 |
---|
| 172 | +#define ACMHWCTRL 0x01E7 |
---|
194 | 173 | #define VO_ADMTM 0x01E8 |
---|
195 | 174 | #define VI_ADMTM 0x01EC |
---|
196 | 175 | #define BE_ADMTM 0x01F0 |
---|
.. | .. |
---|
256 | 235 | #define INTA_MASK 0x0300 |
---|
257 | 236 | #define ISR 0x0308 |
---|
258 | 237 | |
---|
259 | | -/* 13. Test Mode and Debug Control Registers */ |
---|
| 238 | +/* 13. Test mode and Debug Control Registers */ |
---|
260 | 239 | #define DBG_PORT_SWITCH 0x003A |
---|
261 | 240 | #define BIST 0x0310 |
---|
262 | 241 | #define DBS 0x0314 |
---|
.. | .. |
---|
346 | 325 | #define SYS_SWHW_SEL BIT(14) |
---|
347 | 326 | #define SYS_FWHW_SEL BIT(15) |
---|
348 | 327 | |
---|
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) |
---|
352 | 331 | |
---|
353 | 332 | #define AFE_MBEN BIT(1) |
---|
354 | 333 | #define AFE_BGEN BIT(0) |
---|
.. | .. |
---|
369 | 348 | |
---|
370 | 349 | #define APLL_EN BIT(0) |
---|
371 | 350 | |
---|
372 | | -#define AFR_CardBEn BIT(0) |
---|
| 351 | +#define AFR_CARDBEN BIT(0) |
---|
373 | 352 | #define AFR_CLKRUN_SEL BIT(1) |
---|
374 | | -#define AFR_FuncRegEn BIT(2) |
---|
| 353 | +#define AFR_FUNCREGEN BIT(2) |
---|
375 | 354 | |
---|
376 | 355 | #define APSDOFF_STATUS BIT(15) |
---|
377 | 356 | #define APSDOFF BIT(14) |
---|
.. | .. |
---|
387 | 366 | #define HCI_RXDMA_EN BIT(3) |
---|
388 | 367 | #define HCI_TXDMA_EN BIT(2) |
---|
389 | 368 | |
---|
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) |
---|
397 | 376 | |
---|
398 | 377 | #define LBK_NORMAL 0x00 |
---|
399 | 378 | #define LBK_MAC_LB (BIT(0) | BIT(1) | BIT(3)) |
---|
.. | .. |
---|
405 | 384 | #define TXDMAPRE2FULL BIT(23) |
---|
406 | 385 | #define DISCW BIT(20) |
---|
407 | 386 | #define TCRICV BIT(19) |
---|
408 | | -#define CfendForm BIT(17) |
---|
| 387 | +#define cfendform BIT(17) |
---|
409 | 388 | #define TCRCRC BIT(16) |
---|
410 | 389 | #define FAKE_IMEM_EN BIT(15) |
---|
411 | 390 | #define TSFRST BIT(9) |
---|
.. | .. |
---|
530 | 509 | #define RRSR_MCS5 BIT(17) |
---|
531 | 510 | #define RRSR_MCS6 BIT(18) |
---|
532 | 511 | #define RRSR_MCS7 BIT(19) |
---|
533 | | -#define BRSR_AckShortPmb BIT(23) |
---|
| 512 | +#define BRSR_ACKSHORTPMB BIT(23) |
---|
534 | 513 | |
---|
535 | 514 | #define RATR_1M 0x00000001 |
---|
536 | 515 | #define RATR_2M 0x00000002 |
---|
.. | .. |
---|
581 | 560 | #define AC_PARAM_ECW_MIN_OFFSET 8 |
---|
582 | 561 | #define AC_PARAM_AIFS_OFFSET 0 |
---|
583 | 562 | |
---|
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) |
---|
591 | 570 | |
---|
592 | 571 | #define RETRY_LIMIT_SHORT_SHIFT 8 |
---|
593 | 572 | #define RETRY_LIMIT_LONG_SHIFT 0 |
---|
.. | .. |
---|
845 | 824 | #define TCR_SAT BIT(24) |
---|
846 | 825 | #define RCR_MXDMA_OFFSET 8 |
---|
847 | 826 | #define RCR_FIFO_OFFSET 13 |
---|
848 | | -#define RCR_OnlyErlPkt BIT(31) |
---|
| 827 | +#define RCR_ONLYERLPKT BIT(31) |
---|
849 | 828 | #define CWR 0xDC |
---|
850 | 829 | #define RETRYCTR 0xDE |
---|
851 | 830 | |
---|