diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-25 20:52:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-25 20:52:58 +0000 |
commit | e119c0361672dad51ececf74e902e9e746c3669a (patch) | |
tree | 6ddd510faf43f7243c75d021b9dd9c4f012a5e0f /sys/arch/sh/dev | |
parent | 222509b17017cbb2e2ec27cefb44daac5f9c70ca (diff) |
Implement bus_space_vaddr().
Diffstat (limited to 'sys/arch/sh/dev')
-rw-r--r-- | sys/arch/sh/dev/shpcic.c | 8 | ||||
-rw-r--r-- | sys/arch/sh/dev/shpcicvar.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/sh/dev/shpcic.c b/sys/arch/sh/dev/shpcic.c index ffb92394fc7..93e46f21191 100644 --- a/sys/arch/sh/dev/shpcic.c +++ b/sys/arch/sh/dev/shpcic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shpcic.c,v 1.9 2009/07/26 18:56:42 miod Exp $ */ +/* $OpenBSD: shpcic.c,v 1.10 2009/12/25 20:52:57 miod Exp $ */ /* $NetBSD: shpcic.c,v 1.10 2005/12/24 20:07:32 perry Exp $ */ /* @@ -381,6 +381,12 @@ shpcic_iomem_free(void *v, bus_space_handle_t bsh, bus_size_t size) /* Nothing to do */ } +void * +shpcic_iomem_vaddr(void *v, bus_space_handle_t bsh) +{ + return ((void *)bsh); +} + /* * shpcic bus space io/mem read/write */ diff --git a/sys/arch/sh/dev/shpcicvar.h b/sys/arch/sh/dev/shpcicvar.h index 45f001d5f5d..a260c3d89e5 100644 --- a/sys/arch/sh/dev/shpcicvar.h +++ b/sys/arch/sh/dev/shpcicvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: shpcicvar.h,v 1.3 2006/10/19 03:36:38 drahn Exp $ */ +/* $OpenBSD: shpcicvar.h,v 1.4 2009/12/25 20:52:57 miod Exp $ */ /* $NetBSD: shpcicvar.h,v 1.6 2005/12/11 12:18:58 christos Exp $ */ /*- @@ -80,6 +80,7 @@ int shpcic_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 shpcic_iomem_free(void *v, bus_space_handle_t bsh, bus_size_t size); +void *shpcic_iomem_vaddr(void *v, bus_space_handle_t bsh); /* read single */ uint8_t shpcic_io_read_1(void *v, bus_space_handle_t bsh, bus_size_t offset); |