mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
platform API: make MMIO dataspace cap accessible
In case of the GPU multiplexer, we need to delegate MMIO memory to the framebuffer client in form of a managed dataspace. To be able to attach a given Platform::Device::Mmio object to a region map we need to access its capability. Ref genodelabs/genode#4578
This commit is contained in:
parent
c583446ade
commit
281785f6bd
@ -117,6 +117,8 @@ class Platform::Device::Mmio : Range, Attached_dataspace, public Genode::Mmio
|
||||
|
||||
template <typename T>
|
||||
T *local_addr() { return reinterpret_cast<T *>(_local_addr()); }
|
||||
|
||||
Dataspace_capability cap() { return Attached_dataspace::cap(); }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user