diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-08-11 06:09:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-08-11 06:09:33 +0000 |
commit | 47f3e824c6c75c66bc3efe5350448a877667536a (patch) | |
tree | 62899fed3a4e4bbce32dbdb9f28740e0ed0e1454 /sys/arch/luna88k/dev | |
parent | ee61f16582871d17090b7317b0d7e6a83737ac70 (diff) |
Use bus_space_*_multi_*() when applicable; from NetBSD.
tested by aoyama@
Diffstat (limited to 'sys/arch/luna88k/dev')
-rw-r--r-- | sys/arch/luna88k/dev/mb89352.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/luna88k/dev/mb89352.c b/sys/arch/luna88k/dev/mb89352.c index 955df282cff..91cafd276c0 100644 --- a/sys/arch/luna88k/dev/mb89352.c +++ b/sys/arch/luna88k/dev/mb89352.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mb89352.c,v 1.3 2004/08/06 18:54:57 miod Exp $ */ +/* $OpenBSD: mb89352.c,v 1.4 2004/08/11 06:09:32 miod Exp $ */ /* $NetBSD: mb89352.c,v 1.5 2000/03/23 07:01:31 thorpej Exp $ */ /* NecBSD: mb89352.c,v 1.4 1998/03/14 07:31:20 kmatsuda Exp */ @@ -1428,9 +1428,8 @@ spc_dataout_pio(sc, p, n) n -= xfer; out += xfer; - - while (xfer-- > 0) - bus_space_write_1(iot, ioh, DREG, *p++); + bus_space_write_multi_1(iot, ioh, DREG, p, xfer); + p += xfer; } if (out == 0) { @@ -1547,9 +1546,8 @@ spc_datain_pio(sc, p, n) n -= xfer; in += xfer; - - while (xfer-- > 0) - *p++ = bus_space_read_1(iot, ioh, DREG); + bus_space_read_multi_1(iot, ioh, DREG, p, xfer); + p += xfer; if (intstat != 0) goto phasechange; |