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 */
32 u32 receive_watchdog
:1;
36 u32 last_descriptor
:1;
37 u32 first_descriptor
:1;
38 u32 multicast_frame
:1;
41 u32 partial_frame_error
:1;
42 u32 descriptor_error
:1;
51 u32 second_address_chained
:1;
58 u32 payload_csum_error
:1;
62 u32 receive_watchdog
:1;
66 u32 last_descriptor
:1;
67 u32 first_descriptor
:1;
72 u32 descriptor_error
:1;
80 u32 second_address_chained
:1;
85 } erx
; /* -- enhanced -- */
87 /* Transmit descriptor */
91 u32 underflow_error
:1;
92 u32 excessive_deferral
:1;
93 u32 collision_count
:4;
95 u32 excessive_collisions
:1;
107 u32 disable_padding
:1;
108 u32 second_address_chained
:1;
119 u32 underflow_error
:1;
120 u32 excessive_deferral
:1;
121 u32 collision_count
:4;
123 u32 excessive_collisions
:1;
124 u32 late_collision
:1;
129 u32 jabber_timeout
:1;
131 u32 ip_header_error
:1;
132 u32 time_stamp_status
:1;
134 u32 second_address_chained
:1;
136 u32 checksum_insertion
:2;
138 u32 time_stamp_enable
:1;
139 u32 disable_padding
:1;
150 } etx
; /* -- enhanced -- */
156 /* Transmit checksum insertion control */
157 enum tdes_csum_insertion
{
158 cic_disabled
= 0, /* Checksum Insertion Control */
159 cic_only_ip
= 1, /* Only IP header */
160 cic_no_pseudoheader
= 2, /* IP header but pseudoheader
161 * is not calculated */
162 cic_full
= 3, /* IP header and pseudoheader */