forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/def.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_DEF_H__
275 #define __RTL8821AE_DEF_H__
....@@ -128,37 +106,6 @@
128106 #define RX_CMD_QUEUE 1
129107
130108 #define MAX_RX_DMA_BUFFER_SIZE_8812 0x3E80
131
-
132
-#define C2H_RX_CMD_HDR_LEN 8
133
-#define GET_C2H_CMD_CMD_LEN(__prxhdr) \
134
- LE_BITS_TO_4BYTE((__prxhdr), 0, 16)
135
-#define GET_C2H_CMD_ELEMENT_ID(__prxhdr) \
136
- LE_BITS_TO_4BYTE((__prxhdr), 16, 8)
137
-#define GET_C2H_CMD_CMD_SEQ(__prxhdr) \
138
- LE_BITS_TO_4BYTE((__prxhdr), 24, 7)
139
-#define GET_C2H_CMD_CONTINUE(__prxhdr) \
140
- LE_BITS_TO_4BYTE((__prxhdr), 31, 1)
141
-#define GET_C2H_CMD_CONTENT(__prxhdr) \
142
- ((u8 *)(__prxhdr) + C2H_RX_CMD_HDR_LEN)
143
-
144
-#define GET_C2H_CMD_FEEDBACK_ELEMENT_ID(__pcmdfbhdr) \
145
- LE_BITS_TO_4BYTE((__pcmdfbhdr), 0, 8)
146
-#define GET_C2H_CMD_FEEDBACK_CCX_LEN(__pcmdfbhdr) \
147
- LE_BITS_TO_4BYTE((__pcmdfbhdr), 8, 8)
148
-#define GET_C2H_CMD_FEEDBACK_CCX_CMD_CNT(__pcmdfbhdr) \
149
- LE_BITS_TO_4BYTE((__pcmdfbhdr), 16, 16)
150
-#define GET_C2H_CMD_FEEDBACK_CCX_MAC_ID(__pcmdfbhdr) \
151
- LE_BITS_TO_4BYTE(((__pcmdfbhdr) + 4), 0, 5)
152
-#define GET_C2H_CMD_FEEDBACK_CCX_VALID(__pcmdfbhdr) \
153
- LE_BITS_TO_4BYTE(((__pcmdfbhdr) + 4), 7, 1)
154
-#define GET_C2H_CMD_FEEDBACK_CCX_RETRY_CNT(__pcmdfbhdr) \
155
- LE_BITS_TO_4BYTE(((__pcmdfbhdr) + 4), 8, 5)
156
-#define GET_C2H_CMD_FEEDBACK_CCX_TOK(__pcmdfbhdr) \
157
- LE_BITS_TO_4BYTE(((__pcmdfbhdr) + 4), 15, 1)
158
-#define GET_C2H_CMD_FEEDBACK_CCX_QSEL(__pcmdfbhdr) \
159
- LE_BITS_TO_4BYTE(((__pcmdfbhdr) + 4), 16, 4)
160
-#define GET_C2H_CMD_FEEDBACK_CCX_SEQ(__pcmdfbhdr) \
161
- LE_BITS_TO_4BYTE(((__pcmdfbhdr) + 4), 20, 12)
162109
163110 #define CHIP_BONDING_IDENTIFIER(_value) (((_value)>>22)&0x3)
164111