.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: ISC */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2005-2011 Atheros Communications Inc. |
---|
3 | 4 | * 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. |
---|
16 | 5 | */ |
---|
17 | 6 | |
---|
18 | 7 | #ifndef _RX_DESC_H_ |
---|
.. | .. |
---|
572 | 561 | #define RX_MSDU_END_INFO0_REPORTED_MPDU_LENGTH_LSB 0 |
---|
573 | 562 | #define RX_MSDU_END_INFO0_FIRST_MSDU BIT(14) |
---|
574 | 563 | #define RX_MSDU_END_INFO0_LAST_MSDU BIT(15) |
---|
| 564 | +#define RX_MSDU_END_INFO0_MSDU_LIMIT_ERR BIT(18) |
---|
575 | 565 | #define RX_MSDU_END_INFO0_PRE_DELIM_ERR BIT(30) |
---|
576 | 566 | #define RX_MSDU_END_INFO0_RESERVED_3B BIT(31) |
---|
577 | 567 | |
---|
.. | .. |
---|
675 | 665 | *last_msdu |
---|
676 | 666 | * Indicates the last MSDU of the A-MSDU. MPDU end status is |
---|
677 | 667 | * 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. |
---|
678 | 674 | * |
---|
679 | 675 | *reserved_3a |
---|
680 | 676 | * Reserved: HW should fill with zero. FW should ignore. |
---|
.. | .. |
---|
1277 | 1273 | u8 info0; |
---|
1278 | 1274 | } __packed; |
---|
1279 | 1275 | |
---|
| 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 | + |
---|
1280 | 1303 | #endif /* _RX_DESC_H_ */ |
---|