bereg.h revision 1.10 1 1.10 andvar /* $NetBSD: bereg.h,v 1.10 2021/12/12 13:05:14 andvar Exp $ */
2 1.1 pk
3 1.1 pk /*-
4 1.1 pk * Copyright (c) 1999 The NetBSD Foundation, Inc.
5 1.1 pk * All rights reserved.
6 1.1 pk *
7 1.1 pk * This code is derived from software contributed to The NetBSD Foundation
8 1.1 pk * by Paul Kranenburg.
9 1.1 pk *
10 1.1 pk * Redistribution and use in source and binary forms, with or without
11 1.1 pk * modification, are permitted provided that the following conditions
12 1.1 pk * are met:
13 1.1 pk * 1. Redistributions of source code must retain the above copyright
14 1.1 pk * notice, this list of conditions and the following disclaimer.
15 1.1 pk * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 pk * notice, this list of conditions and the following disclaimer in the
17 1.1 pk * documentation and/or other materials provided with the distribution.
18 1.1 pk *
19 1.1 pk * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.1 pk * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.1 pk * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.1 pk * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.1 pk * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.1 pk * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.1 pk * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.1 pk * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.1 pk * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.1 pk * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.1 pk * POSSIBILITY OF SUCH DAMAGE.
30 1.1 pk */
31 1.1 pk
32 1.1 pk /*
33 1.1 pk * Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
34 1.1 pk * All rights reserved.
35 1.1 pk *
36 1.1 pk * Redistribution and use in source and binary forms, with or without
37 1.1 pk * modification, are permitted provided that the following conditions
38 1.1 pk * are met:
39 1.1 pk * 1. Redistributions of source code must retain the above copyright
40 1.1 pk * notice, this list of conditions and the following disclaimer.
41 1.1 pk * 2. Redistributions in binary form must reproduce the above copyright
42 1.1 pk * notice, this list of conditions and the following disclaimer in the
43 1.1 pk * documentation and/or other materials provided with the distribution.
44 1.1 pk * 3. The name of the authors may not be used to endorse or promote products
45 1.1 pk * derived from this software without specific prior written permission.
46 1.1 pk *
47 1.1 pk * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
48 1.1 pk * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
49 1.1 pk * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
50 1.1 pk * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
51 1.1 pk * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
52 1.1 pk * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
53 1.1 pk * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
54 1.1 pk * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
55 1.1 pk * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
56 1.1 pk * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
57 1.1 pk */
58 1.1 pk
59 1.1 pk /*
60 1.1 pk * BE Global registers
61 1.4 mycroft */
62 1.4 mycroft #if 0
63 1.1 pk struct be_bregs {
64 1.9 tsutsui uint32_t xif_cfg; /* XIF config */
65 1.9 tsutsui uint32_t _unused[63]; /* reserved */
66 1.9 tsutsui uint32_t stat; /* status, clear on read */
67 1.9 tsutsui uint32_t imask; /* interrupt mask */
68 1.9 tsutsui uint32_t _unused2[64]; /* reserved */
69 1.9 tsutsui uint32_t tx_swreset; /* tx software reset */
70 1.9 tsutsui uint32_t tx_cfg; /* tx config */
71 1.9 tsutsui uint32_t ipkt_gap1; /* inter-packet gap 1 */
72 1.9 tsutsui uint32_t ipkt_gap2; /* inter-packet gap 2 */
73 1.9 tsutsui uint32_t attempt_limit; /* tx attempt limit */
74 1.9 tsutsui uint32_t stime; /* tx slot time */
75 1.9 tsutsui uint32_t preamble_len; /* size of tx preamble */
76 1.9 tsutsui uint32_t preamble_pattern; /* pattern for tx preamble */
77 1.9 tsutsui uint32_t tx_sframe_delim; /* tx delimiter */
78 1.9 tsutsui uint32_t jsize; /* jam length */
79 1.9 tsutsui uint32_t tx_pkt_max; /* tx max pkt size */
80 1.9 tsutsui uint32_t tx_pkt_min; /* tx min pkt size */
81 1.9 tsutsui uint32_t peak_attempt; /* count of tx peak attempts */
82 1.9 tsutsui uint32_t dt_ctr; /* tx defer timer */
83 1.9 tsutsui uint32_t nc_ctr; /* tx normal collision cntr */
84 1.9 tsutsui uint32_t fc_ctr; /* tx first-collision cntr */
85 1.9 tsutsui uint32_t ex_ctr; /* tx excess-collision cntr */
86 1.9 tsutsui uint32_t lt_ctr; /* tx late-collision cntr */
87 1.9 tsutsui uint32_t rand_seed; /* tx random number seed */
88 1.9 tsutsui uint32_t tx_smachine; /* tx state machine */
89 1.9 tsutsui uint32_t _unused3[44]; /* reserved */
90 1.9 tsutsui uint32_t rx_swreset; /* rx software reset */
91 1.9 tsutsui uint32_t rx_cfg; /* rx config register */
92 1.9 tsutsui uint32_t rx_pkt_max; /* rx max pkt size */
93 1.9 tsutsui uint32_t rx_pkt_min; /* rx min pkt size */
94 1.9 tsutsui uint32_t mac_addr2; /* ethernet address 2 (MSB) */
95 1.9 tsutsui uint32_t mac_addr1; /* ethernet address 1 */
96 1.9 tsutsui uint32_t mac_addr0; /* ethernet address 0 (LSB) */
97 1.9 tsutsui uint32_t fr_ctr; /* rx frame receive cntr */
98 1.9 tsutsui uint32_t gle_ctr; /* rx giant-len error cntr */
99 1.9 tsutsui uint32_t unale_ctr; /* rx unaligned error cntr */
100 1.9 tsutsui uint32_t rcrce_ctr; /* rx CRC error cntr */
101 1.9 tsutsui uint32_t rx_smachine; /* rx state machine */
102 1.9 tsutsui uint32_t rx_cvalid; /* rx code violation */
103 1.9 tsutsui uint32_t _unused4; /* reserved */
104 1.9 tsutsui uint32_t htable3; /* hash table 3 */
105 1.9 tsutsui uint32_t htable2; /* hash table 2 */
106 1.9 tsutsui uint32_t htable1; /* hash table 1 */
107 1.9 tsutsui uint32_t htable0; /* hash table 0 */
108 1.9 tsutsui uint32_t afilter2; /* address filter 2 */
109 1.9 tsutsui uint32_t afilter1; /* address filter 1 */
110 1.9 tsutsui uint32_t afilter0; /* address filter 0 */
111 1.9 tsutsui uint32_t afilter_mask; /* address filter mask */
112 1.1 pk };
113 1.4 mycroft #endif
114 1.4 mycroft /* register indices: */
115 1.1 pk #define BE_BRI_XIFCFG (0*4)
116 1.1 pk #define BE_BRI_STAT (64*4)
117 1.1 pk #define BE_BRI_IMASK (65*4)
118 1.1 pk #define BE_BRI_TXCFG (131*4)
119 1.1 pk #define BE_BRI_JSIZE (139*4)
120 1.6 pk #define BE_BRI_TXMAX (140*4)
121 1.6 pk #define BE_BRI_TXMIN (141*4)
122 1.1 pk #define BE_BRI_NCCNT (144*4)
123 1.1 pk #define BE_BRI_FCCNT (145*4)
124 1.1 pk #define BE_BRI_EXCNT (146*4)
125 1.1 pk #define BE_BRI_LTCNT (147*4)
126 1.1 pk #define BE_BRI_RANDSEED (148*4)
127 1.1 pk #define BE_BRI_RXCFG (195*4)
128 1.6 pk #define BE_BRI_RXMAX (196*4)
129 1.6 pk #define BE_BRI_RXMIN (197*4)
130 1.1 pk #define BE_BRI_MACADDR2 (198*4)
131 1.1 pk #define BE_BRI_MACADDR1 (199*4)
132 1.1 pk #define BE_BRI_MACADDR0 (200*4)
133 1.1 pk #define BE_BRI_HASHTAB3 (208*4)
134 1.1 pk #define BE_BRI_HASHTAB2 (209*4)
135 1.1 pk #define BE_BRI_HASHTAB1 (210*4)
136 1.1 pk #define BE_BRI_HASHTAB0 (211*4)
137 1.1 pk
138 1.1 pk /* be_bregs.xif_cfg: XIF config. */
139 1.1 pk #define BE_BR_XCFG_ODENABLE 0x00000001 /* output driver enable */
140 1.1 pk #define BE_BR_XCFG_RESV 0x00000002 /* reserved, write as 1 */
141 1.1 pk #define BE_BR_XCFG_MLBACK 0x00000004 /* loopback-mode mii enable */
142 1.1 pk #define BE_BR_XCFG_SMODE 0x00000008 /* enable serial mode */
143 1.1 pk
144 1.1 pk /* be_bregs.stat: status, clear on read. */
145 1.1 pk #define BE_BR_STAT_GOTFRAME 0x00000001 /* received a frame */
146 1.1 pk #define BE_BR_STAT_RCNTEXP 0x00000002 /* rx frame cntr expired */
147 1.1 pk #define BE_BR_STAT_ACNTEXP 0x00000004 /* align-error cntr expired */
148 1.1 pk #define BE_BR_STAT_CCNTEXP 0x00000008 /* crc-error cntr expired */
149 1.1 pk #define BE_BR_STAT_LCNTEXP 0x00000010 /* length-error cntr expired */
150 1.1 pk #define BE_BR_STAT_RFIFOVF 0x00000020 /* rx fifo overflow */
151 1.1 pk #define BE_BR_STAT_CVCNTEXP 0x00000040 /* code-violation cntr exprd */
152 1.1 pk #define BE_BR_STAT_SENTFRAME 0x00000100 /* transmitted a frame */
153 1.1 pk #define BE_BR_STAT_TFIFO_UND 0x00000200 /* tx fifo underrun */
154 1.1 pk #define BE_BR_STAT_MAXPKTERR 0x00000400 /* max-packet size error */
155 1.1 pk #define BE_BR_STAT_NCNTEXP 0x00000800 /* normal-collision cntr exp */
156 1.1 pk #define BE_BR_STAT_ECNTEXP 0x00001000 /* excess-collision cntr exp */
157 1.1 pk #define BE_BR_STAT_LCCNTEXP 0x00002000 /* late-collision cntr exp */
158 1.1 pk #define BE_BR_STAT_FCNTEXP 0x00004000 /* first-collision cntr exp */
159 1.1 pk #define BE_BR_STAT_DTIMEXP 0x00008000 /* defer-timer expired */
160 1.2 pk #define BE_BR_STAT_BITS "\177\020" \
161 1.2 pk "b\0GOTFRAME\0b\1RCNTEXP\0b\2ACNTEXP\0" \
162 1.2 pk "b\3CCNTEXP\0b\5LCNTEXP\0b\6RFIFOVF\0" \
163 1.2 pk "b\7CVCNTEXP\0b\10SENTFRAME\0b\11TFIFO_UND\0" \
164 1.2 pk "b\12MAXPKTERR\0b\13NCNTEXP\0b\14ECNTEXP\0" \
165 1.2 pk "b\15LCCNTEXP\0b\16FCNTEXP\0b\17DTIMEXP\0\0"
166 1.1 pk
167 1.1 pk /* be_bregs.imask: interrupt mask. */
168 1.1 pk #define BE_BR_IMASK_GOTFRAME 0x00000001 /* received a frame */
169 1.1 pk #define BE_BR_IMASK_RCNTEXP 0x00000002 /* rx frame cntr expired */
170 1.1 pk #define BE_BR_IMASK_ACNTEXP 0x00000004 /* align-error cntr expired */
171 1.1 pk #define BE_BR_IMASK_CCNTEXP 0x00000008 /* crc-error cntr expired */
172 1.1 pk #define BE_BR_IMASK_LCNTEXP 0x00000010 /* length-error cntr expired */
173 1.1 pk #define BE_BR_IMASK_RFIFOVF 0x00000020 /* rx fifo overflow */
174 1.1 pk #define BE_BR_IMASK_CVCNTEXP 0x00000040 /* code-violation cntr exprd */
175 1.1 pk #define BE_BR_IMASK_SENTFRAME 0x00000100 /* transmitted a frame */
176 1.1 pk #define BE_BR_IMASK_TFIFO_UND 0x00000200 /* tx fifo underrun */
177 1.1 pk #define BE_BR_IMASK_MAXPKTERR 0x00000400 /* max-packet size error */
178 1.1 pk #define BE_BR_IMASK_NCNTEXP 0x00000800 /* normal-collision cntr exp */
179 1.1 pk #define BE_BR_IMASK_ECNTEXP 0x00001000 /* excess-collision cntr exp */
180 1.1 pk #define BE_BR_IMASK_LCCNTEXP 0x00002000 /* late-collision cntr exp */
181 1.1 pk #define BE_BR_IMASK_FCNTEXP 0x00004000 /* first-collision cntr exp */
182 1.1 pk #define BE_BR_IMASK_DTIMEXP 0x00008000 /* defer-timer expired */
183 1.1 pk
184 1.1 pk /* be_bregs.tx_cfg: tx config. */
185 1.1 pk #define BE_BR_TXCFG_ENABLE 0x00000001 /* enable the transmitter */
186 1.1 pk #define BE_BR_TXCFG_FIFO 0x00000010 /* default tx fthresh */
187 1.1 pk #define BE_BR_TXCFG_SMODE 0x00000020 /* enable slow transmit mode */
188 1.1 pk #define BE_BR_TXCFG_CIGN 0x00000040 /* ignore tx collisions */
189 1.1 pk #define BE_BR_TXCFG_FCSOFF 0x00000080 /* do not emit fcs */
190 1.1 pk #define BE_BR_TXCFG_DBACKOFF 0x00000100 /* disable backoff */
191 1.1 pk #define BE_BR_TXCFG_FULLDPLX 0x00000200 /* enable full-duplex */
192 1.1 pk
193 1.1 pk /* be_bregs.rx_cfg: rx config. */
194 1.1 pk #define BE_BR_RXCFG_ENABLE 0x00000001 /* enable the receiver */
195 1.1 pk #define BE_BR_RXCFG_FIFO 0x0000000e /* default rx fthresh */
196 1.1 pk #define BE_BR_RXCFG_PSTRIP 0x00000020 /* pad byte strip enable */
197 1.10 andvar #define BE_BR_RXCFG_PMISC 0x00000040 /* enable promiscuous mode */
198 1.1 pk #define BE_BR_RXCFG_DERR 0x00000080 /* disable error checking */
199 1.1 pk #define BE_BR_RXCFG_DCRCS 0x00000100 /* disable crc stripping */
200 1.1 pk #define BE_BR_RXCFG_ME 0x00000200 /* receive packets for me */
201 1.1 pk #define BE_BR_RXCFG_PGRP 0x00000400 /* enable promisc group mode */
202 1.1 pk #define BE_BR_RXCFG_HENABLE 0x00000800 /* enable hash filter */
203 1.1 pk #define BE_BR_RXCFG_AENABLE 0x00001000 /* enable address filter */
204 1.1 pk
205 1.1 pk /*
206 1.1 pk * BE Channel registers
207 1.4 mycroft */
208 1.4 mycroft #if 0
209 1.1 pk struct be_cregs {
210 1.9 tsutsui uint32_t ctrl; /* control */
211 1.9 tsutsui uint32_t stat; /* status */
212 1.9 tsutsui uint32_t rxds; /* rx descriptor ring ptr */
213 1.9 tsutsui uint32_t txds; /* tx descriptor ring ptr */
214 1.9 tsutsui uint32_t rimask; /* rx interrupt mask */
215 1.9 tsutsui uint32_t timask; /* tx interrupt mask */
216 1.9 tsutsui uint32_t qmask; /* qec error interrupt mask */
217 1.9 tsutsui uint32_t bmask; /* be error interrupt mask */
218 1.9 tsutsui uint32_t rxwbufptr; /* local memory rx write ptr */
219 1.9 tsutsui uint32_t rxrbufptr; /* local memory rx read ptr */
220 1.9 tsutsui uint32_t txwbufptr; /* local memory tx write ptr */
221 1.9 tsutsui uint32_t txrbufptr; /* local memory tx read ptr */
222 1.9 tsutsui uint32_t ccnt; /* collision counter */
223 1.1 pk };
224 1.4 mycroft #endif
225 1.4 mycroft /* register indices: */
226 1.1 pk #define BE_CRI_CTRL (0*4)
227 1.1 pk #define BE_CRI_STAT (1*4)
228 1.1 pk #define BE_CRI_RXDS (2*4)
229 1.1 pk #define BE_CRI_TXDS (3*4)
230 1.1 pk #define BE_CRI_RIMASK (4*4)
231 1.1 pk #define BE_CRI_TIMASK (5*4)
232 1.1 pk #define BE_CRI_QMASK (6*4)
233 1.1 pk #define BE_CRI_BMASK (7*4)
234 1.1 pk #define BE_CRI_RXWBUF (8*4)
235 1.1 pk #define BE_CRI_RXRBUF (9*4)
236 1.1 pk #define BE_CRI_TXWBUF (10*4)
237 1.1 pk #define BE_CRI_TXRBUF (11*4)
238 1.1 pk #define BE_CRI_CCNT (12*4)
239 1.1 pk
240 1.1 pk /* be_cregs.ctrl: control. */
241 1.5 wiz #define BE_CR_CTRL_TWAKEUP 0x00000001 /* tx DMA wakeup */
242 1.1 pk
243 1.1 pk /* be_cregs.stat: status. */
244 1.1 pk #define BE_CR_STAT_BERROR 0x80000000 /* be error */
245 1.1 pk #define BE_CR_STAT_TXIRQ 0x00200000 /* tx interrupt */
246 1.1 pk #define BE_CR_STAT_TXDERR 0x00080000 /* tx descriptor is bad */
247 1.1 pk #define BE_CR_STAT_TXLERR 0x00040000 /* tx late error */
248 1.1 pk #define BE_CR_STAT_TXPERR 0x00020000 /* tx parity error */
249 1.1 pk #define BE_CR_STAT_TXSERR 0x00010000 /* tx sbus error ack */
250 1.1 pk #define BE_CR_STAT_RXIRQ 0x00000020 /* rx interrupt */
251 1.1 pk #define BE_CR_STAT_RXDROP 0x00000010 /* rx packet dropped */
252 1.1 pk #define BE_CR_STAT_RXSMALL 0x00000008 /* rx buffer too small */
253 1.1 pk #define BE_CR_STAT_RXLERR 0x00000004 /* rx late error */
254 1.1 pk #define BE_CR_STAT_RXPERR 0x00000002 /* rx parity error */
255 1.1 pk #define BE_CR_STAT_RXSERR 0x00000001 /* rx sbus error ack */
256 1.1 pk
257 1.1 pk /* be_cregs.qmask: qec error interrupt mask. */
258 1.1 pk #define BE_CR_QMASK_TXDERR 0x00080000 /* tx descriptor is bad */
259 1.1 pk #define BE_CR_QMASK_TXLERR 0x00040000 /* tx late error */
260 1.1 pk #define BE_CR_QMASK_TXPERR 0x00020000 /* tx parity error */
261 1.1 pk #define BE_CR_QMASK_TXSERR 0x00010000 /* tx sbus error ack */
262 1.1 pk #define BE_CR_QMASK_RXDROP 0x00000010 /* rx packet dropped */
263 1.1 pk #define BE_CR_QMASK_RXSMALL 0x00000008 /* rx buffer too small */
264 1.1 pk #define BE_CR_QMASK_RXLERR 0x00000004 /* rx late error */
265 1.1 pk #define BE_CR_QMASK_RXPERR 0x00000002 /* rx parity error */
266 1.1 pk #define BE_CR_QMASK_RXSERR 0x00000001 /* rx sbus error ack */
267 1.1 pk
268 1.1 pk /*
269 1.1 pk * BE Transceiver registers
270 1.4 mycroft */
271 1.4 mycroft #if 0
272 1.1 pk struct be_tregs {
273 1.9 tsutsui uint32_t tcvr_pal; /* transceiver pal */
274 1.9 tsutsui uint32_t mgmt_pal; /* management pal */
275 1.1 pk };
276 1.4 mycroft #endif
277 1.4 mycroft /* register indices: */
278 1.1 pk #define BE_TRI_TCVRPAL 0
279 1.1 pk #define BE_TRI_MGMTPAL 4
280 1.1 pk
281 1.1 pk /* be_tregs.tcvr_pal: transceiver pal */
282 1.1 pk #define TCVR_PAL_SERIAL 0x00000001 /* serial mode enable */
283 1.1 pk #define TCVR_PAL_EXTLBACK 0x00000002 /* external loopback */
284 1.1 pk #define TCVR_PAL_MSENSE 0x00000004 /* media sense */
285 1.1 pk #define TCVR_PAL_LTENABLE 0x00000008 /* link test enable */
286 1.1 pk #define TCVR_PAL_LTSTATUS 0x00000010 /* link test status: p1 only */
287 1.1 pk #define TCVR_PAL_BITS "\177\020" \
288 1.1 pk "b\0SERIAL\0b\1EXTLBACK\0b\2MSENSE\0" \
289 1.1 pk "b\3LTENABLE\0\b4LTSTATUS\0\0"
290 1.1 pk
291 1.1 pk /* be_tregs.mgmt_pal: management pal */
292 1.1 pk #define MGMT_PAL_DCLOCK 0x00000001 /* data clock strobe */
293 1.1 pk #define MGMT_PAL_OENAB 0x00000002 /* output enable */
294 1.1 pk #define MGMT_PAL_MDIO 0x00000004 /* MDIO data/attached */
295 1.1 pk #define MGMT_PAL_EXT_MDIO MGMT_PAL_MDIO /* external mdio */
296 1.3 pk #define MGMT_PAL_EXT_MDIO_SHIFT 2 /* position of ext mdio bit */
297 1.1 pk #define MGMT_PAL_TIMEO 0x00000008 /* tx enable timeout error */
298 1.1 pk #define MGMT_PAL_INT_MDIO MGMT_PAL_TIMEO /* internal mdio */
299 1.3 pk #define MGMT_PAL_INT_MDIO_SHIFT 3 /* position of int mdio bit */
300 1.1 pk #define MGMT_PAL_BITS "\177\020" \
301 1.1 pk "b\0DLCLOCK\0b\1OENAB\0b\2EXT_MDIO\0" \
302 1.1 pk "b\3INT_MDIO\0\0"
303 1.1 pk
304 1.1 pk /* Packet buffer size */
305 1.1 pk #define BE_PKT_BUF_SZ 2048
306 1.1 pk
307 1.1 pk #define MC_POLY_BE 0x04c11db7UL /* mcast crc, big endian */
308 1.1 pk #define MC_POLY_LE 0xedb88320UL /* mcast crc, little endian */
309 1.1 pk
310 1.1 pk /* PHY addresses */
311 1.1 pk #define BE_PHY_EXTERNAL 0
312 1.1 pk #define BE_PHY_INTERNAL 1
313