forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.h
....@@ -1,27 +1,5 @@
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.*/
253
264 #ifndef __RTL92CU_HW_H__
275 #define __RTL92CU_HW_H__
....@@ -36,13 +14,11 @@
3614 #define TX_TOTAL_PAGE_NUMBER 0xF8
3715 #define TX_PAGE_BOUNDARY (TX_TOTAL_PAGE_NUMBER + 1)
3816
39
-
4017 #define CHIP_B_PAGE_NUM_PUBQ 0xE7
4118
4219 /* For Test Chip Setting
4320 * (HPQ + LPQ + PUBQ) shall be TX_TOTAL_PAGE_NUMBER */
4421 #define CHIP_A_PAGE_NUM_PUBQ 0x7E
45
-
4622
4723 /* For Chip A Setting */
4824 #define WMM_CHIP_A_TX_TOTAL_PAGE_NUMBER 0xF5
....@@ -52,8 +28,6 @@
5228 #define WMM_CHIP_A_PAGE_NUM_PUBQ 0xA3
5329 #define WMM_CHIP_A_PAGE_NUM_HPQ 0x29
5430 #define WMM_CHIP_A_PAGE_NUM_LPQ 0x29
55
-
56
-
5731
5832 /* Note: For Chip B Setting ,modify later */
5933 #define WMM_CHIP_B_TX_TOTAL_PAGE_NUMBER 0xF5
....@@ -71,14 +45,14 @@
7145 /* should be renamed and moved to another file */
7246 enum _BOARD_TYPE_8192CUSB {
7347 BOARD_USB_DONGLE = 0, /* USB dongle */
74
- BOARD_USB_High_PA = 1, /* USB dongle - high power PA */
48
+ BOARD_USB_HIGH_PA = 1, /* USB dongle - high power PA */
7549 BOARD_MINICARD = 2, /* Minicard */
7650 BOARD_USB_SOLO = 3, /* USB solo-Slim module */
7751 BOARD_USB_COMBO = 4, /* USB Combo-Slim module */
7852 };
7953
8054 #define IS_HIGHT_PA(boardtype) \
81
- ((boardtype == BOARD_USB_High_PA) ? true : false)
55
+ ((boardtype == BOARD_USB_HIGH_PA) ? true : false)
8256
8357 #define RTL92C_DRIVER_INFO_SIZE 4
8458 void rtl92cu_read_eeprom_info(struct ieee80211_hw *hw);