summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-26 05:17:05 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-26 05:17:05 +0000
commitacb0c980d978f3b00c7d707ca0a52d60c705d179 (patch)
tree27ccbe3c4825b881cdeb430833ba89c82feb342a /sys/arch/powerpc
parent2874ae9b91e3a28a163edf399ddcaae8d084ae78 (diff)
stub bus_space_{alloc,free}
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/bus.h8
-rw-r--r--sys/arch/powerpc/powerpc/machdep.c26
2 files changed, 32 insertions, 2 deletions
diff --git a/sys/arch/powerpc/include/bus.h b/sys/arch/powerpc/include/bus.h
index 7738668ed5e..e716c5878fe 100644
--- a/sys/arch/powerpc/include/bus.h
+++ b/sys/arch/powerpc/include/bus.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus.h,v 1.14 2001/06/25 06:21:18 mickey Exp $ */
+/* $OpenBSD: bus.h,v 1.15 2001/06/26 05:17:04 mickey Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom. All rights reserved.
@@ -70,6 +70,12 @@ void bus_space_unmap __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t size));
int bus_space_subregion __P((bus_space_tag_t t, bus_space_handle_t bsh,
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp));
+int bus_space_alloc __P((bus_space_tag_t tag, bus_addr_t rstart,
+ bus_addr_t rend, bus_size_t size, bus_size_t alignment,
+ bus_size_t boundary, int cacheable, bus_addr_t *addrp,
+ bus_space_handle_t *handlep));
+void bus_space_free __P((bus_space_tag_t tag, bus_space_handle_t handle,
+ bus_size_t size));
#define bus_space_read(n,m) \
static __inline CAT3(u_int,m,_t) \
diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c
index b5f5520a52f..98d9d481100 100644
--- a/sys/arch/powerpc/powerpc/machdep.c
+++ b/sys/arch/powerpc/powerpc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.68 2001/06/25 23:30:03 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.69 2001/06/26 05:17:04 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -1262,6 +1262,30 @@ bus_mem_add_mapping(bpa, size, cacheable, bshp)
}
return 0;
}
+
+int
+bus_space_alloc(tag, rstart, rend, size, alignment, boundary, cacheable, addrp, handlep)
+ bus_space_tag_t tag;
+ bus_addr_t rstart, rend;
+ bus_size_t size, alignment, boundary;
+ int cacheable;
+ bus_addr_t *addrp;
+ bus_space_handle_t *handlep;
+{
+
+ panic("bus_space_alloc: unimplemented");
+}
+
+void
+bus_space_free(tag, handle, size)
+ bus_space_tag_t tag;
+ bus_space_handle_t handle;
+ bus_size_t size;
+{
+
+ panic("bus_space_free: unimplemented");
+}
+
void *
mapiodev(pa, len)
paddr_t pa;