ptm_sysm.cpp 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/hle/service/ptm/ptm.h"
  5. #include "core/hle/service/ptm/ptm_sysm.h"
  6. namespace Service {
  7. namespace PTM {
  8. const Interface::FunctionInfo FunctionTable[] = {
  9. // ptm:u common commands
  10. {0x00010002, nullptr, "RegisterAlarmClient"},
  11. {0x00020080, nullptr, "SetRtcAlarm"},
  12. {0x00030000, nullptr, "GetRtcAlarm"},
  13. {0x00040000, nullptr, "CancelRtcAlarm"},
  14. {0x00050000, GetAdapterState, "GetAdapterState"},
  15. {0x00060000, GetShellState, "GetShellState"},
  16. {0x00070000, GetBatteryLevel, "GetBatteryLevel"},
  17. {0x00080000, GetBatteryChargeState, "GetBatteryChargeState"},
  18. {0x00090000, nullptr, "GetPedometerState"},
  19. {0x000A0042, nullptr, "GetStepHistoryEntry"},
  20. {0x000B00C2, nullptr, "GetStepHistory"},
  21. {0x000C0000, GetTotalStepCount, "GetTotalStepCount"},
  22. {0x000D0040, nullptr, "SetPedometerRecordingMode"},
  23. {0x000E0000, nullptr, "GetPedometerRecordingMode"},
  24. {0x000F0084, nullptr, "GetStepHistoryAll"},
  25. // ptm:sysm
  26. {0x040100C0, nullptr, "SetRtcAlarmEx"},
  27. {0x04020042, nullptr, "ReplySleepQuery"},
  28. {0x04030042, nullptr, "NotifySleepPreparationComplete"},
  29. {0x04040102, nullptr, "SetWakeupTrigger"},
  30. {0x04050000, nullptr, "GetAwakeReason"},
  31. {0x04060000, nullptr, "RequestSleep"},
  32. {0x040700C0, nullptr, "ShutdownAsync"},
  33. {0x04080000, nullptr, "Awake"},
  34. {0x04090080, nullptr, "RebootAsync"},
  35. {0x040A0000, CheckNew3DS, "CheckNew3DS"},
  36. {0x08010640, nullptr, "SetInfoLEDPattern"},
  37. {0x08020040, nullptr, "SetInfoLEDPatternHeader"},
  38. {0x08030000, nullptr, "GetInfoLEDStatus"},
  39. {0x08040040, nullptr, "SetBatteryEmptyLEDPattern"},
  40. {0x08050000, nullptr, "ClearStepHistory"},
  41. {0x080600C2, nullptr, "SetStepHistory"},
  42. {0x08070082, nullptr, "GetPlayHistory"},
  43. {0x08080000, nullptr, "GetPlayHistoryStart"},
  44. {0x08090000, nullptr, "GetPlayHistoryLength"},
  45. {0x080A0000, nullptr, "ClearPlayHistory"},
  46. {0x080B0080, nullptr, "CalcPlayHistoryStart"},
  47. {0x080C0080, nullptr, "SetUserTime"},
  48. {0x080D0000, nullptr, "InvalidateSystemTime"},
  49. {0x080E0140, nullptr, "NotifyPlayEvent"},
  50. {0x080F0000, GetSoftwareClosedFlag, "GetSoftwareClosedFlag"},
  51. {0x08100000, nullptr, "ClearSoftwareClosedFlag"},
  52. {0x08110000, GetShellState, "GetShellState"},
  53. {0x08120000, nullptr, "IsShutdownByBatteryEmpty"},
  54. {0x08130000, nullptr, "FormatSavedata"},
  55. {0x08140000, nullptr, "GetLegacyJumpProhibitedFlag"},
  56. {0x08180040, nullptr, "ConfigureNew3DSCPU"},
  57. };
  58. PTM_S::PTM_S() {
  59. Register(FunctionTable);
  60. }
  61. PTM_Sysm::PTM_Sysm() {
  62. Register(FunctionTable);
  63. }
  64. } // namespace PTM
  65. } // namespace Service