From 47f3e824c6c75c66bc3efe5350448a877667536a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 11 Aug 2004 06:09:33 +0000 Subject: Use bus_space_*_multi_*() when applicable; from NetBSD. tested by aoyama@ --- sys/arch/luna88k/dev/mb89352.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'sys/arch/luna88k/dev') 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; -- cgit v1.2.3