Duckstation/src/core/mdec.h

27 lines
505 B
C
Raw Permalink Normal View History

2024-09-01 12:08:31 +00:00
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: PolyForm-Strict-1.0.0
2019-09-29 02:51:34 +00:00
#pragma once
2024-09-01 12:08:31 +00:00
2019-09-29 02:51:34 +00:00
#include "types.h"
class StateWrapper;
2022-12-20 10:45:42 +00:00
namespace MDEC {
2019-09-29 02:51:34 +00:00
2022-12-20 10:45:42 +00:00
void Initialize();
void Shutdown();
void Reset();
bool DoState(StateWrapper& sw);
2019-09-29 02:51:34 +00:00
2022-12-20 10:45:42 +00:00
// I/O
u32 ReadRegister(u32 offset);
void WriteRegister(u32 offset, u32 value);
2019-09-29 02:51:34 +00:00
2022-12-20 10:45:42 +00:00
void DMARead(u32* words, u32 word_count);
void DMAWrite(const u32* words, u32 word_count);
2019-09-29 02:51:34 +00:00
2022-12-20 10:45:42 +00:00
void DrawDebugStateWindow();
2019-09-29 02:51:34 +00:00
2022-12-20 10:45:42 +00:00
} // namespace MDEC