From: niklas Date: Wed, 18 Sep 1996 11:39:24 +0000 (+0000) Subject: remove the obsolete bus_{from,to}_host macros and add the *_raw_multi_* X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4822e9aca4420794d9be2054c6c2077d8c959c3d;p=openbsd remove the obsolete bus_{from,to}_host macros and add the *_raw_multi_* ones instead --- 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_ */