forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/wireless/ath/ath10k/rx_desc.h
....@@ -1,18 +1,7 @@
1
+/* SPDX-License-Identifier: ISC */
12 /*
23 * Copyright (c) 2005-2011 Atheros Communications Inc.
34 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
4
- *
5
- * Permission to use, copy, modify, and/or distribute this software for any
6
- * purpose with or without fee is hereby granted, provided that the above
7
- * copyright notice and this permission notice appear in all copies.
8
- *
9
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
165 */
176
187 #ifndef _RX_DESC_H_
....@@ -572,6 +561,7 @@
572561 #define RX_MSDU_END_INFO0_REPORTED_MPDU_LENGTH_LSB 0
573562 #define RX_MSDU_END_INFO0_FIRST_MSDU BIT(14)
574563 #define RX_MSDU_END_INFO0_LAST_MSDU BIT(15)
564
+#define RX_MSDU_END_INFO0_MSDU_LIMIT_ERR BIT(18)
575565 #define RX_MSDU_END_INFO0_PRE_DELIM_ERR BIT(30)
576566 #define RX_MSDU_END_INFO0_RESERVED_3B BIT(31)
577567
....@@ -675,6 +665,12 @@
675665 *last_msdu
676666 * Indicates the last MSDU of the A-MSDU. MPDU end status is
677667 * only valid when last_msdu is set.
668
+ *
669
+ *msdu_limit_error
670
+ * Indicates that the MSDU threshold was exceeded and thus
671
+ * all the rest of the MSDUs will not be scattered and
672
+ * will not be decapsulated but will be received in RAW format
673
+ * as a single MSDU buffer.
678674 *
679675 *reserved_3a
680676 * Reserved: HW should fill with zero. FW should ignore.
....@@ -1277,4 +1273,31 @@
12771273 u8 info0;
12781274 } __packed;
12791275
1276
+#define FW_RX_DESC_FLAGS_FIRST_MSDU (1 << 0)
1277
+#define FW_RX_DESC_FLAGS_LAST_MSDU (1 << 1)
1278
+#define FW_RX_DESC_C3_FAILED (1 << 2)
1279
+#define FW_RX_DESC_C4_FAILED (1 << 3)
1280
+#define FW_RX_DESC_IPV6 (1 << 4)
1281
+#define FW_RX_DESC_TCP (1 << 5)
1282
+#define FW_RX_DESC_UDP (1 << 6)
1283
+
1284
+struct fw_rx_desc_hl {
1285
+ union {
1286
+ struct {
1287
+ u8 discard:1,
1288
+ forward:1,
1289
+ any_err:1,
1290
+ dup_err:1,
1291
+ reserved:1,
1292
+ inspect:1,
1293
+ extension:2;
1294
+ } bits;
1295
+ u8 info0;
1296
+ } u;
1297
+
1298
+ u8 version;
1299
+ u8 len;
1300
+ u8 flags;
1301
+} __packed;
1302
+
12801303 #endif /* _RX_DESC_H_ */