i82586.h (b97fc9487396ea5f41fd28ea6266057508425646) i82586.h (c151de316aced0f13ea3282ece3f240b3c8096d7)
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.6 1998/04/15 17:45:58 bde Exp $
34 * $Id: i82586.h,v 1.7 1998/08/10 17:21:48 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.

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

304 cmd->ie_slot_low = 0;
305 cmd->ie_slot_high = 0xf2;
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
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.

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

304 cmd->ie_slot_low = 0;
305 cmd->ie_slot_high = 0xf2;
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) {
312static __inline void *
313Align(void *ptr) {
314 uintptr_t l = (uintptr_t)ptr;
315 l = (l + 3) & ~3L;
314 uintptr_t l = (uintptr_t)ptr;
315 l = (l + 3) & ~3L;
316 return (caddr_t)l;
316 return (void *)l;
317}
318
317}
318
319static __inline volatile void *
320Alignvol(volatile void *ptr) {
321 uintptr_t l = (uintptr_t)ptr;
322 l = (l + 3) & ~3L;
323 return (volatile void *)l;
324}
325
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}
326static __inline void
327ie_ack(volatile struct ie_sys_ctl_block *scb,
328 u_int mask, int unit,
329 void (*ca)(int)) {
330 scb->ie_command = scb->ie_status & mask;
331 (*ca)(unit);
332}