summaryrefslogtreecommitdiff
path: root/sys/arch/landisk
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-12-25 20:52:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-12-25 20:52:58 +0000
commite119c0361672dad51ececf74e902e9e746c3669a (patch)
tree6ddd510faf43f7243c75d021b9dd9c4f012a5e0f /sys/arch/landisk
parent222509b17017cbb2e2ec27cefb44daac5f9c70ca (diff)
Implement bus_space_vaddr().
Diffstat (limited to 'sys/arch/landisk')
-rw-r--r--sys/arch/landisk/dev/obio.c13
-rw-r--r--sys/arch/landisk/landisk/shpcic_machdep.c6
2 files changed, 17 insertions, 2 deletions
diff --git a/sys/arch/landisk/dev/obio.c b/sys/arch/landisk/dev/obio.c
index 34e1bc9929c..7eed273ffc0 100644
--- a/sys/arch/landisk/dev/obio.c
+++ b/sys/arch/landisk/dev/obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obio.c,v 1.6 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: obio.c,v 1.7 2009/12/25 20:52:55 miod Exp $ */
/* $NetBSD: obio.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
@@ -219,6 +219,7 @@ int obio_iomem_alloc(void *v, bus_addr_t rstart, bus_addr_t rend,
bus_size_t size, bus_size_t alignment, bus_size_t boundary, int flags,
bus_addr_t *bpap, bus_space_handle_t *bshp);
void obio_iomem_free(void *v, bus_space_handle_t bsh, bus_size_t size);
+void *obio_iomem_vaddr(void *v, bus_space_handle_t bsh);
int obio_iomem_add_mapping(bus_addr_t, bus_size_t, int,
bus_space_handle_t *);
@@ -355,6 +356,12 @@ obio_iomem_free(void *v, bus_space_handle_t bsh, bus_size_t size)
obio_iomem_unmap(v, bsh, size);
}
+void *
+obio_iomem_vaddr(void *v, bus_space_handle_t bsh)
+{
+ return ((void *)bsh);
+}
+
/*
* on-board I/O bus space read/write
*/
@@ -437,6 +444,8 @@ struct _bus_space obio_bus_io =
.bs_alloc = obio_iomem_alloc,
.bs_free = obio_iomem_free,
+ .bs_vaddr = obio_iomem_vaddr,
+
.bs_r_1 = obio_iomem_read_1,
.bs_r_2 = obio_iomem_read_2,
.bs_r_4 = obio_iomem_read_4,
@@ -497,6 +506,8 @@ struct _bus_space obio_bus_mem =
.bs_alloc = obio_iomem_alloc,
.bs_free = obio_iomem_free,
+ .bs_vaddr = obio_iomem_vaddr,
+
.bs_r_1 = obio_iomem_read_1,
.bs_r_2 = obio_iomem_read_2,
.bs_r_4 = obio_iomem_read_4,
diff --git a/sys/arch/landisk/landisk/shpcic_machdep.c b/sys/arch/landisk/landisk/shpcic_machdep.c
index 6093abf6b03..60d82d12eff 100644
--- a/sys/arch/landisk/landisk/shpcic_machdep.c
+++ b/sys/arch/landisk/landisk/shpcic_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shpcic_machdep.c,v 1.3 2006/10/19 03:39:54 drahn Exp $ */
+/* $OpenBSD: shpcic_machdep.c,v 1.4 2009/12/25 20:52:57 miod Exp $ */
/* $NetBSD: shpcic_machdep.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*
@@ -188,6 +188,8 @@ struct _bus_space landisk_pci_bus_io =
.bs_alloc = shpcic_iomem_alloc,
.bs_free = shpcic_iomem_free,
+ .bs_vaddr = shpcic_iomem_vaddr,
+
.bs_r_1 = shpcic_io_read_1,
.bs_r_2 = shpcic_io_read_2,
.bs_r_4 = shpcic_io_read_4,
@@ -248,6 +250,8 @@ struct _bus_space landisk_pci_bus_mem =
.bs_alloc = shpcic_iomem_alloc,
.bs_free = shpcic_iomem_free,
+ .bs_vaddr = shpcic_iomem_vaddr,
+
.bs_r_1 = shpcic_mem_read_1,
.bs_r_2 = shpcic_mem_read_2,
.bs_r_4 = shpcic_mem_read_4,