i82586.h (c1087c13240442926a34afa825b4dd3993868549) i82586.h (b97fc9487396ea5f41fd28ea6266057508425646)
1/*-
2 * Copyright (c) 1992, University of Vermont and State Agricultural College.
3 * Copyright (c) 1992, Garrett A. Wollman.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
1/*-
2 * Copyright (c) 1992, University of Vermont and State Agricultural College.
3 * Copyright (c) 1992, Garrett A. Wollman.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 17 unchanged lines hidden (view full) ---

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $Id: i82586.h,v 1.5 1997/02/22 09:38:02 peter Exp $
34 * $Id: i82586.h,v 1.6 1998/04/15 17:45:58 bde Exp $
35 */
36
37/*
38 * Intel 82586 Ethernet chip
39 * Register, bit, and structure definitions.
40 *
41 * Written by GAW with reference to the Clarkson Packet Driver code for this
42 * chip written by Russ Nelson and others.

--- 263 unchanged lines hidden (view full) ---

306 cmd->ie_promisc = !!promiscuous | manchester << 2;
307 cmd->ie_crs_cdt = 0;
308 cmd->ie_min_len = 64;
309 cmd->ie_junk = 0xff;
310}
311
312static __inline caddr_t
313Align(caddr_t ptr) {
35 */
36
37/*
38 * Intel 82586 Ethernet chip
39 * Register, bit, and structure definitions.
40 *
41 * Written by GAW with reference to the Clarkson Packet Driver code for this
42 * chip written by Russ Nelson and others.

--- 263 unchanged lines hidden (view full) ---

306 cmd->ie_promisc = !!promiscuous | manchester << 2;
307 cmd->ie_crs_cdt = 0;
308 cmd->ie_min_len = 64;
309 cmd->ie_junk = 0xff;
310}
311
312static __inline caddr_t
313Align(caddr_t ptr) {
314 unsigned long l = (unsigned long)ptr;
314 uintptr_t l = (uintptr_t)ptr;
315 l = (l + 3) & ~3L;
316 return (caddr_t)l;
317}
318
319static __inline void
320ie_ack(volatile struct ie_sys_ctl_block *scb,
321 u_int mask, int unit,
322 void (*ca)(int)) {
323 scb->ie_command = scb->ie_status & mask;
324 (*ca)(unit);
325}
315 l = (l + 3) & ~3L;
316 return (caddr_t)l;
317}
318
319static __inline void
320ie_ack(volatile struct ie_sys_ctl_block *scb,
321 u_int mask, int unit,
322 void (*ca)(int)) {
323 scb->ie_command = scb->ie_status & mask;
324 (*ca)(unit);
325}