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:
degasus
2017-01-27 09:44:31 +01:00
parent 017e8050b6
commit 3787af9ee9
5 changed files with 74 additions and 72 deletions

View File

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