This commit is contained in:
2024-09-29 17:27:23 +02:00
parent 5292b7bf9f
commit 6680c4d5a3
18 changed files with 167 additions and 173 deletions

View File

@@ -116,18 +116,18 @@ namespace JabyEngine {
static constexpr auto IORegister2Adr = 0x1F801802;
static constexpr auto IORegister3Adr = 0x1F801803;
static auto& IndexStatus = __new_declare_io_port(IndexStatus_IO, 0x1F801800);
static auto& IndexStatus = __declare_io_port(IndexStatus_IO, 0x1F801800);
struct PortIndex0 {
static inline const auto& ResponseFifo = __new_declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& CommandFifo = __new_declare_io_port(CommandFifo_IO, IORegister1Adr);
static inline const auto& ResponseFifo = __declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& CommandFifo = __declare_io_port(CommandFifo_IO, IORegister1Adr);
static inline const auto& DataFifo = __new_declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __new_declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& ParameterFifo = __new_declare_io_port(ParameterFifo_IO, IORegister2Adr);
static inline const auto& DataFifo = __declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& ParameterFifo = __declare_io_port(ParameterFifo_IO, IORegister2Adr);
static inline const auto& InterruptEnable = __new_declare_io_port(InterruptEnable_IO, IORegister3Adr);
static inline auto& Request = __new_declare_io_port(Request_IO, IORegister3Adr);
static inline const auto& InterruptEnable = __declare_io_port(InterruptEnable_IO, IORegister3Adr);
static inline auto& Request = __declare_io_port(Request_IO, IORegister3Adr);
static void change_to() {
IndexStatus.write({Index::Index0});
@@ -135,14 +135,14 @@ namespace JabyEngine {
};
struct PortIndex1 {
static inline const auto& ResponseFifo = __new_declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& SoundMapDataOut = __new_declare_io_port(SoundMapDataOut_IO, IORegister1Adr);
static inline const auto& ResponseFifo = __declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& SoundMapDataOut = __declare_io_port(SoundMapDataOut_IO, IORegister1Adr);
static inline const auto& DataFifo = __new_declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __new_declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& InterruptEnable = __new_declare_io_port(InterruptEnable_IO, IORegister2Adr);
static inline const auto& DataFifo = __declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& InterruptEnable = __declare_io_port(InterruptEnable_IO, IORegister2Adr);
static inline auto& InterruptFlag = __new_declare_io_port(InterruptFlag_IO, IORegister3Adr);
static inline auto& InterruptFlag = __declare_io_port(InterruptFlag_IO, IORegister3Adr);
static void change_to() {
IndexStatus.write({Index::Index1});
@@ -150,15 +150,15 @@ namespace JabyEngine {
};
struct PortIndex2 {
static inline const auto& ResponseFifo = __new_declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& SoundMapCoding = __new_declare_io_port(SoundMapCoding_IO, IORegister1Adr);
static inline const auto& ResponseFifo = __declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& SoundMapCoding = __declare_io_port(SoundMapCoding_IO, IORegister1Adr);
static inline const auto& DataFifo = __new_declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __new_declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& LeftCD2LeftSPU = __new_declare_io_port(LeftCD2LeftSPU_IO, IORegister2Adr);
static inline const auto& DataFifo = __declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& LeftCD2LeftSPU = __declare_io_port(LeftCD2LeftSPU_IO, IORegister2Adr);
static inline const auto& InterruptEnable = __new_declare_io_port(InterruptEnable_IO, IORegister3Adr);
static inline auto& LeftCD2RightSPU = __new_declare_io_port(LeftCD2RightSPU_IO, IORegister3Adr);
static inline const auto& InterruptEnable = __declare_io_port(InterruptEnable_IO, IORegister3Adr);
static inline auto& LeftCD2RightSPU = __declare_io_port(LeftCD2RightSPU_IO, IORegister3Adr);
static void change_to() {
IndexStatus.write({Index::Index2});
@@ -166,15 +166,15 @@ namespace JabyEngine {
};
struct PortIndex3 {
static inline const auto& ResponseFifo = __new_declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& RightCD2RightSPU = __new_declare_io_port(RightCD2RightSPU_IO, IORegister1Adr);
static inline const auto& ResponseFifo = __declare_io_port(ResponseFifo_IO, IORegister1Adr);
static inline auto& RightCD2RightSPU = __declare_io_port(RightCD2RightSPU_IO, IORegister1Adr);
static inline const auto& DataFifo = __new_declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __new_declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& RightCD2LeftSPU = __new_declare_io_port(RightCD2LeftSPU_IO, IORegister1Adr);
static inline const auto& DataFifo = __declare_io_port(DataFifo_IO, IORegister2Adr);
static inline const auto& DataFifo16 = __declare_io_port(DataFifo16_IO, IORegister2Adr);
static inline auto& RightCD2LeftSPU = __declare_io_port(RightCD2LeftSPU_IO, IORegister1Adr);
static inline const auto& InterruptFlag = __new_declare_io_port(InterruptFlag_IO, IORegister3Adr);
static inline auto& AudioVolumeApply = __new_declare_io_port(AudioVolumeApply_IO, IORegister3Adr);
static inline const auto& InterruptFlag = __declare_io_port(InterruptFlag_IO, IORegister3Adr);
static inline auto& AudioVolumeApply = __declare_io_port(AudioVolumeApply_IO, IORegister3Adr);
static void change_to() {
IndexStatus.write({Index::Index3});