From 2646d9c0306232f460bf36c37a0bf7bf8299b2d6 Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek Date: Fri, 27 Nov 2015 18:14:45 +0000 Subject: [PATCH] Implement missing bus_space_subregion in kshim Add missing function, used by exynos5_ehci driver. Reviewed by: hselasky Submitted by: Wojciech Macek Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4141 --- sys/boot/kshim/bsd_busspace.c | 9 +++++++++ sys/boot/kshim/bsd_kernel.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/sys/boot/kshim/bsd_busspace.c b/sys/boot/kshim/bsd_busspace.c index c9ba09f5e69e..778c4494d96c 100644 --- a/sys/boot/kshim/bsd_busspace.c +++ b/sys/boot/kshim/bsd_busspace.c @@ -37,6 +37,15 @@ struct burst { uint32_t dw7; }; +int +bus_space_subregion(bus_space_tag_t t, bus_space_handle_t bsh, + bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp) +{ + + *nbshp = bsh + offset; + return (0); +} + void bus_space_read_multi_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offset, uint8_t *datap, bus_size_t count) diff --git a/sys/boot/kshim/bsd_kernel.h b/sys/boot/kshim/bsd_kernel.h index aba8131a3c6a..d7bff78d05f1 100644 --- a/sys/boot/kshim/bsd_kernel.h +++ b/sys/boot/kshim/bsd_kernel.h @@ -397,6 +397,8 @@ int bus_generic_shutdown(device_t dev); int bus_generic_suspend(device_t dev); int bus_generic_print_child(device_t dev, device_t child); void bus_generic_driver_added(device_t dev, driver_t *driver); +int bus_space_subregion(bus_space_tag_t t, bus_space_handle_t bsh, + bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp); /* BUS SPACE API */