From 2d632efc89773e9f486e0a4ec448ac21b2e8f48d Mon Sep 17 00:00:00 2001 From: bjh21 Date: Wed, 30 May 2001 00:19:43 +0000 Subject: [PATCH] Start using the blockio functions. This makes raw reads from hcsc 20% faster (is that all?). --- sys/arch/arm26/arm26/bus.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/arch/arm26/arm26/bus.c b/sys/arch/arm26/arm26/bus.c index 1d7ce842adac..fb249127132b 100644 --- a/sys/arch/arm26/arm26/bus.c +++ b/sys/arch/arm26/arm26/bus.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus.c,v 1.4 2001/04/13 14:50:47 bjh21 Exp $ */ +/* $NetBSD: bus.c,v 1.5 2001/05/30 00:19:43 bjh21 Exp $ */ /*- * Copyright (c) 1999, 2000 Ben Harris * All rights reserved. @@ -32,11 +32,13 @@ #include -__RCSID("$NetBSD: bus.c,v 1.4 2001/04/13 14:50:47 bjh21 Exp $"); +__RCSID("$NetBSD: bus.c,v 1.5 2001/05/30 00:19:43 bjh21 Exp $"); #include #include +#include + int bus_space_map(bus_space_tag_t bst, bus_addr_t addr, bus_size_t size, int flags, bus_space_handle_t *bshp) @@ -72,10 +74,8 @@ void bus_space_read_multi_1(bus_space_tag_t bst, bus_space_handle_t bsh, bus_size_t offset, u_int8_t *datap, bus_size_t count) { - int i; - for (i = 0; i < count; i++) - datap[i] = bus_space_read_1(bst, bsh, offset); + read_multi_1(bsh + (offset << bst), datap, count); } void