dd: implement DeviceAddressSpaceType api

This commit is contained in:
Michael Scire committed 2020-11-08 15:27:55 -08:00
1 parent e93c3cbf58
commit 2562700f34
15 files changed
+626 -52

No files matched your search

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