1 /*******************************************************************************
2 Header File to describe the DMA descriptors.
3 Enhanced descriptors have been in case of DWMAC1000 Cores.
5 This program is free software; you can redistribute it and/or modify it
6 under the terms and conditions of the GNU General Public License,
7 version 2, as published by the Free Software Foundation.
9 This program is distributed in the hope 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
14 You should have received a copy of the GNU General Public License along with
15 this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18 The full GNU General Public License is included in this distribution in
19 the file called "COPYING".
21 Author: Giuseppe Cavallaro <peppe.cavallaro@st.com>
22 *******************************************************************************/
24 /* Receive descriptor */
28 u32 payload_csum_error
:1;
32 u32 receive_watchdog
:1;
36 u32 last_descriptor
:1;
37 u32 first_descriptor
:1;
42 u32 descriptor_error
:1;
51 u32 second_address_chained
:1;
59 u32 payload_csum_error
:1;
63 u32 receive_watchdog
:1;
67 u32 last_descriptor
:1;
68 u32 first_descriptor
:1;
73 u32 descriptor_error
:1;
81 u32 second_address_chained
:1;
86 } erx
; /* -- enhanced -- */
88 /* Transmit descriptor */
92 u32 underflow_error
:1;
93 u32 excessive_deferral
:1;
94 u32 collision_count
:4;
96 u32 excessive_collisions
:1;
102 u32 jabber_timeout
:1;
104 u32 ip_header_error
:1;
105 u32 time_stamp_status
:1;
111 u32 time_stamp_enable
:1;
112 u32 disable_padding
:1;
113 u32 second_address_chained
:1;
116 u32 checksum_insertion
:2;
124 u32 underflow_error
:1;
125 u32 excessive_deferral
:1;
126 u32 collision_count
:4;
128 u32 excessive_collisions
:1;
129 u32 late_collision
:1;
134 u32 jabber_timeout
:1;
136 u32 ip_header_error
:1;
137 u32 time_stamp_status
:1;
139 u32 second_address_chained
:1;
141 u32 checksum_insertion
:2;
143 u32 time_stamp_enable
:1;
144 u32 disable_padding
:1;
155 } etx
; /* -- enhanced -- */
161 /* Transmit checksum insertion control */
162 enum tdes_csum_insertion
{
163 cic_disabled
= 0, /* Checksum Insertion Control */
164 cic_only_ip
= 1, /* Only IP header */
165 cic_no_pseudoheader
= 2, /* IP header but pseudoheader
166 * is not calculated */
167 cic_full
= 3, /* IP header and pseudoheader */