Difference between revisions of "/dev/stm/immediate"
Jump to navigation
Jump to search
(wow, this is old) |
|||
Line 1: | Line 1: | ||
− | + | The State Transition Manager handles transitioning between power states (idle, on, standby, reset, etc). | |
− | |||
+ | <!-- this isn't true .. fixme | ||
In all code that has been studied, the ioctls take in an input buffer of 0x20 bytes and an io buffer of 0x20 bytes, e.g. | In all code that has been studied, the ioctls take in an input buffer of 0x20 bytes and an io buffer of 0x20 bytes, e.g. | ||
Line 10: | Line 10: | ||
The contents of the buffers do not seem to matter for the shutdown / reset functions. You should not expect to actually receive a return code, due to the nature of the functions -- any return value can then be treated as some sort of error. | The contents of the buffers do not seem to matter for the shutdown / reset functions. You should not expect to actually receive a return code, due to the nature of the functions -- any return value can then be treated as some sort of error. | ||
− | + | --> | |
− | |||
− | |||
− | |||
− | === | + | === Ioctls === |
− | + | {| class="wikitable" | |
− | + | |- | |
− | This will | + | ! Ioctl |
+ | ! Function | ||
+ | ! Notes | ||
+ | |- | ||
+ | | 0x2001 | ||
+ | | STM_HotReset | ||
+ | | This will reset the Wii. | ||
+ | |- | ||
+ | | 0x2003 | ||
+ | | STM_ShutdownToStandby | ||
+ | | This will power the Wii off (red LED). | ||
+ | |- | ||
+ | | 0x2004 | ||
+ | | STM_ShutdownToIdle | ||
+ | | This will power the Wii off (yellow LED), leaving IOS running to service WC24 events. | ||
+ | |- | ||
+ | | 0x2005 | ||
+ | | STM_Wakeup | ||
+ | | This will turn the Wii on (green LED), generally launching the System Menu. | ||
+ | |- | ||
+ | | 0x3001 | ||
+ | | STM_GetState | ||
+ | | Determines whether or not IOS is currently running in idle mode (yellow light on) | ||
+ | |- | ||
+ | | 0x3002 | ||
+ | | STM_UnregisterStateEvent | ||
+ | | tbd | ||
+ | |- | ||
+ | | 0x5001 | ||
+ | | STM_SetVIForceDimming | ||
+ | | The 32-bit parameter changes the brightness it sets the screen to. The parameter is the first word of inbuf. The brightness change stays until either the Wii reboots, or it is changed back. | ||
+ | |- | ||
+ | | 0x6001 | ||
+ | | STM_FlashLED | ||
+ | | Please figure out what I do and update me! 32-bit parameter is passed in as the first word of inbuf. | ||
+ | |- | ||
+ | | 0x6002 | ||
+ | | STM_SetIdleLEDMode | ||
+ | | Please figure out what I do and update me! 32-bit parameter is passed in as the first word of inbuf. | ||
+ | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:IOS API documentation]] | [[Category:IOS API documentation]] |
Revision as of 14:03, 4 May 2010
The State Transition Manager handles transitioning between power states (idle, on, standby, reset, etc).
Ioctls
Ioctl | Function | Notes |
---|---|---|
0x2001 | STM_HotReset | This will reset the Wii. |
0x2003 | STM_ShutdownToStandby | This will power the Wii off (red LED). |
0x2004 | STM_ShutdownToIdle | This will power the Wii off (yellow LED), leaving IOS running to service WC24 events. |
0x2005 | STM_Wakeup | This will turn the Wii on (green LED), generally launching the System Menu. |
0x3001 | STM_GetState | Determines whether or not IOS is currently running in idle mode (yellow light on) |
0x3002 | STM_UnregisterStateEvent | tbd |
0x5001 | STM_SetVIForceDimming | The 32-bit parameter changes the brightness it sets the screen to. The parameter is the first word of inbuf. The brightness change stays until either the Wii reboots, or it is changed back. |
0x6001 | STM_FlashLED | Please figure out what I do and update me! 32-bit parameter is passed in as the first word of inbuf. |
0x6002 | STM_SetIdleLEDMode | Please figure out what I do and update me! 32-bit parameter is passed in as the first word of inbuf. |