diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-18 11:39:25 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-09-18 11:39:25 +0000 |
commit | 99688d359f5f49bc60f029bbc5482512c95af821 (patch) | |
tree | afd8ca827acf43188fbec036acbc8211852892cf /sys/arch/arc | |
parent | 64a198a33a27b6b8ba10ac9baeece99053908ae9 (diff) |
remove the obsolete bus_{from,to}_host macros and add the *_raw_multi_*
ones instead
Diffstat (limited to 'sys/arch/arc')
-rw-r--r-- | sys/arch/arc/include/bus.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/sys/arch/arc/include/bus.h b/sys/arch/arc/include/bus.h index 77db1fa692c..1e274c0e5b3 100644 --- a/sys/arch/arc/include/bus.h +++ b/sys/arch/arc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.4 1996/09/14 15:58:25 pefo Exp $ */ +/* $OpenBSD: bus.h,v 1.5 1996/09/18 11:39:24 niklas Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -119,13 +119,26 @@ struct arc_isa_busmap { ((void)(*(volatile u_int64_t *)((h) + (o)) = (v))) /* These are extensions to the general NetBSD bus interface. */ -/* XXX Check endianess */ -#define bus_to_host_2(t, v) (v) -#define bus_to_host_4(t, v) (v) -#define bus_to_host_8(t, v) (v) - -#define bus_from_host_2(t, v) (v) -#define bus_from_host_4(t, v) (v) -#define bus_from_host_8(t, v) (v) +#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)) +#define bus_io_read_raw_multi_4(t, h, o, a, c) \ + insl((h) + (o), (a), (c)) +#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 !!! +#endif + +#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)) +#define bus_io_write_raw_multi_4(t, h, o, a, c) \ + outsl((h) + (o), (a), (c)) +#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 !!! +#endif #endif /* _ARC_BUS_H_ */ |