diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-18 17:20:55 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-18 17:20:55 +0000 |
commit | 4c0b10a8ffef6ebdf1fe4653558f6ac96175130c (patch) | |
tree | a645a1af639766d3035576dd55d6af9fb68fa9af /sys/arch/arc/include | |
parent | 4b74e4062db32f5f884d9091d1f2630463c583c4 (diff) |
Correct last arg handling of the *_raw_multi_* macros
Diffstat (limited to 'sys/arch/arc/include')
-rw-r--r-- | sys/arch/arc/include/bus.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/arc/include/bus.h b/sys/arch/arc/include/bus.h index 1e274c0e5b3..dce560ba790 100644 --- a/sys/arch/arc/include/bus.h +++ b/sys/arch/arc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.5 1996/09/18 11:39:24 niklas Exp $ */ +/* $OpenBSD: bus.h,v 1.6 1996/09/18 17:20:54 niklas Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -122,9 +122,9 @@ struct arc_isa_busmap { #define bus_io_read_raw_multi_1(t, h, o, a, c) \ insb((h) + (o), (a), (c)) #define bus_io_read_raw_multi_2(t, h, o, a, c) \ - insw((h) + (o), (a), (c)) + insw((h) + (o), (a), ((c) >> 1)) #define bus_io_read_raw_multi_4(t, h, o, a, c) \ - insl((h) + (o), (a), (c)) + insl((h) + (o), (a), ((c) >> 2)) #if 0 /* Cause a link error for bus_io_read_raw_multi_8 */ #define bus_io_read_raw_multi_8(t, h, o, a, c) \ !!! bus_io_read_raw_multi_8 unimplemented !!! @@ -133,9 +133,9 @@ struct arc_isa_busmap { #define bus_io_write_raw_multi_1(t, h, o, a, c) \ outsb((h) + (o), (a), (c)) #define bus_io_write_raw_multi_2(t, h, o, a, c) \ - outsw((h) + (o), (a), (c)) + outsw((h) + (o), (a), ((c) >> 1)) #define bus_io_write_raw_multi_4(t, h, o, a, c) \ - outsl((h) + (o), (a), (c)) + outsl((h) + (o), (a), ((c) >> 2)) #if 0 /* Cause a link error for bus_io_write_raw_multi_8 */ #define bus_io_write_raw_multi_8(t, h, o, a, c) \ !!! bus_io_write_raw_multi_8 unimplimented !!! |