Start using the blockio functions. This makes raw reads from hcsc 20% faster
(is that all?).
This commit is contained in:
parent
f15491e9d3
commit
2d632efc89
|
@ -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
|
* Copyright (c) 1999, 2000 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
@ -32,11 +32,13 @@
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
__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 <machine/bus.h>
|
#include <machine/bus.h>
|
||||||
#include <machine/memcreg.h>
|
#include <machine/memcreg.h>
|
||||||
|
|
||||||
|
#include <arm/blockio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
bus_space_map(bus_space_tag_t bst, bus_addr_t addr, bus_size_t size,
|
bus_space_map(bus_space_tag_t bst, bus_addr_t addr, bus_size_t size,
|
||||||
int flags, bus_space_handle_t *bshp)
|
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_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)
|
bus_size_t offset, u_int8_t *datap, bus_size_t count)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
read_multi_1(bsh + (offset << bst), datap, count);
|
||||||
datap[i] = bus_space_read_1(bst, bsh, offset);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue