dd: implement DeviceAddressSpaceType api

This commit is contained in:
Michael Scire
2020-11-08 15:27:55 -08:00
committed by SciresM
parent 708f5bf1fb
commit 4d1c4f1677
15 changed files with 626 additions and 52 deletions

View File

@@ -19,10 +19,6 @@
namespace ams::dd {
u32 ReadRegister(dd::PhysicalAddress phys_addr);
void WriteRegister(dd::PhysicalAddress phys_addr, u32 value);
u32 ReadWriteRegister(dd::PhysicalAddress phys_addr, u32 value, u32 mask);
/* Convenience Helper. */
inline uintptr_t GetIoMapping(dd::PhysicalAddress phys_addr, size_t size) {
const uintptr_t io_mapping = dd::QueryIoMapping(phys_addr, size);