Difference between revisions of "/dev/bsp/DI"

From WiiUBrew
< /dev‎ | bsp
Jump to navigation Jump to search
(Document-ish DI entity for BSP.)
 
(No difference)

Latest revision as of 08:10, 29 December 2019

Attributes

BaseAddress

Availability: This attribute is always available.

Permissions: BSP_PERMISSIONS_IOS only.

Method Data Size Values
Query 4 constant Returns 0xD006000.

IOStrength

Availability: This attribute is always available. (BSP_AO_INIT_GLOBAL)

Permissions: BSP_PERMISSIONS_IOS only.

Method Data Size Values
Init 0 Clears bits 18, 19 and 20 in HW_IOSTRCTRL0; before setting bit 18 (on Hollywood hardware), or bit 19 (on Bollywood and Latte hardware).

IOPower

Availability: This attribute is always available. (BSP_AO_INIT_GLOBAL)

Permissions: BSP_PERMISSIONS_IOS only.

Method Data Size Values
Read 1 0 or 1 Returns 1 if bits 6 and 7 are both set in HW_IOPWRCTRL, 0 otherwise.
Write 1 0 or 1 Sets bits 6 and 7 in HW_IOPWRCTRL if the input data is 1, otherwise clears them.
Query 1 constant Required IOPower state for this hardware. Hard-coded to 1 on a retail IOSU, possibly 0 on other builds.
Init 0 Calls the write method with 1 if the query value is 1, or 0 if the query value is 0.

Reset

Availability: This attribute is always available.

Permissions: BSP_PERMISSIONS_IOS only.

Method Data Size Values
Read 1 Reads RSTB_DIRSTB from HW_RESETS (via the Reset entity). Returns 1 if the device is in reset (off).
Write 1 Flips RSTB_DIRSTB in HW_RESETS (via the Reset entity) to put the device in or out of reset. Write 1 to put the device in reset (off), or 0 to allow the device to run.