mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
x86: extend io_mem call of platform_drv
Support allocation of sub I/O memory spaces of one I/O memory bar with write-combined caching attribute.
This commit is contained in:
committed by
Christian Helmuth
parent
8f849c9438
commit
bdaf79e3b8
@ -14,6 +14,7 @@
|
||||
#ifndef _INCLUDE__PLATFORM_DEVICE__DEVICE_H_
|
||||
#define _INCLUDE__PLATFORM_DEVICE__DEVICE_H_
|
||||
|
||||
#include <base/cache.h>
|
||||
#include <irq_session/capability.h>
|
||||
#include <io_mem_session/capability.h>
|
||||
|
||||
@ -29,7 +30,9 @@ struct Platform::Abstract_device
|
||||
/**
|
||||
* Get IO mem session capability of specified resource id
|
||||
*/
|
||||
virtual Genode::Io_mem_session_capability io_mem(Genode::uint8_t) = 0;
|
||||
virtual Genode::Io_mem_session_capability io_mem(Genode::uint8_t,
|
||||
Genode::Cache_attribute,
|
||||
Genode::addr_t, Genode::size_t) = 0;
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__PLATFORM_DEVICE__DEVICE_H_ */
|
||||
|
Reference in New Issue
Block a user