mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-04 19:45:41 +00:00
44 lines
711 B
C++
44 lines
711 B
C++
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
#pragma once
|
|
#include "types.h"
|
|
|
|
class StateWrapper;
|
|
|
|
namespace DMA {
|
|
|
|
enum : u32
|
|
{
|
|
NUM_CHANNELS = 7
|
|
};
|
|
|
|
enum class Channel : u32
|
|
{
|
|
MDECin = 0,
|
|
MDECout = 1,
|
|
GPU = 2,
|
|
CDROM = 3,
|
|
SPU = 4,
|
|
PIO = 5,
|
|
OTC = 6
|
|
};
|
|
|
|
void Initialize();
|
|
void Shutdown();
|
|
void Reset();
|
|
bool DoState(StateWrapper& sw);
|
|
|
|
u32 ReadRegister(u32 offset);
|
|
void WriteRegister(u32 offset, u32 value);
|
|
|
|
void SetRequest(Channel channel, bool request);
|
|
|
|
// changing interfaces
|
|
void SetMaxSliceTicks(TickCount ticks);
|
|
void SetHaltTicks(TickCount ticks);
|
|
|
|
void DrawDebugStateWindow();
|
|
|
|
} // namespace DMA
|