Resolve bus_space_write_region_2() type mismatches.
This commit is contained in:
parent
cf4c03c65c
commit
ff2130346c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_ae.c,v 1.69 2000/09/13 05:16:47 scottr Exp $ */
|
||||
/* $NetBSD: if_ae.c,v 1.70 2000/09/13 05:21:16 scottr Exp $ */
|
||||
|
||||
/*
|
||||
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
|
||||
@ -127,7 +127,7 @@ ae_write_mbuf(sc, m, buf)
|
||||
if (wantbyte) {
|
||||
savebyte[1] = *data;
|
||||
bus_space_write_region_2(sc->sc_buft,
|
||||
sc->sc_bufh, buf, savebyte, 1);
|
||||
sc->sc_bufh, buf, (u_int16_t *)savebyte, 1);
|
||||
buf += 2;
|
||||
data++;
|
||||
len--;
|
||||
@ -135,8 +135,9 @@ ae_write_mbuf(sc, m, buf)
|
||||
}
|
||||
/* Output contiguous words. */
|
||||
if (len > 1) {
|
||||
bus_space_write_region_2(sc->sc_buft,
|
||||
sc->sc_bufh, buf, data, len >> 1);
|
||||
bus_space_write_region_2(
|
||||
sc->sc_buft, sc->sc_bufh,
|
||||
buf, (u_int16_t *)data, len >> 1);
|
||||
buf += len & ~1;
|
||||
data += len & ~1;
|
||||
len &= 1;
|
||||
@ -152,7 +153,7 @@ ae_write_mbuf(sc, m, buf)
|
||||
if (wantbyte) {
|
||||
savebyte[1] = 0;
|
||||
bus_space_write_region_2(sc->sc_buft, sc->sc_bufh,
|
||||
buf, savebyte, 1);
|
||||
buf, (u_int16_t *)savebyte, 1);
|
||||
}
|
||||
return (totlen);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user