summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/include
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-06-23 21:48:25 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-06-23 21:48:25 +0000
commit1e3542cd612d942114a8eac614daad44324691a8 (patch)
tree32e06f27562a8520d17997a395445810e167844f /sys/arch/macppc/include
parent96e464aa4f09af9611b01cca6b623a3f6243786f (diff)
bus_space_*_raw*_1() do not exist; drahn@ ok
Diffstat (limited to 'sys/arch/macppc/include')
-rw-r--r--sys/arch/macppc/include/bus.h41
1 files changed, 5 insertions, 36 deletions
diff --git a/sys/arch/macppc/include/bus.h b/sys/arch/macppc/include/bus.h
index 80e124928d0..1430de74971 100644
--- a/sys/arch/macppc/include/bus.h
+++ b/sys/arch/macppc/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.9 2002/10/07 05:39:48 drahn Exp $ */
+/* $OpenBSD: bus.h,v 1.10 2003/06/23 21:48:24 mickey Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom. All rights reserved.
@@ -249,24 +249,11 @@ bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh,
* bus_space_handle_t bsh, bus_size_t offset,
* u_intN_t *addr, size_t count);
*
- * Read `count' 1, 2, 4, or 8 byte quantities from bus space
- * described by tag/handle and starting at `offset' and copy into
- * buffer provided.
+ * Read `count' bytes from bus space described by tag/handle and starting
+ * at `offset' and copy into buffer provided w/o bus-host byte swapping.
*/
static __inline void
-bus_space_read_raw_region_1(bus_space_tag_t tag, bus_space_handle_t bsh,
- bus_size_t offset, u_int8_t *addr, size_t count)
-{
- volatile u_int8_t *s = __BA(tag, bsh, offset);
- u_int8_t *laddr = (void *)addr;
-
- while (count--)
- *laddr++ = *s++;
- __asm __volatile("eieio; sync");
-}
-
-static __inline void
bus_space_read_raw_region_2(bus_space_tag_t tag, bus_space_handle_t bsh,
bus_size_t offset, u_int8_t *addr, size_t count)
{
@@ -301,23 +288,11 @@ bus_space_read_raw_region_4(bus_space_tag_t tag, bus_space_handle_t bsh,
* bus_space_handle_t bsh, bus_size_t offset,
* const u_intN_t *addr, size_t count);
*
- * Write `count' 1, 2, 4, or 8 byte quantities from the buffer provided
- * to bus space described by tag/handle starting at `offset'.
+ * Write `count' bytes from the buffer provided to bus space described
+ * by tag/handle starting at `offset' w/o host-bus byte swapping.
*/
static __inline void
-bus_space_write_raw_region_1(bus_space_tag_t tag, bus_space_handle_t bsh,
- bus_size_t offset, const u_int8_t *addr, size_t count)
-{
- volatile u_int8_t *d = __BA(tag, bsh, offset);
- const u_int8_t *laddr = (void *)addr;
-
- while (count--)
- *d++ = *laddr++;
- __asm __volatile("eieio; sync");
-}
-
-static __inline void
bus_space_write_raw_region_2(bus_space_tag_t tag, bus_space_handle_t bsh,
bus_size_t offset, const u_int8_t *addr, size_t count)
{
@@ -412,9 +387,6 @@ bus_space_set_multi_4(tag, bsh, offset, val, count)
/* These are OpenBSD extensions to the general NetBSD bus interface. */
void
-bus_space_read_raw_multi_1(bus_space_tag_t bst, bus_space_handle_t bsh,
- bus_addr_t ba, u_int8_t *dst, bus_size_t size);
-void
bus_space_read_raw_multi_2(bus_space_tag_t bst, bus_space_handle_t bsh,
bus_addr_t ba, u_int8_t *dst, bus_size_t size);
void
@@ -424,9 +396,6 @@ bus_space_read_raw_multi_4(bus_space_tag_t bst, bus_space_handle_t bsh,
!!! bus_space_read_raw_multi_8 not implemented !!!
void
-bus_space_write_raw_multi_1(bus_space_tag_t bst, bus_space_handle_t bsh,
- bus_addr_t ba, const u_int8_t *src, bus_size_t size);
-void
bus_space_write_raw_multi_2(bus_space_tag_t bst, bus_space_handle_t bsh,
bus_addr_t ba, const u_int8_t *src, bus_size_t size);
void