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:
Stefan Kalkowski 2022-09-13 14:26:08 +02:00 committed by Christian Helmuth
parent c583446ade
commit 281785f6bd

View File

@ -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(); }
};