Map regs using sizeof(struct lereg1) instead of OBIO_AMD_ETHER_SIZE.

Also fix copyright (s/REGENTS/FOUNDATION/)
This commit is contained in:
gwr 1997-01-27 16:57:12 +00:00
parent 4618767f94
commit dff67a76a8

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le.c,v 1.34 1996/12/17 21:10:48 gwr Exp $ */
/* $NetBSD: if_le.c,v 1.35 1997/01/27 16:57:12 gwr Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -26,8 +26,8 @@
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
@ -143,7 +143,7 @@ le_attach(parent, self, aux)
struct confargs *ca = aux;
lesc->sc_r1 = (struct lereg1 *)
obio_alloc(ca->ca_paddr, OBIO_AMD_ETHER_SIZE);
obio_alloc(ca->ca_paddr, sizeof(struct lereg1));
sc->sc_memsize = 0x4000; /* 16K */
sc->sc_mem = dvma_malloc(sc->sc_memsize);