Add Port namespace for DMA
This commit is contained in:
parent
8accf73301
commit
0c7cc9681e
|
@ -3,6 +3,7 @@
|
||||||
#include "IOPort.hpp"
|
#include "IOPort.hpp"
|
||||||
|
|
||||||
namespace DMA {
|
namespace DMA {
|
||||||
|
namespace Port {
|
||||||
struct __no_align MADR : public ComplexBitMap<uint32_t> {
|
struct __no_align MADR : public ComplexBitMap<uint32_t> {
|
||||||
__io_port_inherit_complex_bit_map(MADR);
|
__io_port_inherit_complex_bit_map(MADR);
|
||||||
|
|
||||||
|
@ -137,6 +138,7 @@ namespace DMA {
|
||||||
|
|
||||||
__declare_io_port_global(DMAControlRegister, DPCR, 0x1F8010F0);
|
__declare_io_port_global(DMAControlRegister, DPCR, 0x1F8010F0);
|
||||||
__declare_io_port_global(DMAInterruptRegister, DICR, 0x1F8010F4);
|
__declare_io_port_global(DMAInterruptRegister, DICR, 0x1F8010F4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif //!__JABYENGINE_DMA_IO_HPP__
|
#endif //!__JABYENGINE_DMA_IO_HPP__
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
namespace SPU {
|
namespace SPU {
|
||||||
using namespace Port;
|
using namespace Port;
|
||||||
using namespace DMA;
|
using namespace DMA::Port;
|
||||||
|
|
||||||
static void clear_key() {
|
static void clear_key() {
|
||||||
Key::off.write(UI32_MAX);
|
Key::off.write(UI32_MAX);
|
||||||
|
|
Loading…
Reference in New Issue