In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "/dev/mcp"

From WiiUBrew
Jump to navigation Jump to search
(more ioctls)
Line 121: Line 121:
 
|-
 
|-
 
| 0x30
 
| 0x30
|  
+
| MCP_ResetOnPanicEnable
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 128: Line 128:
 
|-
 
|-
 
| 0x31
 
| 0x31
|  
+
| MCP_ResetOnPanicState
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 149: Line 149:
 
|-
 
|-
 
| 0x42
 
| 0x42
|  
+
| MCP_SetSysProdSettings
 
| ?
 
| ?
 
| 0x0010
 
| 0x0010
Line 156: Line 156:
 
|-
 
|-
 
| 0x47
 
| 0x47
 +
| MCP_GetPreciseTitleSize
 +
| PPC only?
 +
|
 +
|
 +
|
 +
|-
 +
| 0x4B
 +
| MCP_PreloadTitleFolder
 
|  
 
|  
| PPC only?
 
 
|  
 
|  
 
|  
 
|  
Line 226: Line 233:
 
|-
 
|-
 
| 0x5E
 
| 0x5E
| Yes
+
|  
 
|  
 
|  
 
|  
 
|  
Line 233: Line 240:
 
|-
 
|-
 
| 0x5F
 
| 0x5F
| ?
+
| MCP_GetTitleSize
 
|  
 
|  
 
|  
 
|  
Line 252: Line 259:
 
|  
 
|  
 
| COS-KERNEL only?
 
| COS-KERNEL only?
 +
|-
 +
| 0x62
 +
|MCP_SetDefaultTitleId
 +
|
 +
|
 +
|
 +
|
 
|-
 
|-
 
| 0x63
 
| 0x63
Line 261: Line 275:
 
|-
 
|-
 
| 0x64
 
| 0x64
|  
+
| MCP_DisablePowerOffOnCrash
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 268: Line 282:
 
|-
 
|-
 
| 0x65
 
| 0x65
|  
+
| MCP_GetDefaultTitleId
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
 +
|
 +
|
 +
|-
 +
| 0x66
 +
| MCP_RequestPowerOff
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x67
 +
| MCP_GetSATALimiterState
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x68
 +
| MCP_SetSATALimiterState
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x69
 +
| MCP_GetTitleSATALimiterState
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x6A
 +
| MCP_SetDefaultEcoTitleId
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x6B
 +
| MCP_GetDefaultEcoTitleId
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 278: Line 334:
 
| No
 
| No
 
| 0x0004
 
| 0x0004
 +
|
 +
|
 +
|-
 +
| 0x73
 +
| MCP_PatchDeleteVersionList
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x74
 +
| MCP_PatchGetVersionListVersion
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 283: Line 353:
 
| 0x7D
 
| 0x7D
 
| MCP_InstallGetAocSize2
 
| MCP_InstallGetAocSize2
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x7F
 +
| MCP_InitializeIvs
 
|  
 
|  
 
|  
 
|  
Line 348: Line 425:
 
| No
 
| No
 
| 0x0004
 
| 0x0004
 +
|
 +
|
 +
|-
 +
| 0x89
 +
| MCP_GetSystemVersion
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 355: Line 439:
 
| No
 
| No
 
| 0x0080
 
| 0x0080
 +
|
 +
|
 +
|-
 +
| 0x8D
 +
| MCP_InstallSetTargetDevice
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 397: Line 488:
 
| No
 
| No
 
| 0x0004
 
| 0x0004
 +
|
 +
|
 +
|-
 +
| 0x96
 +
| MCP_UpdateCheckResume
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 413: Line 511:
 
|  
 
|  
 
|
 
|
 +
|-
 +
| 0x99
 +
| MCP_UpdateCheckContext
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x9A
 +
| MCP_UpdateContextSetUserFlag
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x9B
 +
| MCP_UpdateContextReadUserFlag
 +
|
 +
|
 +
|
 +
|
 
|-
 
|-
 
| 0xA0
 
| 0xA0
Line 436: Line 555:
 
|-
 
|-
 
| 0xC0
 
| 0xC0
|  
+
| MCP_DeleteUserDataWithException
 
| No
 
| No
 
| 0x0008
 
| 0x0008
Line 443: Line 562:
 
|-
 
|-
 
| 0xC1
 
| 0xC1
|  
+
| MCP_GetSystemLog
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 450: Line 569:
 
|-
 
|-
 
| 0xC2
 
| 0xC2
|  
+
| MCP_FormatExternalStorage
 
| No
 
| No
 
| 0x0008
 
| 0x0008
Line 457: Line 576:
 
|-
 
|-
 
| 0xC3
 
| 0xC3
|  
+
| MCP_ChangeSystemMode
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 464: Line 583:
 
|-
 
|-
 
| 0xC4
 
| 0xC4
|  
+
| MCP_GetSystemMode
 
| No
 
| No
 
| None
 
| None
 +
|
 +
|
 +
|-
 +
| 0xC5
 +
| MCP_ChangeSystemMemoryEmuMode
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
 
|-
 
|-
 
| 0xC6
 
| 0xC6
|  
+
| MCP_GetSystemMemoryEmuMode
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 478: Line 604:
 
|-
 
|-
 
| 0xC7
 
| 0xC7
|  
+
| MCP_ExternalStorageLock
 
| No
 
| No
 
| None
 
| None
 +
|
 +
|
 +
|-
 +
| 0xC8
 +
| MCP_ExternalStorageUnlock
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
 
|-
 
|-
 
| 0xC9
 
| 0xC9
|  
+
| MCP_GetFastRelaunchEnable
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 492: Line 625:
 
|-
 
|-
 
| 0xCA
 
| 0xCA
|  
+
| MCP_SetFastRelaunchEnable
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 499: Line 632:
 
|-
 
|-
 
| 0xCB
 
| 0xCB
|  
+
| MCP_GetSystemCrashLog
 
| No
 
| No
 
| 0x200
 
| 0x200
Line 506: Line 639:
 
|-
 
|-
 
| 0xCC
 
| 0xCC
|  
+
| MCP_GetSystemCrashFlag
 
| No
 
| No
 
| 0x0008
 
| 0x0008
Line 513: Line 646:
 
|-
 
|-
 
| 0xCD
 
| 0xCD
|  
+
| MCP_TriggerCrashLogCollection(&Ex)
 
| No
 
| No
 
| None
 
| None
Line 520: Line 653:
 
|-
 
|-
 
| 0xCE
 
| 0xCE
|  
+
| MCP_GetSystemCrashLogDescription
 
| Debug only
 
| Debug only
 
| 0x0008
 
| 0x0008
Line 548: Line 681:
 
|-
 
|-
 
| 0xD3
 
| 0xD3
|  
+
| MCP_GetDeviceId
 
| Yes
 
| Yes
 
|  
 
|  
Line 583: Line 716:
 
|-
 
|-
 
| 0xD8
 
| 0xD8
|  
+
| MCP_GetCompatDeviceId
 
| No
 
| No
 
| 0x0010
 
| 0x0010
Line 597: Line 730:
 
|-
 
|-
 
| 0xDA
 
| 0xDA
|  
+
| MCP_FindContentInfos
 
| No
 
| No
 
| 0x0010
 
| 0x0010
Line 712: Line 845:
 
| No
 
| No
 
| 0x0004
 
| 0x0004
 +
|
 +
|
 +
|-
 +
| 0xFC
 +
| MCP_InstallUtilGetTitleEnability
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 744: Line 884:
 
|-
 
|-
 
| 0x111
 
| 0x111
|  
+
| MCP_DemoLaunchGetRemainder
 
| No
 
| No
 
| 0x0008
 
| 0x0008
Line 761: Line 901:
 
| No
 
| No
 
| 0x0080
 
| 0x0080
 +
|
 +
|
 +
|-
 +
| 0x122
 +
| MCP_AocTestScanned
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x123
 +
| MCP_AocLockTitle
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x124
 +
| MCP_AocUnlockTitle
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
Line 768: Line 929:
 
| No
 
| No
 
| 0x0010
 
| 0x0010
 +
|
 +
| COS-KERNEL only?
 +
|-
 +
| 0x132
 +
| MCP_ChangeStandbySettings
 +
|
 +
|
 
|  
 
|  
 
|  
 
|  
 
|-
 
|-
| 0x125
+
| 0x133
 +
| MCP_GetStandbySettings
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x134
 +
| MCP_ChangeEcoWDSetting
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x135
 +
| MCP_Get4SecondOffStatus
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x138
 +
| MCP_SetSyslogFilterMask
 +
|
 +
|
 +
|
 +
|
 +
|-
 +
| 0x139
 +
| MCP_GetSyslogFilterMask
 +
|
 
|  
 
|  
| No
 
 
|  
 
|  
 
|  
 
|  
| COS-KERNEL only?
 
 
|-
 
|-
 
| 0x140
 
| 0x140
Line 849: Line 1,045:
 
|-
 
|-
 
| 0x160
 
| 0x160
|  
+
| MCP_WagonUCreateArchive
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 856: Line 1,052:
 
|-
 
|-
 
| 0x161
 
| 0x161
|  
+
| MCP_WagonUInstallArchive
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 863: Line 1,059:
 
|-
 
|-
 
| 0x162
 
| 0x162
|  
+
| MCP_WagonUEstimateArchiveSizeEx
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 870: Line 1,066:
 
|-
 
|-
 
| 0x163
 
| 0x163
|  
+
| MCP_WagonUGetProgress
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 877: Line 1,073:
 
|-
 
|-
 
| 0x164
 
| 0x164
|  
+
| MCP_WagonUCheckArchiveExists
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 884: Line 1,080:
 
|-
 
|-
 
| 0x165
 
| 0x165
|  
+
| MCP_WagonUDeleteArchive
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 891: Line 1,087:
 
|-
 
|-
 
| 0x166
 
| 0x166
|  
+
| MCP_WagonUFormatDestination
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 898: Line 1,094:
 
|-
 
|-
 
| 0x167
 
| 0x167
|  
+
| MCP_WagonUSetSessionId
 
| No
 
| No
 
| 0x0400
 
| 0x0400
Line 912: Line 1,108:
 
|-
 
|-
 
| 0x171
 
| 0x171
|  
+
| MCP_AppTagGetEnability
 
| No
 
| No
 
| 0x0010
 
| 0x0010
Line 919: Line 1,115:
 
|-
 
|-
 
| 0x173
 
| 0x173
|  
+
| MCP_AppTagRollback
 
| No
 
| No
 
| 0x0004
 
| 0x0004
Line 926: Line 1,122:
 
|-
 
|-
 
| 0x175
 
| 0x175
|  
+
| MCP_AppTagRemove
 
| No
 
| No
 
| 0x0004
 
| 0x0004
Line 933: Line 1,129:
 
|-
 
|-
 
| 0x176
 
| 0x176
|  
+
| MCP_AppTagGetSize
 
| No
 
| No
 
| 0x0010
 
| 0x0010
Line 961: Line 1,157:
 
|-
 
|-
 
| 0x180
 
| 0x180
|  
+
| MCP_NominalTitleGetTitleId
 
| No
 
| No
 
| 0x0010
 
| 0x0010

Revision as of 08:00, 26 April 2016

List of functions (Ioctl/Ioctlv)

Command Function ARM only Permissions Description Notes
0x01 MCP_LaunchCompat No 0x0002
0x02 MCP_CompatLoadAVFile No 0x0002
0x03 MCP_CompatCopyFile No 0x0042
0x04 MCP_CompatGetVersion No 0x0002
0x05 MCP_CompatWagonSourcePrepare No 0x0400
0x06 MCP_CompatWagonSourceComplete Yes 0x400
0x07 MCP_CompatWagonDestinationPrepare No 0x0400
0x08 MCP_CompatWagonDestinationComplete No 0x400
0x09 MCP_CompatWagonDeleteContext No 0x400
0x0A MCP_CompatWagonCreateContext No 0x0400
0x0B MCP_CompatWagonDeleteArchiveHash No 0x0400
0x0C MCP_CompatExPrepareLaunch No 0x0002
0x0D MCP_CompatExLaunch No 0x0002
0x0E MCP_CompatHaiCreateCompanionFile No 0x0002
0x10 No COS-KERNEL only?
0x20 MCP_GetEnvironmentVariable No COS-KERNEL only?
0x30 MCP_ResetOnPanicEnable Debug only 0x0008
0x31 MCP_ResetOnPanicState Debug only 0x0008
0x40 MCP_GetSysProdSettings No 0x0010
0x41 Debug only 0x0008
0x42 MCP_SetSysProdSettings ? 0x0010
0x47 MCP_GetPreciseTitleSize PPC only?
0x4B MCP_PreloadTitleFolder
0x4C MCP_GetOwnTitleInfo
0x4D MCP_TitleCount ? ?
0x50 MCP_CloseTitle No
0x51 MCP_PrepareTitle No
0x53 MCP_LoadFile No
0x57 MCP_GetFileLength No
0x58 MCP_TitleList ? ?
0x5A MCP_GetLaunchParameters No
0x5B MCP_GetTitleId
0x5E
0x5F MCP_GetTitleSize PPC only?
0x60 MCP_SetAbsoluteSystemTime No COS-KERNEL only?
0x61 MCP_GetAbsoluteSystemTime No COS-KERNEL only?
0x62 MCP_SetDefaultTitleId
0x63 MCP_SetPowerButtonEnabled No COS-KERNEL only?
0x64 MCP_DisablePowerOffOnCrash Debug only 0x0008
0x65 MCP_GetDefaultTitleId Debug only 0x0008
0x66 MCP_RequestPowerOff
0x67 MCP_GetSATALimiterState
0x68 MCP_SetSATALimiterState
0x69 MCP_GetTitleSATALimiterState
0x6A MCP_SetDefaultEcoTitleId
0x6B MCP_GetDefaultEcoTitleId
0x72 MCP_PatchGetVersion No 0x0004
0x73 MCP_PatchDeleteVersionList
0x74 MCP_PatchGetVersionListVersion
0x7D MCP_InstallGetAocSize2
0x7F MCP_InitializeIvs
0x80 MCP_InstallGetInfo No 0x0004
0x81 MCP_InstallTitleAsync No 0x0004
0x82 MCP_InstallGetProgress
0x83 MCP_DeleteTitleAsync No 0x0008
0x84 MCP_UninstallTitleAsync No? 0x0008?
0x85 MCP_CopyTitleAsync No 0x0004
0x86 Debug only 0x0004
0x86 No 0x0004
0x88 No 0x0004
0x89 MCP_GetSystemVersion
0x8C MCP_DeleteContentAsync No 0x0080
0x8D MCP_InstallSetTargetDevice
0x8E MCP_DeleteTicketsAsync
0x90 MCP_UpdateCheckAsync No 0x0008
0x91 MCP_UpdatePerformAsync No 0x0004
0x92 MCP_UpdateGetProgress No 0x0004
0x93 MCP_UpdatePrepareUpdaterAsync No 0x0008
0x95 MCP_UpdateGetPathByAppTypeAsync No 0x0004
0x96 MCP_UpdateCheckResume
0x97 MCP_UpdateClearContextAsync
0x98 MCP_UpdateCheckUpdaterVersion No 0x0008
0x99 MCP_UpdateCheckContext
0x9A MCP_UpdateContextSetUserFlag
0x9B MCP_UpdateContextReadUserFlag
0xA0 MCP_TitleListUpdateGetNext ? ?
0xA1 Yes IOS-MCP internal only
0xA2 MCP_TitleListUpdateCancel No None?
0xC0 MCP_DeleteUserDataWithException No 0x0008
0xC1 MCP_GetSystemLog Debug only 0x0008
0xC2 MCP_FormatExternalStorage No 0x0008
0xC3 MCP_ChangeSystemMode Debug only 0x0008
0xC4 MCP_GetSystemMode No None
0xC5 MCP_ChangeSystemMemoryEmuMode
0xC6 MCP_GetSystemMemoryEmuMode Debug only 0x0008
0xC7 MCP_ExternalStorageLock No None
0xC8 MCP_ExternalStorageUnlock
0xC9 MCP_GetFastRelaunchEnable Debug only 0x0008
0xCA MCP_SetFastRelaunchEnable Debug only 0x0008
0xCB MCP_GetSystemCrashLog No 0x200
0xCC MCP_GetSystemCrashFlag No 0x0008
0xCD MCP_TriggerCrashLogCollection(&Ex) No None
0xCE MCP_GetSystemCrashLogDescription Debug only 0x0008
0xD0 Yes
0xD1 Yes
0xD2 Yes
0xD3 MCP_GetDeviceId Yes
0xD4 MCP_GetContentInfos No 0x0010
0xD5 Yes
0xD6 MCP_GetTicketViews No 0x0084
0xD7 No 0x0004
0xD8 MCP_GetCompatDeviceId No 0x0010
0xD9 No 0x0004
0xDA MCP_FindContentInfos No 0x0010
0xDB Yes
0xDC MCP_GetTicketItemRights No 0x0084
0xDD Yes
0xDE MCP_GetInstalledContentCount No 0x0010
0xDF MCP_GetInstalledContentIndices No 0x0010
0xF0 MCP_InstallGetSize No 0x0004
0xF1 MCP_InstallSetTargetUsb No 0x0004
0xF2 No 0x0004
0xF3 No 0x0004
0xF4 No 0x0004
0xF5 No 0x0004
0xF6 No 0x0004
0xF7 No 0x0004
0xF9 No 0x0004
0xFA No 0x0004
0xFB MCP_InstallGetRequiredSize No 0x0004
0xFC MCP_InstallUtilGetTitleEnability
0xFD MCP_DeleteTitleDoneAsync No 0x0008
0xFE MCP_CopyTitleDoneAsync No 0x0004
0xFF MCP_CopyGetRequiredSize No 0x0004
0x100 No 0x0010
0x111 MCP_DemoLaunchGetRemainder No 0x0008
0x120 No 0x0080
0x121 No 0x0080
0x122 MCP_AocTestScanned
0x123 MCP_AocLockTitle
0x124 MCP_AocUnlockTitle
0x125 MCP_AocGetOpenInfo No 0x0010 COS-KERNEL only?
0x132 MCP_ChangeStandbySettings
0x133 MCP_GetStandbySettings
0x134 MCP_ChangeEcoWDSetting
0x135 MCP_Get4SecondOffStatus
0x138 MCP_SetSyslogFilterMask
0x139 MCP_GetSyslogFilterMask
0x140 MCP_CopyTitleAbort
0x141 MCP_DeleteTitleAbort
0x142 MCP_InstallTitleAbort
0x143 MCP_InstallCleanupAsync No 0x0004
0x147 MCP_CreateLinkedTitlePackage No 0x0004
0x148 MCP_DeleteLinkedTitlePackage No 0x0004
0x149 No 0x0004
0x150 MCP_GetInstalledTitleVersion No 0x0010
0x151 No 0x0010
0x152 No 0x0010
0x160 MCP_WagonUCreateArchive No 0x0400
0x161 MCP_WagonUInstallArchive No 0x0400
0x162 MCP_WagonUEstimateArchiveSizeEx No 0x0400
0x163 MCP_WagonUGetProgress No 0x0400
0x164 MCP_WagonUCheckArchiveExists No 0x0400
0x165 MCP_WagonUDeleteArchive No 0x0400
0x166 MCP_WagonUFormatDestination No 0x0400
0x167 MCP_WagonUSetSessionId No 0x0400
0x170 MCP_AppTagSetEnability No
0x171 MCP_AppTagGetEnability No 0x0010
0x173 MCP_AppTagRollback No 0x0004
0x175 MCP_AppTagRemove No 0x0004
0x176 MCP_AppTagGetSize No 0x0010
0x177 MCP_AppTagReadWithPos No
0x178 MCP_AppTagWriteWithPos No
0x179 MCP_AppTagTruncateWithPos No
0x180 MCP_NominalTitleGetTitleId No 0x0010