diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-06-30 16:11:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-06-30 16:11:26 +0000 |
commit | 8e0940fbe98a24221d7bbf37b9990d495bfa083c (patch) | |
tree | 114bd1412e6ecfdeb4c58db86d1fc8ee8c3046dd /sys/arch/alpha | |
parent | 1459f9d620b69d196d9b1cc96af1063580b04229 (diff) |
Dummy bus_space_read_raw_region implementation.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/include/bus.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/bus.h b/sys/arch/alpha/include/bus.h index a8fec105751..4838be22a66 100644 --- a/sys/arch/alpha/include/bus.h +++ b/sys/arch/alpha/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.17 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: bus.h,v 1.18 2002/06/30 16:11:25 miod Exp $ */ /* $NetBSD: bus.h,v 1.10 1996/12/02 22:19:32 cgd Exp $ */ /* @@ -295,6 +295,23 @@ struct alpha_bus_space { /* + * void bus_space_read_raw_region_N(bus_space_tag_t tag, + * bus_space_handle_t bsh, bus_size_t offset, + * u_int8_t *addr, size_t count); + * + * Read `count' bytes in 2, 4 or 8 byte wide quantities from bus space + * described by tag/handle and starting at `offset' from the + * buffer provided. The buffer must have proper alignment for the N byte + * wide entities. Furthermore possible byte-swapping should be done by + * these functions. + */ + +#define bus_space_read_raw_region_2(t, h, o, a, c) \ + bus_space_read_region_2((t), (h), (o), (u_int16_t *)(a), (c) >> 1) +#define bus_space_read_raw_region_4(t, h, o, a, c) \ + bus_space_read_region_4((t), (h), (o), (u_int32_t *)(a), (c) >> 2) + +/* * Bus write (single) operations. */ #define bus_space_write_1(t, h, o, v) __abs_ws(1,(t),(h),(o),(v)) |