Implement missing bus_space_subregion in kshim
Add missing function, used by exynos5_ehci driver. Reviewed by: hselasky Submitted by: Wojciech Macek <wma@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4141
This commit is contained in:
parent
7f34c97a79
commit
2646d9c030
@ -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)
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user