gsp.cpp 1.9 KB

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