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

Changes

Jump to navigation Jump to search
664 bytes removed ,  22:46, 4 May 2021
Removed the intro stuff as that’s now on /dev/stm
Line 1: Line 1: −
The State Transition Manager handles transitioning between power states (idle, on, standby, reset, etc). It has event handlers for GPIO (power button), the reset button and the DI cover.
+
This device is used by synchronous STM calls.
 
  −
Unless otherwise noted, ioctls take in an input buffer of 0x20 bytes and an io buffer of 0x20 bytes, e.g.
  −
 
  −
static u8 stm_inbuf[0x20] ATTRIBUTE_ALIGN(32);
  −
static u8 stm_iobuf[0x20] ATTRIBUTE_ALIGN(32);
  −
 
  −
retval = IOS_Ioctl(fd, ioctl_no, inbuf, 0x20, outbuf, 0x20);
  −
 
  −
The contents of the buffers do not matter.
  −
 
  −
=== Events ===
  −
{| class="wikitable"
  −
|-
  −
! Event
  −
! Notes
  −
|-
  −
| 0x00020000
  −
| Triggered when the reset button is pressed.
  −
|-
  −
| 0x00000800
  −
| Triggered when the power button is pressed (by the GPIO event handler).
  −
|}
      
=== Ioctls (/dev/stm/eventhook)  ===
 
=== Ioctls (/dev/stm/eventhook)  ===
5,579

edits

Navigation menu