Use sizeof(struct ieob) instead of a sun3-specific macro,

so this driver will work on the sun3x as well.  (Works!)
This commit is contained in:
gwr 1997-10-07 18:17:19 +00:00
parent 2240a5aa56
commit c9d8d6ae1d
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie_obio.c,v 1.10 1997/04/28 21:59:19 gwr Exp $ */
/* $NetBSD: if_ie_obio.c,v 1.11 1997/10/07 18:17:19 gwr Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -130,7 +130,7 @@ ie_obio_attach(parent, self, args)
sc->sc_msize = 0x8000; /* MEMSIZE 32K */
/* Map in the control registers. */
sc->sc_reg = obio_mapin(ca->ca_paddr, OBIO_INTEL_ETHER_SIZE);
sc->sc_reg = obio_mapin(ca->ca_paddr, sizeof(struct ieob));
/* Allocate "shared" memory (in DVMA space). */
sc->sc_maddr = dvma_malloc(sc->sc_msize);