mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 09:59:32 -06:00
CommandProcessor: Limit scope of ugly SCPFifoStruct.
It's only used as an interface between two classes. So no need to declare it in the backend export header.
This commit is contained in:
@ -15,7 +15,35 @@ class Mapping;
|
||||
|
||||
namespace CommandProcessor
|
||||
{
|
||||
extern SCPFifoStruct fifo; // This one is shared between gfx thread and emulator thread.
|
||||
struct SCPFifoStruct
|
||||
{
|
||||
// fifo registers
|
||||
volatile u32 CPBase;
|
||||
volatile u32 CPEnd;
|
||||
u32 CPHiWatermark;
|
||||
u32 CPLoWatermark;
|
||||
volatile u32 CPReadWriteDistance;
|
||||
volatile u32 CPWritePointer;
|
||||
volatile u32 CPReadPointer;
|
||||
volatile u32 CPBreakpoint;
|
||||
volatile u32 SafeCPReadPointer;
|
||||
|
||||
volatile u32 bFF_GPLinkEnable;
|
||||
volatile u32 bFF_GPReadEnable;
|
||||
volatile u32 bFF_BPEnable;
|
||||
volatile u32 bFF_BPInt;
|
||||
volatile u32 bFF_Breakpoint;
|
||||
|
||||
volatile u32 bFF_LoWatermarkInt;
|
||||
volatile u32 bFF_HiWatermarkInt;
|
||||
|
||||
volatile u32 bFF_LoWatermark;
|
||||
volatile u32 bFF_HiWatermark;
|
||||
};
|
||||
|
||||
// This one is shared between gfx thread and emulator thread.
|
||||
// It is only used by the Fifo and by the CommandProcessor.
|
||||
extern SCPFifoStruct fifo;
|
||||
|
||||
// internal hardware addresses
|
||||
enum
|
||||
@ -138,4 +166,6 @@ void SetCpClearRegister();
|
||||
void SetCpControlRegister();
|
||||
void SetCpStatusRegister();
|
||||
|
||||
void HandleUnknownOpcode(u8 cmd_byte, void* buffer, bool preprocess);
|
||||
|
||||
} // namespace CommandProcessor
|
||||
|
Reference in New Issue
Block a user