summaryrefslogtreecommitdiff
path: root/src/core/mmio.h
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-04-16 09:14:18 +0100
committerSubv <subv2112@gmail.com>2016-05-21 11:12:36 -0500
commit3873b36db333547152280b741e85aa54c69d8199 (patch)
treeff2e3d97d305ca49fc0e260563d27c716807c1fa /src/core/mmio.h
parentc084fc824cf4e076bb83e41af64f5cfaa9204dcb (diff)
Memory: ReadBlock/WriteBlock
Diffstat (limited to 'src/core/mmio.h')
-rw-r--r--src/core/mmio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/mmio.h b/src/core/mmio.h
index cb644f51b..35b73b061 100644
--- a/src/core/mmio.h
+++ b/src/core/mmio.h
@@ -25,10 +25,14 @@ public:
virtual u32 Read32(VAddr addr) = 0;
virtual u64 Read64(VAddr addr) = 0;
+ virtual bool ReadBlock(VAddr src_addr, u8* dest_buffer, size_t size) = 0;
+
virtual void Write8(VAddr addr, u8 data) = 0;
virtual void Write16(VAddr addr, u16 data) = 0;
virtual void Write32(VAddr addr, u32 data) = 0;
virtual void Write64(VAddr addr, u64 data) = 0;
+
+ virtual bool WriteBlock(VAddr dest_addr, const u8* src_buffer, size_t size) = 0;
};
using MMIORegionPointer = std::shared_ptr<MMIORegion>;