From e119c0361672dad51ececf74e902e9e746c3669a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 25 Dec 2009 20:52:58 +0000 Subject: Implement bus_space_vaddr(). --- sys/arch/sh/dev/shpcic.c | 8 +++++++- sys/arch/sh/dev/shpcicvar.h | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'sys/arch/sh/dev') 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); -- cgit v1.2.3