2017-08-18 05:08:22 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct DMALOGENTRY
|
|
|
|
{
|
2017-09-13 10:36:03 +00:00
|
|
|
uint32_t romAddr;
|
|
|
|
uint32_t ramAddr;
|
|
|
|
uint32_t length;
|
2017-08-18 05:08:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CDMALog
|
|
|
|
{
|
|
|
|
private:
|
2017-09-13 10:36:03 +00:00
|
|
|
vector<DMALOGENTRY> m_Log;
|
2017-08-18 05:08:22 +00:00
|
|
|
|
|
|
|
public:
|
2017-09-13 10:36:03 +00:00
|
|
|
void AddEntry(uint32_t romAddr, uint32_t ramAddr, uint32_t length);
|
|
|
|
void ClearEntries();
|
|
|
|
size_t GetNumEntries();
|
|
|
|
DMALOGENTRY* GetEntryByIndex(uint32_t index);
|
|
|
|
DMALOGENTRY* GetEntryByRamAddress(uint32_t ramAddr);
|
|
|
|
DMALOGENTRY* GetEntryByRamAddress(uint32_t ramAddr, uint32_t* lpRomAddr, uint32_t* lpOffset);
|
|
|
|
DMALOGENTRY* GetEntryByRomAddress(uint32_t romAddr);
|
|
|
|
DMALOGENTRY* GetEntryByRomAddress(uint32_t romAddr, uint32_t* lpRamAddr, uint32_t* lpOffset);
|
2021-03-18 03:37:26 +00:00
|
|
|
};
|