diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-09-28 04:37:34 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-09-28 04:37:34 +0000 |
commit | 267950b8c179932ae962ef12a5b948859960053f (patch) | |
tree | af66f872e0cb4a4d7847459627081f69a1a11cea /sys/dev/ic/am7990.c | |
parent | 3c36291f48c6d2b38db39aeed2692314031f8214 (diff) |
Use ETHER_MAX_DIX_LEN/ETHER_MIN_LEN
Diffstat (limited to 'sys/dev/ic/am7990.c')
-rw-r--r-- | sys/dev/ic/am7990.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/am7990.c b/sys/dev/ic/am7990.c index 2202dc534df..4e948402d75 100644 --- a/sys/dev/ic/am7990.c +++ b/sys/dev/ic/am7990.c @@ -1,4 +1,4 @@ -/* $OpenBSD: am7990.c,v 1.35 2004/06/01 12:58:51 mcbride Exp $ */ +/* $OpenBSD: am7990.c,v 1.36 2004/09/28 04:37:32 brad Exp $ */ /* $NetBSD: am7990.c,v 1.22 1996/10/13 01:37:19 christos Exp $ */ /*- @@ -198,9 +198,9 @@ am7990_config(sc) sc->sc_tmdaddr = mem; mem += sizeof(struct letmd) * sc->sc_ntbuf; sc->sc_rbufaddr = mem; - mem += LEBLEN * sc->sc_nrbuf; + mem += ETHER_MAX_DIX_LEN * sc->sc_nrbuf; sc->sc_tbufaddr = mem; - mem += LEBLEN * sc->sc_ntbuf; + mem += ETHER_MAX_DIX_LEN * sc->sc_ntbuf; #ifdef notyet if (mem > ...) panic(...); @@ -266,7 +266,7 @@ am7990_meminit(sc) rmd.rmd0 = a; rmd.rmd1_hadr = a >> 16; rmd.rmd1_bits = LE_R1_OWN; - rmd.rmd2 = -LEBLEN | LE_XMD2_ONES; + rmd.rmd2 = -ETHER_MAX_DIX_LEN | LE_XMD2_ONES; rmd.rmd3 = 0; (*sc->sc_copytodesc)(sc, &rmd, LE_RMDADDR(sc, bix), sizeof(rmd)); @@ -549,7 +549,7 @@ am7990_rint(sc) } rmd.rmd1_bits = LE_R1_OWN; - rmd.rmd2 = -LEBLEN | LE_XMD2_ONES; + rmd.rmd2 = -ETHER_MAX_DIX_LEN | LE_XMD2_ONES; rmd.rmd3 = 0; (*sc->sc_copytodesc)(sc, &rmd, rp, sizeof(rmd)); |