From 3d980d660d66d8a1afa0187a20f482217378a380 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 23 Aug 2001 14:24:59 +0000 Subject: fix args in stream -> raw conversion. I just love the knights who say NiH! --- sys/arch/sparc64/include/bus.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/include/bus.h b/sys/arch/sparc64/include/bus.h index e4102bad7b1..883ca31ec24 100644 --- a/sys/arch/sparc64/include/bus.h +++ b/sys/arch/sparc64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.3 2001/08/22 20:11:09 art Exp $ */ +/* $OpenBSD: bus.h,v 1.4 2001/08/23 14:24:58 art Exp $ */ /* $NetBSD: bus.h,v 1.28 2001/07/19 15:32:19 thorpej Exp $ */ /*- @@ -1371,13 +1371,13 @@ bus_space_copy_region_stream_8(t, h1, o1, h2, o2, c) /* OpenBSD "raw" wrappers around the NetBSD "stream" methods. */ /* XXXART - I'm lazy so I'll only implement the ones I need. */ #define bus_space_read_raw_multi_2(t, h, o, a, c) \ - bus_space_read_multi_stream_2(t, h, o, (u_int8_t *)(a), c) + bus_space_read_multi_stream_2(t, h, o, (u_int8_t *)(a), c/2) #define bus_space_write_raw_multi_2(t, h, o, a, c) \ - bus_space_write_multi_stream_2(t, h, o, (u_int8_t *)(a), c) + bus_space_write_multi_stream_2(t, h, o, (u_int8_t *)(a), c/2) #define bus_space_read_raw_multi_4(t, h, o, a, c) \ - bus_space_read_multi_stream_4(t, h, o, (u_int8_t *)(a), c) + bus_space_read_multi_stream_4(t, h, o, (u_int8_t *)(a), c/4) #define bus_space_write_raw_multi_4(t, h, o, a, c) \ - bus_space_write_multi_stream_4(t, h, o, (u_int8_t *)(a), c) + bus_space_write_multi_stream_4(t, h, o, (u_int8_t *)(a), c/4) #define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t) -- cgit v1.2.3