Add Port namespace for DMA

This commit is contained in:
Jaby 2022-09-07 19:49:37 +02:00 committed by Jaby
parent f30716767f
commit 27716c020c
2 changed files with 115 additions and 113 deletions

View File

@ -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);
@ -138,5 +139,6 @@ 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__

View File

@ -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);