We want bus_space_set_region_2(), not _1() here.

This commit is contained in:
bouyer 2003-01-22 21:47:47 +00:00
parent 8065f1dfa1
commit 1c91f1dcd4
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ae.c,v 1.73 2003/01/21 07:12:54 jdolecek Exp $ */
/* $NetBSD: if_ae.c,v 1.74 2003/01/22 21:47:47 bouyer Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -176,7 +176,7 @@ ae_write_mbuf(sc, m, buf)
buf += 2;
}
if (totlen < ETHER_MIN_LEN - ETHER_CRC_LEN) {
bus_space_set_region_1(sc->sc_buft, sc->sc_bufh, buf, 0,
bus_space_set_region_2(sc->sc_buft, sc->sc_bufh, buf, 0,
(ETHER_MIN_LEN - ETHER_CRC_LEN - totlen) >> 1);
totlen = ETHER_MIN_LEN - ETHER_CRC_LEN;
}