| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Header File to describe the DMA descriptors and related definitions specific |
|---|
| 3 | 4 | * for DesignWare databook 4.xx. |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (C) 2015 STMicroelectronics Ltd |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 9 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 10 | 7 | * |
|---|
| 11 | 8 | * Author: Alexandre Torgue <alexandre.torgue@st.com> |
|---|
| 12 | 9 | */ |
|---|
| .. | .. |
|---|
| 21 | 18 | /* TDES2 (read format) */ |
|---|
| 22 | 19 | #define TDES2_BUFFER1_SIZE_MASK GENMASK(13, 0) |
|---|
| 23 | 20 | #define TDES2_VLAN_TAG_MASK GENMASK(15, 14) |
|---|
| 21 | +#define TDES2_VLAN_TAG_SHIFT 14 |
|---|
| 24 | 22 | #define TDES2_BUFFER2_SIZE_MASK GENMASK(29, 16) |
|---|
| 25 | 23 | #define TDES2_BUFFER2_SIZE_MASK_SHIFT 16 |
|---|
| 24 | +#define TDES3_IVTIR_MASK GENMASK(19, 18) |
|---|
| 25 | +#define TDES3_IVTIR_SHIFT 18 |
|---|
| 26 | +#define TDES3_IVLTV BIT(17) |
|---|
| 26 | 27 | #define TDES2_TIMESTAMP_ENABLE BIT(30) |
|---|
| 28 | +#define TDES2_IVT_MASK GENMASK(31, 16) |
|---|
| 29 | +#define TDES2_IVT_SHIFT 16 |
|---|
| 27 | 30 | #define TDES2_INTERRUPT_ON_COMPLETION BIT(31) |
|---|
| 28 | 31 | |
|---|
| 29 | 32 | /* TDES3 (read format) */ |
|---|
| 30 | 33 | #define TDES3_PACKET_SIZE_MASK GENMASK(14, 0) |
|---|
| 34 | +#define TDES3_VLAN_TAG GENMASK(15, 0) |
|---|
| 35 | +#define TDES3_VLTV BIT(16) |
|---|
| 31 | 36 | #define TDES3_CHECKSUM_INSERTION_MASK GENMASK(17, 16) |
|---|
| 32 | 37 | #define TDES3_CHECKSUM_INSERTION_SHIFT 16 |
|---|
| 33 | 38 | #define TDES3_TCP_PKT_PAYLOAD_MASK GENMASK(17, 0) |
|---|
| .. | .. |
|---|
| 35 | 40 | #define TDES3_HDR_LEN_SHIFT 19 |
|---|
| 36 | 41 | #define TDES3_SLOT_NUMBER_MASK GENMASK(22, 19) |
|---|
| 37 | 42 | #define TDES3_SA_INSERT_CTRL_MASK GENMASK(25, 23) |
|---|
| 43 | +#define TDES3_SA_INSERT_CTRL_SHIFT 23 |
|---|
| 38 | 44 | #define TDES3_CRC_PAD_CTRL_MASK GENMASK(27, 26) |
|---|
| 39 | 45 | |
|---|
| 40 | 46 | /* TDES3 (write back format) */ |
|---|
| .. | .. |
|---|
| 66 | 72 | #define TDES3_FIRST_DESCRIPTOR BIT(29) |
|---|
| 67 | 73 | #define TDES3_CONTEXT_TYPE BIT(30) |
|---|
| 68 | 74 | #define TDES3_CONTEXT_TYPE_SHIFT 30 |
|---|
| 75 | + |
|---|
| 76 | +/* TDES4 */ |
|---|
| 77 | +#define TDES4_LTV BIT(31) |
|---|
| 78 | +#define TDES4_LT GENMASK(7, 0) |
|---|
| 79 | + |
|---|
| 80 | +/* TDES5 */ |
|---|
| 81 | +#define TDES5_LT GENMASK(31, 8) |
|---|
| 69 | 82 | |
|---|
| 70 | 83 | /* TDS3 use for both format (read and write back) */ |
|---|
| 71 | 84 | #define TDES3_OWN BIT(31) |
|---|
| .. | .. |
|---|
| 103 | 116 | #define RDES2_L4_FILTER_MATCH BIT(28) |
|---|
| 104 | 117 | #define RDES2_L3_L4_FILT_NB_MATCH_MASK GENMASK(27, 26) |
|---|
| 105 | 118 | #define RDES2_L3_L4_FILT_NB_MATCH_SHIFT 26 |
|---|
| 119 | +#define RDES2_HL GENMASK(9, 0) |
|---|
| 106 | 120 | |
|---|
| 107 | 121 | /* RDES3 (write back format) */ |
|---|
| 108 | 122 | #define RDES3_PACKET_SIZE_MASK GENMASK(14, 0) |
|---|