diff options
Diffstat (limited to 'src/core/hle/service/gsp.cpp')
| -rw-r--r-- | src/core/hle/service/gsp.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp new file mode 100644 index 000000000..6dfd76de3 --- /dev/null +++ b/src/core/hle/service/gsp.cpp | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | |||
| 6 | #include "common/log.h" | ||
| 7 | |||
| 8 | #include "core/hle/hle.h" | ||
| 9 | #include "core/hle/service/gsp.h" | ||
| 10 | |||
| 11 | namespace GSP_GPU { | ||
| 12 | |||
| 13 | const HLE::FunctionDef FunctionTable[] = { | ||
| 14 | {0x00010082, NULL, "WriteHWRegs"}, | ||
| 15 | {0x00020084, NULL, "WriteHWRegsWithMask"}, | ||
| 16 | {0x00030082, NULL, "WriteHWRegRepeat"}, | ||
| 17 | {0x00040080, NULL, "ReadHWRegs"}, | ||
| 18 | {0x00050200, NULL, "SetBufferSwap"}, | ||
| 19 | {0x00060082, NULL, "SetCommandList"}, | ||
| 20 | {0x000700C2, NULL, "RequestDma"}, | ||
| 21 | {0x00080082, NULL, "FlushDataCache"}, | ||
| 22 | {0x00090082, NULL, "InvalidateDataCache"}, | ||
| 23 | {0x000A0044, NULL, "RegisterInterruptEvents"}, | ||
| 24 | {0x000B0040, NULL, "SetLcdForceBlack"}, | ||
| 25 | {0x000C0000, NULL, "TriggerCmdReqQueue"}, | ||
| 26 | {0x000D0140, NULL, "SetDisplayTransfer"}, | ||
| 27 | {0x000E0180, NULL, "SetTextureCopy"}, | ||
| 28 | {0x000F0200, NULL, "SetMemoryFill"}, | ||
| 29 | {0x00100040, NULL, "SetAxiConfigQoSMode"}, | ||
| 30 | {0x00110040, NULL, "SetPerfLogMode"}, | ||
| 31 | {0x00120000, NULL, "GetPerfLog"}, | ||
| 32 | {0x00130042, NULL, "RegisterInterruptRelayQueue"}, | ||
| 33 | {0x00140000, NULL, "UnregisterInterruptRelayQueue"}, | ||
| 34 | {0x00150002, NULL, "TryAcquireRight"}, | ||
| 35 | {0x00160042, NULL, "AcquireRight"}, | ||
| 36 | {0x00170000, NULL, "ReleaseRight"}, | ||
| 37 | {0x00180000, NULL, "ImportDisplayCaptureInfo"}, | ||
| 38 | {0x00190000, NULL, "SaveVramSysArea"}, | ||
| 39 | {0x001A0000, NULL, "RestoreVramSysArea"}, | ||
| 40 | {0x001B0000, NULL, "ResetGpuCore"}, | ||
| 41 | {0x001C0040, NULL, "SetLedForceOff"}, | ||
| 42 | {0x001D0040, NULL, "SetTestCommand"}, | ||
| 43 | {0x001E0080, NULL, "SetInternalPriorities"}, | ||
| 44 | }; | ||
| 45 | |||
| 46 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 47 | // Interface class | ||
| 48 | |||
| 49 | Interface::Interface() { | ||
| 50 | Register(FunctionTable, ARRAY_SIZE(FunctionTable)); | ||
| 51 | } | ||
| 52 | |||
| 53 | Interface::~Interface() { | ||
| 54 | } | ||
| 55 | |||
| 56 | } // namespace | ||