summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2004-06-17 17:51:48 +0000
committercognet <cognet@FreeBSD.org>2004-06-17 17:51:48 +0000
commita53709fae67b4cafea59cebc312cfac0c1760f0e (patch)
tree91849f23afe91ef8a1ebad0a6f99b83dd1dc3762 /sys
parent309b690374c311ffd3bb56b646bf1e055b176a35 (diff)
downloadFreeBSD-src-a53709fae67b4cafea59cebc312cfac0c1760f0e.zip
FreeBSD-src-a53709fae67b4cafea59cebc312cfac0c1760f0e.tar.gz
Nuke bus_space_mmap(), as it does not exist in FreeBSD.
Diffstat (limited to 'sys')
-rw-r--r--sys/arm/arm/nexus_io.c2
-rw-r--r--sys/arm/include/bus.h9
-rw-r--r--sys/arm/sa11x0/sa11x0_io.c10
3 files changed, 0 insertions, 21 deletions
diff --git a/sys/arm/arm/nexus_io.c b/sys/arm/arm/nexus_io.c
index 969c30e..b27d779 100644
--- a/sys/arm/arm/nexus_io.c
+++ b/sys/arm/arm/nexus_io.c
@@ -75,8 +75,6 @@ struct bus_space mainbus_bs_tag = {
/* get kernel virtual address */
0, /* there is no linear mapping */
- NULL,
-
/* barrier */
nexus_bs_barrier,
diff --git a/sys/arm/include/bus.h b/sys/arm/include/bus.h
index 6066050..7a97700 100644
--- a/sys/arm/include/bus.h
+++ b/sys/arm/include/bus.h
@@ -117,9 +117,6 @@ struct bus_space {
/* get kernel virtual address */
void * (*bs_vaddr) (void *, bus_space_handle_t);
- /* mmap bus space for user */
- int (*bs_mmap) (struct cdev *, vm_offset_t, vm_paddr_t *, int);
-
/* barrier */
void (*bs_barrier) (void *, bus_space_handle_t,
bus_size_t, bus_size_t, int);
@@ -258,12 +255,6 @@ struct bus_space {
(*(t)->bs_vaddr)((t)->bs_cookie, (h))
/*
- * MMap bus space for a user application.
- */
-#define bus_space_mmap(t, a, o, p, f) \
- (*(t)->bs_mmap)((t)->bs_cookie, (a), (o), (p), (f))
-
-/*
* Bus barrier operations.
*/
#define bus_space_barrier(t, h, o, l, f) \
diff --git a/sys/arm/sa11x0/sa11x0_io.c b/sys/arm/sa11x0/sa11x0_io.c
index 0fe0375..09a5c93 100644
--- a/sys/arm/sa11x0/sa11x0_io.c
+++ b/sys/arm/sa11x0/sa11x0_io.c
@@ -79,9 +79,6 @@ struct bus_space sa11x0_bs_tag = {
/* get kernel virtual address */
sa11x0_bs_vaddr,
- /* mmap bus space for userland */
- sa11x0_bs_mmap,
-
/* barrier */
sa11x0_bs_barrier,
@@ -224,13 +221,6 @@ sa11x0_bs_subregion(t, bsh, offset, size, nbshp)
return (0);
}
-int
-sa11x0_bs_mmap(struct cdev *t, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
-{
- *paddr = offset;
- return (0);
-}
-
void *
sa11x0_bs_vaddr(t, bsh)
void *t;
OpenPOWER on IntegriCloud