Vendor Teakra, make emulator own DSP RAM and add DSP RAM to fastmem (#806)
* DSP: Own DSP RAM and add it to fastmem * Vendor Teakra * Add MacOS support to fastmem * Fix MacOS fastmem paths * Fix iOS build
This commit is contained in:
29
third_party/teakra/src/mmio.h
vendored
Normal file
29
third_party/teakra/src/mmio.h
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include "common_types.h"
|
||||
#include "icu.h"
|
||||
|
||||
namespace Teakra {
|
||||
|
||||
class MemoryInterfaceUnit;
|
||||
class Apbp;
|
||||
class Timer;
|
||||
class Dma;
|
||||
class Ahbm;
|
||||
class Btdmp;
|
||||
|
||||
class MMIORegion {
|
||||
public:
|
||||
MMIORegion(MemoryInterfaceUnit& miu, ICU& icu, Apbp& apbp_from_cpu, Apbp& apbp_from_dsp,
|
||||
std::array<Timer, 2>& timer, Dma& dma, Ahbm& ahbm, std::array<Btdmp, 2>& btdmp);
|
||||
~MMIORegion();
|
||||
u16 Read(u16 addr); // not const because it can be a FIFO register
|
||||
void Write(u16 addr, u16 value);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::unique_ptr<Impl> impl;
|
||||
};
|
||||
|
||||
} // namespace Teakra
|
||||
Reference in New Issue
Block a user