diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-04-27 22:18:17 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-04-27 22:18:17 +0000 |
commit | 6aaff48e8850f00d3279ec39dd30a3b78c65a19b (patch) | |
tree | 38743f9637dc24195a8d0555faf2846c79a736a2 /sys/arch | |
parent | 1c69eff3c2a30e9ec9f41477d8cce6463ef87fb1 (diff) |
Extend the bus.h interface with endian conversion functions and use
where relevant.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/include/bus.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/i386/include/bus.h b/sys/arch/i386/include/bus.h index 09947ebf54e..9be52434632 100644 --- a/sys/arch/i386/include/bus.h +++ b/sys/arch/i386/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.2 1996/04/21 22:16:46 deraadt Exp $ */ +/* $OpenBSD: bus.h,v 1.3 1996/04/27 22:18:16 niklas Exp $ */ /* $NetBSD: bus.h,v 1.2 1996/04/05 23:59:37 thorpej Exp $ */ /* @@ -114,4 +114,13 @@ void bus_mem_unmap __P((bus_chipset_tag_t t, bus_mem_handle_t memh, #define bus_mem_write_8(t, h, o, v) \ ((void)(*(volatile u_int64_t *)((h) + (o)) = (v))) +/* These are extensions to the general NetBSD bus interface. */ +#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) + #endif /* _I386_BUS_H_ */ |