platform: add suspend/resume interface to Io_mmu

genodelabs/genode#5180
This commit is contained in:
Johannes Schlatow 2024-04-17 14:06:56 +02:00 committed by Christian Helmuth
parent 8cd206a050
commit 7441aba6d5
2 changed files with 7 additions and 0 deletions

View File

@ -65,6 +65,9 @@ class Driver::Common : Device_reporter,
Registry<Io_mmu_factory> & io_mmu_factories() {
return _io_mmu_factories; }
Io_mmu_devices & io_mmu_devices() {
return _io_mmu_devices; }
void announce_service();
void handle_config(Xml_node config);
void acquire_io_mmu_devices();

View File

@ -134,6 +134,10 @@ class Driver::Io_mmu : private Io_mmu_devices::Element
public:
/* suspend/resume interface */
virtual void suspend() { }
virtual void resume() { }
/* interface for adding default mappings (used for reserved memory) */
virtual void add_default_range(Range const &, addr_t) { }