Hi! We're discussing a clarification of the content license; please look over to Current events if you're interested in editing.
RaphaelDEX
From Htc-linux
| ioctl | cmd | description | nparam | parameters |
| 0x0 | ? | ? | ||
| 0x1 | ? | 0 | ||
| 18 | 0x2 | pmic wlan on | 0 | |
| 18 | 0x3 | pmic wlan off | 0 | |
| 1c | 0x4 | pmic vibra on | 0 | |
| 1c | 0x5 | pmic vibra off | 0 | |
| 20 | 0x6 | pmic IR on | 0 | |
| 20 | 0x7 | pmic IR off | 0 | |
| 24 | 0x8 | pmic cam on | 0 | |
| 24 | 0x9 | pmic cam off | 0 | |
| 28 | 0xa | pmic vga cam on | 0 | |
| 28 | 0xb | pmic vga cam off | 0 | |
| 2c | 0xc | pmic sd on | 0 | |
| 2c | 0xd | pmic sd off | 0 | |
| 30 | 0xe | pmic lcd on | 0 | |
| 30 | 0xf | pmic lcd off | 0 | |
| 34 | 0x10 | pmic mddi on | 0 | |
| 34 | 0x11 | pmic mddi off | 0 | |
| 38 | 0x12 | pmic bt on | 0 | |
| 38 | 0x13 | pmic bt off | 0 | |
| - | 0x14 | shutdown by arm9, power suspend | 0 | |
| 3c | 0x15 | pmic reg * on | 1 | |
| 3c | 0x16 | pmic reg * off | 1 | |
| 40 | 0x17 | vibra motor on | 0 | |
| 40 | 0x18 | vibra motor off | 0 | |
| 44 | 0x19 | set audio path | 1 | |
| 48 | 0x1a | pmic reg X set voltage Y | 2 | |
| 4c | 0x1b | setusb_dplus | 1 | |
| 54 | 0x1c | update audio | 1 | |
| 90 | 0x1d | ARM9 low speed | 1 | 0-7?, =2 low |
| 58 | 0x1e | register vocoder pcm | 1 | |
| 5c | 0x1f | unregister vocoder pcm | 1 | |
| 60 | 0x20 | set clock on | 1 | |
| 80? | 0x20 | Get USB dminus (raph800) | 0 | |
| 64 | 0x21 | set clock off | 1 | |
| 84 | 0x21 | Get USB dplus (raph800) | 0 | |
| 68? | 0x22 | restart arm9 | 0 | |
| 84 | 0x25 | pmic tvout auto on | 0 | |
| 84 | 0x26 | pmic tvout auto off | 0 | |
| ?? | 0x30 | LCD status | 1 | |
| 70 | 0x31 | Config MPP pins | 0 | |
| ?? | 0x32 | Set charger status | 1 | |
| ?? | 0x33 | Task register | 1 | |
| ?? | 0x34 | Power Off Device? | 0 / 1: Task deregister? | |
| -- | 0x81 | Read RTC from arm9 | 0 | |
| -- | 0x82 | Write RTC to arm9 | 1 | |
| -- | 0x84 | Set RTC Alarm to arm9 | 1 | |
| 4 | 0x85 | ? | ? | |
| 8 | 0x86 | ? | ? | |
| c | 0x87 | ? | ? | |
| 10 | 0x88 | ? | ? | |
| 14 | 0x89 | ? | ? | |
| 74 | 0x8a | get battery data | 0 | |
| -- | 0x8b | get battery id | 0 | |
| -- | 0x8e | notify arm9 reboot | 0 | |
| 6c | 0x90 | ? | ? | |
| 78 | 0x91 | get tx pwr | 0 | |
| 7c | 0x92 | get network band | 0 | |
| 80 | 0x93 | get gsm tx band | 0 | |
| 50 | 0xa1 | ? | 0 | |
| -- | 0xa2 | get sleep clock | 0 | |
| 88 | 0xa4 | fota read | 0 | |
| 8c | 0xa5 | fota write | 1 | |
| 70 | 0xXX | generic | ? |
For VREG see MSM_VREG :
RTC:
22:44:43 [K] DEX:A=>M,CMD[0x82]
[K] M2A_6:Kernel[0x82]
[K] Finish to set RTC 0x36a7addb to ARM9
22:44:43 [K] DEX:A=>M,CMD[0x81]
[K] M2A_6:Kernel[0x81]
22:44:43 [K] M=>A, DATA = 916958683
[K] Get RTC 0x36a7addb from ARM9 ok
(CDMA) Battery (DEX 0x8b):
ServiceStatus= 0xfc140 - 1B Technology= 0xfc141 - 1B HDR Packet/1X Service= 0xfc144 - 4B CDMA Band= 0xfc148 - 4B TX Power Level= 0xfc14e - 2B RX Power Level= 0xfc14c - 2B Diversity= 0xfc150 - 4B
