aboutsummaryrefslogtreecommitdiff
path: root/src/core/memory_setup.h
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-01-30 18:41:04 +0000
committerMerryMage <MerryMage@users.noreply.github.com>2016-01-30 18:41:04 +0000
commite614492dca8e9fbe68986c0d76a1bb171b3cd24d (patch)
tree2ee280a21014808f190d7362a41ccd25e93dd2f4 /src/core/memory_setup.h
parent1d40982a0ad103f6cc7bace6abaff3af453f501a (diff)
Memory: Implement MMIO
Diffstat (limited to 'src/core/memory_setup.h')
-rw-r--r--src/core/memory_setup.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/memory_setup.h b/src/core/memory_setup.h
index 84ff301204..05f70a1fe0 100644
--- a/src/core/memory_setup.h
+++ b/src/core/memory_setup.h
@@ -23,10 +23,11 @@ void MapMemoryRegion(VAddr base, u32 size, u8* target);
/**
* Maps a region of the emulated process address space as a IO region.
- * @note Currently this can only be used to mark a region as being IO, since actual memory-mapped
- * IO isn't yet supported.
+ * @param base The address to start mapping at. Must be page-aligned.
+ * @param size The amount of bytes to map. Must be page-aligned.
+ * @param mmio_handler The handler that backs the mapping.
*/
-void MapIoRegion(VAddr base, u32 size);
+void MapIoRegion(VAddr base, u32 size, MMIORegionPointer mmio_handler);
void UnmapRegion(VAddr base, u32 size);