NpdmInfo.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. namespace Ryujinx.HLE.Loaders.Npdm
  2. {
  3. enum FSPermissionRW : ulong
  4. {
  5. MountContentType2 = 0x8000000000000801,
  6. MountContentType5 = 0x8000000000000801,
  7. MountContentType3 = 0x8000000000000801,
  8. MountContentType4 = 0x8000000000000801,
  9. MountContentType6 = 0x8000000000000801,
  10. MountContentType7 = 0x8000000000000801,
  11. Unknown0x6 = 0x8000000000000000,
  12. ContentStorageAccess = 0x8000000000000800,
  13. ImageDirectoryAccess = 0x8000000000001000,
  14. MountBisType28 = 0x8000000000000084,
  15. MountBisType29 = 0x8000000000000080,
  16. MountBisType30 = 0x8000000000008080,
  17. MountBisType31 = 0x8000000000008080,
  18. Unknown0xD = 0x8000000000000080,
  19. SdCardAccess = 0xC000000000200000,
  20. GameCardUser = 0x8000000000000010,
  21. SaveDataAccess0 = 0x8000000000040020,
  22. SystemSaveDataAccess0 = 0x8000000000000028,
  23. SaveDataAccess1 = 0x8000000000000020,
  24. SystemSaveDataAccess1 = 0x8000000000000020,
  25. BisPartition0 = 0x8000000000010082,
  26. BisPartition10 = 0x8000000000010080,
  27. BisPartition20 = 0x8000000000010080,
  28. BisPartition21 = 0x8000000000010080,
  29. BisPartition22 = 0x8000000000010080,
  30. BisPartition23 = 0x8000000000010080,
  31. BisPartition24 = 0x8000000000010080,
  32. BisPartition25 = 0x8000000000010080,
  33. BisPartition26 = 0x8000000000000080,
  34. BisPartition27 = 0x8000000000000084,
  35. BisPartition28 = 0x8000000000000084,
  36. BisPartition29 = 0x8000000000000080,
  37. BisPartition30 = 0x8000000000000080,
  38. BisPartition31 = 0x8000000000000080,
  39. BisPartition32 = 0x8000000000000080,
  40. Unknown0x23 = 0xC000000000200000,
  41. GameCard_System = 0x8000000000000100,
  42. MountContent_System = 0x8000000000100008,
  43. HostAccess = 0xC000000000400000
  44. };
  45. enum FSPermissionBool : ulong
  46. {
  47. BisCache = 0x8000000000000080,
  48. EraseMmc = 0x8000000000000080,
  49. GameCardCertificate = 0x8000000000000010,
  50. GameCardIdSet = 0x8000000000000010,
  51. GameCardDriver = 0x8000000000000200,
  52. GameCardAsic = 0x8000000000000200,
  53. SaveDataCreate = 0x8000000000002020,
  54. SaveDataDelete0 = 0x8000000000000060,
  55. SystemSaveDataCreate0 = 0x8000000000000028,
  56. SystemSaveDataCreate1 = 0x8000000000000020,
  57. SaveDataDelete1 = 0x8000000000004028,
  58. SaveDataIterators0 = 0x8000000000000060,
  59. SaveDataIterators1 = 0x8000000000004020,
  60. SaveThumbnails = 0x8000000000020000,
  61. PosixTime = 0x8000000000000400,
  62. SaveDataExtraData = 0x8000000000004060,
  63. GlobalMode = 0x8000000000080000,
  64. SpeedEmulation = 0x8000000000080000,
  65. NULL = 0,
  66. PaddingFiles = 0xC000000000800000,
  67. SaveData_Debug = 0xC000000001000000,
  68. SaveData_SystemManagement = 0xC000000002000000,
  69. Unknown0x16 = 0x8000000004000000,
  70. Unknown0x17 = 0x8000000008000000,
  71. Unknown0x18 = 0x8000000010000000,
  72. Unknown0x19 = 0x8000000000000800,
  73. Unknown0x1A = 0x8000000000004020
  74. }
  75. enum NpdmApplicationType
  76. {
  77. SystemModule,
  78. Application,
  79. Applet
  80. }
  81. enum SvcName
  82. {
  83. svcUnknown0,
  84. svcSetHeapSize,
  85. svcSetMemoryPermission,
  86. svcSetMemoryAttribute,
  87. svcMapMemory,
  88. svcUnmapMemory,
  89. svcQueryMemory,
  90. svcExitProcess,
  91. svcCreateThread,
  92. svcStartThread,
  93. svcExitThread,
  94. svcSleepThread,
  95. svcGetThreadPriority,
  96. svcSetThreadPriority,
  97. svcGetThreadCoreMask,
  98. svcSetThreadCoreMask,
  99. svcGetCurrentProcessorNumber,
  100. svcSignalEvent,
  101. svcClearEvent,
  102. svcMapSharedMemory,
  103. svcUnmapSharedMemory,
  104. svcCreateTransferMemory,
  105. svcCloseHandle,
  106. svcResetSignal,
  107. svcWaitSynchronization,
  108. svcCancelSynchronization,
  109. svcArbitrateLock,
  110. svcArbitrateUnlock,
  111. svcWaitProcessWideKeyAtomic,
  112. svcSignalProcessWideKey,
  113. svcGetSystemTick,
  114. svcConnectToNamedPort,
  115. svcSendSyncRequestLight,
  116. svcSendSyncRequest,
  117. svcSendSyncRequestWithUserBuffer,
  118. svcSendAsyncRequestWithUserBuffer,
  119. svcGetProcessId,
  120. svcGetThreadId,
  121. svcBreak,
  122. svcOutputDebugString,
  123. svcReturnFromException,
  124. svcGetInfo,
  125. svcFlushEntireDataCache,
  126. svcFlushDataCache,
  127. svcMapPhysicalMemory,
  128. svcUnmapPhysicalMemory,
  129. svcGetFutureThreadInfo,
  130. svcGetLastThreadInfo,
  131. svcGetResourceLimitLimitValue,
  132. svcGetResourceLimitCurrentValue,
  133. svcSetThreadActivity,
  134. svcGetThreadContext3,
  135. svcWaitForAddress,
  136. svcSignalToAddress,
  137. svcUnknown1,
  138. svcUnknown2,
  139. svcUnknown3,
  140. svcUnknown4,
  141. svcUnknown5,
  142. svcUnknown6,
  143. svcDumpInfo,
  144. svcDumpInfoNew,
  145. svcUnknown7,
  146. svcUnknown8,
  147. svcCreateSession,
  148. svcAcceptSession,
  149. svcReplyAndReceiveLight,
  150. svcReplyAndReceive,
  151. svcReplyAndReceiveWithUserBuffer,
  152. svcCreateEvent,
  153. svcUnknown9,
  154. svcUnknown10,
  155. svcMapPhysicalMemoryUnsafe,
  156. svcUnmapPhysicalMemoryUnsafe,
  157. svcSetUnsafeLimit,
  158. svcCreateCodeMemory,
  159. svcControlCodeMemory,
  160. svcSleepSystem,
  161. svcReadWriteRegister,
  162. svcSetProcessActivity,
  163. svcCreateSharedMemory,
  164. svcMapTransferMemory,
  165. svcUnmapTransferMemory,
  166. svcCreateInterruptEvent,
  167. svcQueryPhysicalAddress,
  168. svcQueryIoMapping,
  169. svcCreateDeviceAddressSpace,
  170. svcAttachDeviceAddressSpace,
  171. svcDetachDeviceAddressSpace,
  172. svcMapDeviceAddressSpaceByForce,
  173. svcMapDeviceAddressSpaceAligned,
  174. svcMapDeviceAddressSpace,
  175. svcUnmapDeviceAddressSpace,
  176. svcInvalidateProcessDataCache,
  177. svcStoreProcessDataCache,
  178. svcFlushProcessDataCache,
  179. svcDebugActiveProcess,
  180. svcBreakDebugProcess,
  181. svcTerminateDebugProcess,
  182. svcGetDebugEvent,
  183. svcContinueDebugEvent,
  184. svcGetProcessList,
  185. svcGetThreadList,
  186. svcGetDebugThreadContext,
  187. svcSetDebugThreadContext,
  188. svcQueryDebugProcessMemory,
  189. svcReadDebugProcessMemory,
  190. svcWriteDebugProcessMemory,
  191. svcSetHardwareBreakPoint,
  192. svcGetDebugThreadParam,
  193. svcUnknown11,
  194. svcGetSystemInfo,
  195. svcCreatePort,
  196. svcManageNamedPort,
  197. svcConnectToPort,
  198. svcSetProcessMemoryPermission,
  199. svcMapProcessMemory,
  200. svcUnmapProcessMemory,
  201. svcQueryProcessMemory,
  202. svcMapProcessCodeMemory,
  203. svcUnmapProcessCodeMemory,
  204. svcCreateProcess,
  205. svcStartProcess,
  206. svcTerminateProcess,
  207. svcGetProcessInfo,
  208. svcCreateResourceLimit,
  209. svcSetResourceLimitLimitValue,
  210. svcCallSecureMonitor
  211. };
  212. }