Bus services: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 24: | Line 24: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! | ! GpioPadName || GpioPadDescriptor | ||
|- | |- | ||
| 2 || 0x24 | | 2 || 0x24 | ||
| Line 46: | Line 46: | ||
Same as [[#OpenSession]] but panics on failure. | Same as [[#OpenSession]] but panics on failure. | ||
== | == GpioPadDescriptor == | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Revision as of 18:01, 2 July 2017
gpio
| Cmd | Name |
|---|---|
| 0 | OpenSessionForDev |
| 1 | #OpenSession |
| 2 | #OpenSessionForTest |
| 3 | IsWakeEventActive |
| 4 | GetWakeEventActiveFlagSet |
| 5 | SetWakeEventActiveFlagSetForDebug |
| 6 |
OpenSession
Same thing as OpenSessionForDev except the descriptor is looked up in a table:
| GpioPadName | GpioPadDescriptor |
|---|---|
| 2 | 0x24 |
| 4 | 0xDA |
| 5 | 0xDB |
| 6 | 0xDC |
| 7 | 0x25 |
| 8 | 0x90 |
| 9 | 0x91 |
| .. | .. |
OpenSessionForTest
Same as #OpenSession but panics on failure.
GpioPadDescriptor
| Bits | Description |
|---|---|
| 7-5 | Controller index |
| 4-3 | Port index |
| 2-0 | Pin number |
i2c
| Cmd | Name | Notes |
|---|---|---|
| 0 | Black screen hang. | |
| 1 | Takes a word. Returns a session handle. | |
| 2 | Returns a u8/bool. | |
| 3 | Black screen hang. |
i2c:pcv
uart
| Cmd | Name | Notes |
|---|---|---|
| 0 | Returns a u8/bool. | |
| 1 | Returns a u8/bool. | |
| 2 | Returns a u8/bool. | |
| 3 | Returns a u8/bool. | |
| 4 | Takes marshalled arguments. | |
| 5 | Takes marshalled arguments. | |
| 6 | Returns a handle to an IPC session #IUartSubinterface. |
IUartSubinterface
| Cmd | Name | Notes |
|---|---|---|
| 0 | Takes marshalled arguments | |
| 1 | Takes marshalled arguments | |
| 2 | ||
| 3 | Takes marshalled arguments | |
| 4 | Returns 2x u64. Both zero. |