diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-15 12:03:43 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-15 12:03:43 +0000 |
commit | 6845ce915fdec358a50bfbaa3f3c84fc17808769 (patch) | |
tree | 0716835be8920a301b5e4193b470fde67ea07573 /sys/arch | |
parent | 5c4538529a1df286e6578bfa04eeaaa9d5d20637 (diff) |
'implement' bus_space_write_raw_region_{2,4}.
From d@
Diffstat (limited to 'sys/arch')
-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 3c46dcef408..e6e920cb21d 100644 --- a/sys/arch/alpha/include/bus.h +++ b/sys/arch/alpha/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.12 2000/12/15 21:38:05 art Exp $ */ +/* $OpenBSD: bus.h,v 1.13 2001/01/15 12:03:42 art Exp $ */ /* $NetBSD: bus.h,v 1.10 1996/12/02 22:19:32 cgd Exp $ */ /* @@ -345,6 +345,23 @@ struct alpha_bus_space { /* + * void bus_space_write_raw_region_N __P((bus_space_tag_t tag, + * bus_space_handle_t bsh, bus_size_t offset, + * const u_int8_t *addr, size_t count)); + * + * Write `count' bytes in 2, 4 or 8 byte wide quantities to 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_write_raw_region_2(t, h, o, a, c) \ + bus_space_write_region_2((t), (h), (o), (const u_int16_t *)(a), (c) >> 1) +#define bus_space_write_raw_region_4(t, h, o, a, c) \ + bus_space_write_region_4((t), (h), (o), (const u_int32_t *)(a), (c) >> 2) + +/* * Set multiple operations. */ #define bus_space_set_multi_1(t, h, o, v, c) \ |