mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Implement bus_space_subregion(). Identical to i386.
Approved by: re (carte blanc)
This commit is contained in:
parent
ddc6d86ca3
commit
4ea25f94be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107395
|
@ -131,9 +131,14 @@ void bus_space_unmap(bus_space_tag_t t, bus_space_handle_t bsh,
|
|||
* Get a new handle for a subregion of an already-mapped area of bus space.
|
||||
*/
|
||||
|
||||
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);
|
||||
static __inline 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);
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate a region of memory that is accessible to devices in bus space.
|
||||
|
|
Loading…
Reference in a new issue