diff options
author | briggs <briggs@cvs.openbsd.org> | 1997-03-25 04:58:45 +0000 |
---|---|---|
committer | briggs <briggs@cvs.openbsd.org> | 1997-03-25 04:58:45 +0000 |
commit | ff601538823d8374e681ea2611cee72e660cfe9b (patch) | |
tree | 529904feef6f3c020f08235cf0023f6a5c4d011b /sys/arch/mac68k/dev/if_ae.c | |
parent | 1ee212baf2943325ab5e7d5ac1e100c46a802527 (diff) |
From scottr@netbsd.org:
Several more changes to move us toward MI-ness:
- Use more consistent and portable types in the softc.
- Map registers using an array of bus_size_t offsets, and set up the
mapping in the attach code (thanks to Jason Thorpe for suggesting
this!).
- Disable the ae-specific watchdog, which is no longer necessary in
the general case.
Still remaining: split out functions used to copy data to/from the
card, and retain a way to have a local driver name with the MI code.
Diffstat (limited to 'sys/arch/mac68k/dev/if_ae.c')
-rw-r--r-- | sys/arch/mac68k/dev/if_ae.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c index 4e7766bc0ad..c465815e18b 100644 --- a/sys/arch/mac68k/dev/if_ae.c +++ b/sys/arch/mac68k/dev/if_ae.c @@ -1,5 +1,5 @@ -/* $OpenBSD: if_ae.c,v 1.10 1997/03/08 16:16:52 briggs Exp $ */ -/* $NetBSD: if_ae.c,v 1.57 1997/03/04 15:12:04 scottr Exp $ */ +/* $OpenBSD: if_ae.c,v 1.11 1997/03/25 04:58:43 briggs Exp $ */ +/* $NetBSD: if_ae.c,v 1.60 1997/03/19 08:04:38 scottr Exp $ */ /* * Device driver for National Semiconductor DS8390/WD83C690 based ethernet @@ -12,9 +12,6 @@ * the above copyright and these terms are retained. Under no circumstances is * the author responsible for the proper functioning of this software, nor does * the author assume any responsibility for damages incurred with its use. - * - * Adapted for MacBSD by Brad Parker <brad@fcr.com>. - * */ #include "bpfilter.h" @@ -66,13 +63,12 @@ static inline int ae_ring_copy __P(( struct ae_softc *, int, caddr_t, int)); #define ETHER_ADDR_LEN 6 -#define REG_MAP(sc, reg) ((sc)->regs_rev ? (0x0f-(reg))<<2 : (reg)<<2) #define NIC_GET(sc, reg) (bus_space_read_1((sc)->sc_regt, \ (sc)->sc_regh, \ - (REG_MAP(sc, reg)))) + ((sc)->sc_reg_map[reg]))) #define NIC_PUT(sc, reg, val) (bus_space_write_1((sc)->sc_regt, \ (sc)->sc_regh, \ - (REG_MAP(sc, reg)), (val))) + ((sc)->sc_reg_map[reg]), (val))) struct cfdriver ae_cd = { NULL, "ae", DV_IFNET |