kern: add SvcCreateDeviceAddressSpace, SvcAttachDeviceAddressSpace

This commit is contained in:
Michael Scire
2020-07-14 09:49:49 -07:00
committed by SciresM
parent 04f325cf5a
commit cfddb75398
6 changed files with 311 additions and 15 deletions

View File

@@ -53,6 +53,12 @@ namespace ams::kern::board::nintendo::nx {
public:
constexpr KDevicePageTable() : tables(), table_asids(), attached_device(), attached_value(), detached_value(), hs_attached_value(), hs_detached_value() { /* ... */ }
Result Initialize(u64 space_address, u64 space_size);
void Finalize();
Result Attach(ams::svc::DeviceName device_name, u64 space_address, u64 space_size);
Result Detach(ams::svc::DeviceName device_name);
public:
static void Initialize();
};