SceLowio: Difference between revisions
(→SceGpioForDriver: Add missing functions and documentation) |
|||
Line 1,436: | Line 1,436: | ||
</source> | </source> | ||
=== | === sceGpioSetPortModeForDriver === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 3.60-3.74 || | | 3.60-3.74 || 0x372022A4 | ||
|} | |} | ||
Set the port mode (input/output) of a port. | |||
<source lang="c"> | <source lang="c"> | ||
// | //mode: one of the port mode defines | ||
// | //Returns the old mode on success, <0 on error. | ||
int | int sceGpioSetPortModeForDriver(int bus, int port, int mode); | ||
</source> | </source> | ||
=== | === sceGpioGetPortModeForDriver === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 1,460: | Line 1,460: | ||
|} | |} | ||
Get the current port mode (input/output) of a port. | |||
<source lang="c"> | <source lang="c"> | ||
// | //Returns one of the port mode defines on success, <0 on error. | ||
int sceGpioGetPortModeForDriver(int bus, int port); | |||
int | |||
</source> | </source> | ||
Line 1,480: | Line 1,479: | ||
<source lang="c"> | <source lang="c"> | ||
//mode: one of the interrupt mode defines | //mode: one of the interrupt mode defines | ||
int sceGpioSetIntrModeForDriver(int bus, int port, int mode); | int sceGpioSetIntrModeForDriver(int bus, int port, int mode); | ||
</source> | |||
=== sceGpioGetIntrModeForDriver === | |||
{| class="wikitable" | |||
|- | |||
! Version !! NID | |||
|- | |||
| 3.74 || 0xE97A3B31 | |||
|} | |||
Get the current interrupt mode of a port. | |||
<source lang="c"> | |||
//Returns one of the interrupt modes on success, <0 on error. | |||
int sceGpioGetIntrModeForDriver(int bus, int port); | |||
</source> | </source> | ||
Line 1,492: | Line 1,505: | ||
|} | |} | ||
Set | Set a GPIO port. | ||
<source lang="c">int sceGpioPortSetForDriver(int bus, int port);</source> | <source lang="c">int sceGpioPortSetForDriver(int bus, int port);</source> | ||
Line 1,504: | Line 1,517: | ||
|} | |} | ||
Clear | Clear a GPIO port. | ||
<source lang="c">int sceGpioPortClearForDriver(int bus, int port);</source> | <source lang="c">int sceGpioPortClearForDriver(int bus, int port);</source> | ||
=== SceGpioForDriver_129DF5AC === | |||
{| class="wikitable" | |||
|- | |||
! Version !! NID | |||
|- | |||
| 3.74 || 0x129DF5AC | |||
|} | |||
Read the value of a port. Both input and output ports are accepted (in the latter case, latch value is returned). | |||
<source lang="c"> | |||
//Returns SCE_TRUE if the port was set, SCE_FALSE if it was clear, <0 on error. | |||
int SceGpioForDriver_129DF5AC(int bus, int port); | |||
</source> | |||
=== SceGpioForDriver_A1B5A462 === | |||
{| class="wikitable" | |||
|- | |||
! Version !! NID | |||
|- | |||
| 3.74 || 0xA1B5A462 | |||
|} | |||
Read an input port, and "write" the opposite of its state (Clear if read as 1, Set if read as 0). | |||
<source lang="c"> | |||
//Returns SCE_TRUE if the port was set, SCE_FALSE if it was clear, <0 on error. | |||
int SceGpioForDriver_A1B5A462(int bus, int port); | |||
</source> | |||
=== sceGpioQueryIntrForDriver === | |||
{| class="wikitable" | |||
|- | |||
! Version !! NID | |||
|- | |||
| 3.60-3.74 || 0x010DC295 | |||
|} | |||
Check if interrupts are pending on a port. | |||
<source lang="c"> | |||
//Returns SCE_FALSE if no interrupts are pending on port, | |||
//SCE_TRUE if interrupts are pending, <0 on error. | |||
int sceGpioQueryIntrForDriver(int bus, int port); | |||
</source> | |||
=== sceGpioAcquireIntrForDriver === | === sceGpioAcquireIntrForDriver === | ||
Line 1,513: | Line 1,572: | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 3.60 || 0x35AAD77A | | 3.60-3.74 || 0x35AAD77A | ||
|} | |} | ||
<source lang="c">int sceGpioAcquireIntrForDriver(int bus, int | Clear all pending interrupts on a port. | ||
<source lang="c"> | |||
//Returns SCE_TRUE if an interrupt was pending, | |||
//SCE_FALSE if no interrupts were pending, <0 on error. | |||
int sceGpioAcquireIntrForDriver(int bus, int port); | |||
</source> | |||
== ScePwmForDriver == | == ScePwmForDriver == |
Revision as of 11:34, 5 April 2023
Module
Version | World | Privilege |
---|---|---|
1.69-3.65 | Non-secure | Kernel |
Libraries
Known NIDs
Version | Name | World | Visibility | NID |
---|---|---|---|---|
1.69 | ScePervasiveForDriver | Non-secure | Kernel | 0xE692C727 |
1.69 | SceGpioForDriver | Non-secure | Kernel | 0xF0EF5743 |
1.69 | ScePwmForDriver | Non-secure | Kernel | 0xECEAE2D0 |
1.69 | SceI2cForDriver | Non-secure | Kernel | 0xE14BEF6E |
1.69 | SceGrabForDriver | Non-secure | Kernel | 0x81C54BED |
1.69 | SceCdramForDriver | Non-secure | Kernel | 0xC8CD941E |
1.69 | SceDsiForDriver | Non-secure | Kernel | 0xEC897883 |
1.69 | SceIftuForDriver | Non-secure | Kernel | 0xCAFCFE50 |
1.69 | SceCsiForDriver | Non-secure | Kernel | 0xD85C8E44 |
ScePervasiveForDriver
scePervasiveArmClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xE9D95643 |
Temp name was scePervasiveArmSetClockForDriver.
Used only by ScePower.
int scePervasiveArmClockSelectForDriver(SceUInt32 freq_level1, SceUInt32 freq_level2);
scePervasiveGpuClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x6AF0196F |
Temp name was scePervasiveGpuSetClockForDriver.
Maybe called on each suspend/resume.
// freq_level1: 3 (default value), 5 when DIP Switch 236 (GPU overclock) is set int scePervasiveGpuClockSelectForDriver(SceUInt32 freq_level1, SceUInt32 freq_level2);
scePervasiveVeneziaClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x725B4F59 |
Temp name was scePervasiveVeneziaSetClockForDriver.
int scePervasiveVeneziaClockSelectForDriver(SceUInt32 freq_level);
scePervasiveVipClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x12D17D47 |
Temp name was scePervasiveVipSetClockForDriver.
int scePervasiveVipClockSelectForDriver(SceUInt32 freq_level);
scePervasiveDmac5ClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xA6832B33 |
This is a guessed name. Temp name was scePervasiveDmac5SetClockForDriver.
int scePervasiveDmac5ClockSelectForDriver(SceUInt32 freq_level);
scePervasiveBusClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xC0F7CC39 |
Temp name was scePervasiveBusSetClockForDriver.
Requests ARM TrustZone using SMC 0x114.
int scePervasiveBusClockSelectForDriver(SceUInt32 freq_level);
scePervasiveSysClockSelectForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x98D8914A |
This is a guessed name. Temp name was scePervasiveSysSetClockForDriver.
int scePervasiveSysClockSelectForDriver(SceUInt32 freq_level);
ScePervasiveForDriver_64ABE589
Version | NID |
---|---|
0.990.000-3.740.011 | 0x64ABE589 |
A good name could be scePervasiveMsifClockSelectForDriver.
int ScePervasiveForDriver_64ABE589(SceUInt32 freq_level);
ScePervasiveForDriver_91C80C41
Version | NID |
---|---|
0.990.000-3.740.011 | 0x91C80C41 |
A good name might be scePervasiveIftuDsiClockSelectForDriver. Temp name was ScePervasiveForDriver_91C80C41_set_dsi_bus_pixelclock, scePervasiveDsiSetPixelClockForDriver.
Sets DSI bus (?IFTU?) pixel clock.
int ScePervasiveForDriver_91C80C41(int bus, SceUInt32 freq_level);
scePervasiveCameraBusClockSelectForDriver
Version | NID |
---|---|
0.931.010-3.740.011 | 0x589D0291 |
// freq_level can be either 2 (DOWN) or 5 (UP) int scePervasiveCameraBusClockSelectForDriver(SceUInt32 freq_level);
scePervasiveGetSoCRevisionForDriver
Version | NID |
---|---|
0.931.010-3.740.011 | 0x714EEFB7 |
Returns <= 0 if Kermit revision is below 2.0. Example of return value: between 0 and 25, and something higher.
Seen values: 66 on a PCH-11xx, 277 on a PCH-2xxx.
if val & 0x30000000 is zero, it is not a DevKit.
if val & 0x80000000 is not zero, LPDDR2SUB is disabled.
Used in ScePower, SceGpuEs4, SceSdif. Maybe copied to SceSysmem's sysroot structure.
SceUInt32 scePervasiveGetSoCRevisionForDriver(void);
scePervasiveCecClockOutEnableForDriver
Version | NID |
---|---|
0.931.010-3.740.011 | 0x26B51075 |
scePervasiveCecClockOutDisableForDriver
Version | NID |
---|---|
0.931.010-3.740.011 | 0xD185D235 |
ScePervasiveForDriver_243D0E78
Version | NID |
---|---|
0.990.000-3.740.011 | 0x243D0E78 |
Gets IFTU DSI clock information.
int ScePervasiveForDriver_243D0E78(int pixelclock, int info0[2], int info1[2]);
scePervasiveGpuResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x3E79D3D3 |
This is a guessed name.
Puts the device (Gpu) at offset 0x10
in reset (|= mask) with mask = 1.
int scePervasiveGpuResetEnableForDriver(void);
scePervasiveVipResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x28731EC5 |
This is a guessed name.
Puts the device (Vip) at offset 0x30
in reset (|= mask) with mask = 1.
int scePervasiveVipResetEnableForDriver(void);
ScePervasiveForDriver_31C0A98B
Version | NID |
---|---|
0.990.000-3.740.011 | 0x31C0A98B |
Puts the device (unknown) at offset 0x34
in reset (|= mask) with mask = 1.
int ScePervasiveForDriver_31C0A98B(void);
ScePervasiveForDriver_FF4B3CA6
Version | NID |
---|---|
0.990.000-3.740.011 | 0xFF4B3CA6 |
Puts the device (unknown) at offset 0x50 + device * 4
in reset (|= mask) with mask = 1.
int ScePervasiveForDriver_FF4B3CA6(int device);
scePervasiveCsiResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x66BF2885 |
This is a guessed name.
Puts the device (Csi) at offset 0x70 + head * 4
in reset (|= mask) with mask = 1.
int scePervasiveCsiResetEnableForDriver(SceDisplayHead head);
scePervasiveIftuDsiResetEnableForDriver
Version | NID |
---|---|
0.931.010-3.740.011 | 0xE3FC1C8D |
Temp name was ScePervasiveForDriver_E3FC1C8D_dsi_reset_enter, scePervasiveDsiResetEnableForDriver.
Puts the device (IFTU DSI) at offset 0x80 + device * 4
in reset (|= mask).
int scePervasiveIftuDsiResetEnableForDriver(int device, int mask);
ScePervasiveForDriver_B68254AD
Version | NID |
---|---|
0.990.000-3.740.011 | 0xB68254AD |
Puts the device (IFTU2) at offset 0x88
in reset (|= mask) with mask = 1.
int ScePervasiveForDriver_B68254AD(void);
ScePervasiveForDriver_7AE2F8E8
Version | NID |
---|---|
0.990.000-3.740.011 | 0x7AE2F8E8 |
Puts the device (unknown) at offset 0x8C
in reset (|= mask) with mask = 1.
int ScePervasiveForDriver_7AE2F8E8(void);
scePervasiveUdcResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x4AF7A01E |
This is a guessed name.
Puts the device (Udc) at offset 0x90 + device * 4
in reset (|= mask).
int scePervasiveUdcResetEnableForDriver(int device, int mask);
scePervasiveSdifResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x3D8A8712 |
This is a guessed name.
Puts the device (Sdif) at offset 0xA0 + device * 4
in reset (|= mask) with mask = 1.
int scePervasiveSdifResetEnableForDriver(void);
scePervasiveMsifResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xA3569FF1 |
This is a guessed name.
Puts the device (Msif) at offset 0xB0
in reset (|= mask) with mask = 1.
int scePervasiveMsifResetEnableForDriver(void);
scePervasiveI2sResetEnableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x146108D4 |
This is a guessed name.
Puts the device (I2s) at offset 0xC0 + device * 4
in reset (|= mask) with mask = 1.
int scePervasiveI2sResetEnableForDriver(int device);
scePervasiveSrcMixResetEnableForDriver
Version | NID |
---|---|
3.60 | 0x821AE6C7 |
This is a guessed name.
Puts the device (SrcMix) at offset 0xE0 + device * 4
in reset (|= mask) with mask = 1.
int scePervasiveSrcMixResetEnableForDriver(int device);
scePervasiveSpdifResetEnableForDriver
Version | NID |
---|---|
3.60 | 0xB8AF1249 |
This is a guessed name.
Puts the device (Spdif) at offset 0xF0
in reset (|= mask) with mask = 1.
int scePervasiveSpdifResetEnableForDriver(void);
scePervasiveGpioResetEnableForDriver
Version | NID |
---|---|
3.60 | 0x731A097D |
This is a guessed name.
Puts the device (GPIO) at offset 0x100
in reset (|= mask) with mask = 1.
int scePervasiveGpioResetEnableForDriver(void);
scePervasiveSpiResetEnableForDriver
Version | NID |
---|---|
3.60 | 0x7B16F900 |
This is a guessed name.
Puts the device (SPI) at offset 0x104 + device * 4
in reset (|= mask) with mask = 1.
int scePervasiveSpiResetEnableForDriver(int device);
scePervasiveI2cResetEnableForDriver
Version | NID |
---|---|
3.60 | 0x41F9E1C3 |
This is a guessed name.
Puts the device (I2c) at offset 0x110 + device * 4
in reset (|= mask) with mask = 1.
int scePervasiveI2cResetEnableForDriver(int device);
scePervasiveUartResetEnableForDriver
Version | NID |
---|---|
3.60 | 0x788B6C61 |
This is a guessed name.
Puts the device (UART) at offset 0x120 + uart_bus * 4
in reset (|= mask) with mask = 1.
int scePervasiveUartResetEnableForDriver(int uart_bus);
scePervasiveGpuResetDisableForDriver
Version | NID |
---|---|
3.60 | 0x8A85E36B |
This is a guessed name.
Puts the device (Gpu) at offset 0x10
out of reset (&= ~mask) with mask = 1.
int scePervasiveGpuResetDisableForDriver(void);
scePervasiveVipResetDisableForDriver
Version | NID |
---|---|
0.931-3.60 | 0xA7E64C6F |
This is a guessed name.
Puts the device (Vip) at offset 0x30
out of reset (&= ~mask) with mask = 1.
Used to reset Venezia.
int scePervasiveVipResetDisableForDriver(void);
ScePervasiveForDriver_E2D8F6C3
Version | NID |
---|---|
3.60 | 0xE2D8F6C3 |
Puts the device (unknown) at offset 0x34
out of reset (&= ~mask) with mask = 1.
int ScePervasiveForDriver_E2D8F6C3(int device);
ScePervasiveForDriver_AC475961
Version | NID |
---|---|
3.60 | 0xAC475961 |
Puts the device (unknown) at offset 0x50 + device * 4
out of reset (&= ~mask) with mask = 1.
int ScePervasiveForDriver_AC475961(int device);
scePervasiveCsiResetDisableForDriver
Version | NID |
---|---|
3.60 | 0xD3B59C33 |
This is a guessed name.
Puts the device (Csi) at offset 0x70 + head * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveCsiResetDisableForDriver(SceDisplayHead head);
scePervasiveIftuDsiResetDisableForDriver
Version | NID |
---|---|
0.931-3.60 | 0xFFB43AC2 |
Temp name was scePervasiveDsiResetDisableForDriver.
Puts the device (IFTU DSI) at offset 0x80 + device * 4
out of reset (&= ~mask).
int scePervasiveIftuDsiResetDisableForDriver(int device, int mask);
ScePervasiveForDriver_E92E28FF
Version | NID |
---|---|
3.60 | 0xE92E28FF |
Puts the device (IFTU2) at offset 0x88
out of reset (&= ~mask) with mask = 1.
int ScePervasiveForDriver_E92E28FF(void);
ScePervasiveForDriver_17109C28
Version | NID |
---|---|
3.60 | 0x17109C28 |
Puts the device (unknown) at offset 0x8C
out of reset (&= ~mask) with mask = 1.
int ScePervasiveForDriver_17109C28(void);
scePervasiveUdcResetDisableForDriver
Version | NID |
---|---|
3.60 | 0x13CC07C9 |
This is a guessed name.
Puts the device (Udc) at offset 0x90 + device * 4
out of reset (&= ~mask).
int scePervasiveUdcResetDisableForDriver(int device, int mask);
scePervasiveSdifResetDisableForDriver
Version | NID |
---|---|
3.60 | 0xD326E15F |
This is a guessed name.
Puts the device (Sdif) at offset 0xA0 + device * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveSdifResetDisableForDriver(int device);
scePervasiveMsifResetDisableForDriver
Version | NID |
---|---|
3.60 | 0xCB0F15CD |
This is a guessed name.
Puts the device (Msif) at offset 0xB0
out of reset (&= ~mask) with mask = 1.
int scePervasiveMsifResetDisableForDriver(void);
scePervasiveI2sResetDisableForDriver
Version | NID |
---|---|
3.60 | 0xEEE340ED |
This is a guessed name.
Puts the device (I2s) at offset 0xC0 + device * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveI2sResetDisableForDriver(int device);
scePervasiveSrcMixResetDisableForDriver
Version | NID |
---|---|
3.60 | 0x5BAFA0DC |
This is a guessed name.
Puts the device (SrcMix) at offset 0xE0 + device * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveSrcMixResetDisableForDriver(int device);
scePervasiveSpdifResetDisableForDriver
Version | NID |
---|---|
3.60 | 0x6A2FB697 |
This is a guessed name.
Puts the device (Spdif) at offset 0xF0
out of reset (&= ~mask) with mask = 1.
int scePervasiveSpdifResetDisableForDriver(void);
scePervasiveGpioResetDisableForDriver
Version | NID |
---|---|
3.60 | 0x78C34032 |
This is a guessed name.
Puts the device (GPIO) at offset 0x100
out of reset (&= ~mask) with mask = 1.
int scePervasiveGpioResetDisableForDriver(void);
scePervasiveSpiResetDisableForDriver
Version | NID |
---|---|
3.60 | 0xE4B145AE |
This is a guessed name.
Puts the device (SPI) at offset 0x104 + device * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveSpiResetDisableForDriver(int device);
scePervasiveI2cResetDisableForDriver
Version | NID |
---|---|
3.60 | 0x86BEA9A4 |
This is a guessed name.
Puts the device (I2c) at offset 0x110 + device * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveI2cResetDisableForDriver(int device);
scePervasiveUartResetDisableForDriver
Version | NID |
---|---|
3.60 | 0xA7CE7DCC |
This is a guessed name.
Puts the device (UART) at offset 0x120 + uart_bus * 4
out of reset (&= ~mask) with mask = 1.
int scePervasiveUartResetDisableForDriver(int uart_bus);
scePervasiveRemovableMemoryGetCardInsertStateForDriver
Version | NID |
---|---|
3.60 | 0x551EEE82 |
int scePervasiveRemovableMemoryGetCardInsertStateForDriver(void);
ScePervasiveForDriver_81A155F1
Version | NID |
---|---|
3.60 | 0x81A155F1 |
Returns SceLowio's mapped ScePervasiveMisc virtual address.
void *ScePervasiveForDriver_81A155F1(void);
ScePervasiveForDriver_8BAB45F8
Version | NID |
---|---|
3.60 | 0x8BAB45F8 |
Changes UART baudrate of one of the 7 UART bus. See SceUartClkgenReg for more information.
int ScePervasiveForDriver_8BAB45F8(int uart_bus, int baudrate);
scePervasiveGpuClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x39E51AE2 |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Gpu) at offset 0x10
.
int scePervasiveGpuClkGateEnableForDriver(int mask);
scePervasiveDmacClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xA10583FF |
This is a guessed name.
Enables DMAC clock gate.
int scePervasiveDmacClkGateEnableForDriver(int device);
scePervasiveDmacClkGateDisableForDriver
Version | NID |
---|---|
3.60 | 0x15237AF8 |
This is a guessed name.
Disables DMAC clock gate.
int scePervasiveDmacClkGateDisableForDriver(int device);
scePervasiveDbgSdioClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xD34E74C5 |
This is a guessed name.
Enables SceDbgSdio clock gate.
int scePervasiveDbgSdioClkGateEnableForDriver(int device);
scePervasiveDbgSdioClkGateDisableForDriver
Version | NID |
---|---|
3.60 | 0x701D5355 |
This is a guessed name.
Disables SceDbgSdio clock gate.
int scePervasiveDbgSdioClkGateDisableForDriver(int device);
scePervasiveVipClkGateEnable1ForDriver
Version | NID |
---|---|
1.69-3.60 | 0xFB01A2DD |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Vip) at offset 0x30
with mask = 1.
Used to initialize Venezia registers or SPRAM.
int scePervasiveVipClkGateEnable1ForDriver(void);
scePervasiveVipClkGateEnable2ForDriver
Version | NID |
---|---|
3.60 | 0xB9904983 |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Vip) at offset 0x30
with mask = 2.
int scePervasiveVipClkGateEnable2ForDriver(void);
ScePervasiveForDriver_B1CFA18F
Version | NID |
---|---|
3.60 | 0xB1CFA18F |
Turns on the clock gate (|= mask) of the device (unknown) at offset 0x34
with mask = 1.
int ScePervasiveForDriver_B1CFA18F(void);
scePervasiveCsiClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x1068C067 |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Csi) at offset 0x70 + head * 4
with mask = 1.
int scePervasiveCsiClkGateEnableForDriver(SceDisplayHead head);
scePervasiveIftuDsiClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xBC42C72F |
Temp name was scePervasiveDsiClockEnableForDriver.
Turns on the clock gate (|= mask) of the device (IFTU DSI) at offset 0x80 + device * 4
.
int scePervasiveIftuDsiClkGateEnableForDriver(int device, int mask);
ScePervasiveForDriver_07F2A738
Version | NID |
---|---|
3.60 | 0x07F2A738 |
Turns on the clock gate (|= mask) of the device (IFTU2) at offset 0x88
with mask = 1.
int ScePervasiveForDriver_07F2A738(void);
ScePervasiveForDriver_C0C842FE
Version | NID |
---|---|
3.60 | 0xC0C842FE |
Turns on the clock gate (|= mask) of the device (unknown) at offset 0x8C
with mask = 1.
int ScePervasiveForDriver_C0C842FE(void);
scePervasiveUdcClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xA2EFD7AF |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Udc) at offset 0x90 + device * 4
.
int scePervasiveUdcClkGateEnableForDriver(int device, int mask);
scePervasiveSdifClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x3CF7A012 |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Sdif) at offset 0xA0 + device * 4
with mask = 1.
int scePervasiveSdifClkGateEnableForDriver(int device);
scePervasiveMsifClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x7704C013 |
This is a guessed name. Temp name was scePervasiveMsifClockEnableForDriver.
Turns on the clock gate (|= mask) of the device (Msif) at offset 0xB0
with mask = 1.
int scePervasiveMsifClkGateEnableForDriver(void);
scePervasiveI2sClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x4235EB7D |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (I2s) at offset 0xC0 + device * 4
with mask = 1.
int scePervasiveI2sClkGateEnableForDriver(int device);
scePervasiveSrcMixClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x47F2C35C |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (SrcMix) at offset 0xE0 + device * 4
with mask = 1.
int scePervasiveSrcMixClkGateEnableForDriver(int device);
scePervasiveSpdifClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x6B5DEDA2 |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (Spdif) at offset 0xF0
with mask = 1.
int scePervasiveSpdifClkGateEnableForDriver(void);
scePervasiveGpioClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0x2F195C97 |
This is a guessed name. Temp name was scePervasiveGpioClockEnableForDriver.
Turns on the clock gate (|= mask) of the device (GPIO) at offset 0x100
with mask = 1.
int scePervasiveGpioClkGateEnableForDriver(void);
scePervasiveSpiClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xDFD96BFC |
This is a guessed name. Temp name was scePervasiveSpiClockEnableForDriver.
Turns on the clock gate (|= mask) of the device (SPI) at offset 0x104 + device * 4
with mask = 1.
int scePervasiveSpiClkGateEnableForDriver(int device);
scePervasiveI2cClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xC37CFDFC |
This is a guessed name.
Turns on the clock gate (|= mask) of the device (I2c) at offset 0x110 + device * 4
with mask = 1.
int scePervasiveI2cClkGateEnableForDriver(int device);
scePervasiveUartClkGateEnableForDriver
Version | NID |
---|---|
3.60 | 0xEFD084D8 |
This is a guessed name. Temp name was scePervasiveUartClockEnableForDriver.
Turns on the clock gate (|= mask) of the device (UART) at offset 0x120 + device * 4
with mask = 1.
int scePervasiveUartClkGateEnableForDriver(int device);
scePervasiveGpuClkGateDisableForDriver
Version | NID |
---|---|
3.60 | 0xCA0ACFC5 |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Gpu) at offset 0x10
.
int scePervasiveGpuClkGateDisableForDriver(int mask);
scePervasiveVipClkGateDisable1ForDriver
Version | NID |
---|---|
1.69-3.60 | 0x2EEBE9AE |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Vip) at offset 0x30
with mask = 1.
Used to initialize Venezia registers or SPRAM.
int scePervasiveVipClkGateDisable1ForDriver(void);
scePervasiveVipClkGateDisable2ForDriver
Version | NID |
---|---|
3.60 | 0xFBE5AA2F |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Vip) at offset 0x30
with mask = 2.
int scePervasiveVipClkGateDisable2ForDriver(void);
ScePervasiveForDriver_03E1FAA6
Version | NID |
---|---|
3.60 | 0x03E1FAA6 |
Turns off the clock gate (&= ~mask) of the device (unknown) at offset 0x34
with mask = 1.
int ScePervasiveForDriver_03E1FAA6(void);
scePervasiveCsiClkGateDisableForDriver
Version | NID |
---|---|
3.60 | 0x4B223AF5 |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Csi) at offset 0x70 + head * 4
with mask = 1.
int scePervasiveCsiClkGateDisableForDriver(SceDisplayHead head);
scePervasiveIftuDsiClkGateDisableForDriver
Version | NID |
---|---|
0.931-3.60 | 0x25AE181E |
Temp name was ScePervasiveForDriver_25AE181E_dsi_clock_disable, scePervasiveDsiClockDisableForDriver.
Turns off the clock gate (&= ~mask) of the device (IFTU DSI) at offset 0x80 + device * 4
.
int scePervasiveIftuDsiClkGateDisableForDriver(int device, int mask);
ScePervasiveForDriver_5AFE0AF0
Version | NID |
---|---|
0.990.000-3.740.011 | 0x5AFE0AF0 |
Turns off the clock gate (&= ~mask) of the device (IFTU2) at offset 0x88
with mask = 1.
int ScePervasiveForDriver_5AFE0AF0(void);
ScePervasiveForDriver_9BB7B932
Version | NID |
---|---|
0.990.000-3.740.011 | 0x9BB7B932 |
Turns off the clock gate (&= ~mask) of the device (unknown) at offset 0x8C
with mask = 1.
int ScePervasiveForDriver_9BB7B932(void);
scePervasiveUdcClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xAD1E81EB |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Udc) at offset 0x90 + device * 4
.
int scePervasiveUdcClkGateDisableForDriver(int device, int mask);
scePervasiveSdifClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x4E43299D |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Sdif) at offset 0xA0 + device * 4
with mask = 1.
int scePervasiveSdifClkGateDisableForDriver(int device);
scePervasiveMsifClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x2A9778CD |
This is a guessed name. Temp name was scePervasiveMsifClockDisableForDriver.
Turns off the clock gate (&= ~mask) of the device (Msif) at offset 0xB0
with mask = 1.
int scePervasiveMsifClkGateDisableForDriver(void);
scePervasiveI2sClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xA3CF9844 |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (I2s) at offset 0xC0 + device * 4
with mask = 1.
int scePervasiveI2sClkGateDisableForDriver(int device);
scePervasiveSrcMixClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xF861FEE4 |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (SrcMix) at offset 0xE0 + device * 4
with mask = 1.
int scePervasiveSrcMixClkGateDisableForDriver(int device);
scePervasiveSpdifClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x51981FEE |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (Spdif) at offset 0xF0
with mask = 1.
int scePervasiveSpdifClkGateDisableForDriver(void);
scePervasiveGpioClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xEB176898 |
This is a guessed name. Temp name was scePervasiveGpioClockDisableForDriver.
Turns off the clock gate (&= ~mask) of the device (GPIO) at offset 0x100
with mask = 1.
int scePervasiveGpioClkGateDisableForDriver(void);
scePervasiveSpiClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0xA85BF98A |
This is a guessed name. Temp name was scePervasiveSpiClockDisableForDriver.
Turns off the clock gate (&= ~mask) of the device (SPI) at offset 0x104 + device * 4
with mask = 1.
int scePervasiveSpiClkGateDisableForDriver(int device);
scePervasiveI2cClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x3F3E1AEA |
This is a guessed name.
Turns off the clock gate (&= ~mask) of the device (I2c) at offset 0x110 + device * 4
with mask = 1.
int scePervasiveI2cClkGateDisableForDriver(int device);
scePervasiveUartClkGateDisableForDriver
Version | NID |
---|---|
0.990.000-3.740.011 | 0x18DD8043 |
This is a guessed name. Temp name was scePervasiveUartClockDisableForDriver.
Turns off the clock gate (&= ~mask) of the device (UART) at offset 0x120 + device * 4
with mask = 1.
int scePervasiveUartClkGateDisableForDriver(int device);
ScePervasiveForDriver_4F64DEF6
Version | NID |
---|---|
0.990.000-3.740.011 | 0x4F64DEF6 |
Sets active bus for UDC (USB Device Controller).
Step 1: Puts the device (Udc) at offset 0x90 + bus * 4
in reset then disables its clock gate.
Step 2: Updates ScePervasiveMisc global with the selected bus.
Step 3: Puts the device out of reset.
int ScePervasiveForDriver_4F64DEF6(int bus);
ScePervasiveForDriver_47708C03
Version | NID |
---|---|
0.990.000-3.740.011 | 0x47708C03 |
Returns address to the ScePervasiveVid global buffer. What does "Vid" stands for? Video? Vendor ID?
It might be related to clock frequencies and Syscon. Maybe this value is the clock multiplier/divider. See Pervasive#ARM_Clocks.
Used by ScePower.
void *ScePervasiveForDriver_47708C03(void);
ScePervasiveForDriver_E0711D42
Version | NID |
---|---|
0.990.000-3.740.011 | 0xE0711D42 |
Calls SMC 0x110: smc_bus_set_state(1, 0);
Used by SceEnumWakeUp.
int ScePervasiveForDriver_E0711D42(void);
scePervasiveCompatStopForDriver
Version | NID |
---|---|
0.931.010 | not present |
0.990.000-3.740.011 | 0x4712740D |
Calls SMC 0x110: smc_bus_set_state(2, 0);
Called in SceCompat#sceCompatSuspend and SceCompat#sceCompatStop.
int scePervasiveCompatStopForDriver(void);
scePervasiveCompatStartForDriver
Version | NID |
---|---|
0.931.010 | not present |
0.990.000-3.740.011 | 0xB2F232E5 |
Calls SMC 0x110: smc_bus_set_state(2, 1);
Called in SceCompat#sceCompatResume and SceCompat#sceCompatInit.
int scePervasiveCompatStartForDriver(void);
scePervasiveCompatLcdDmacInitForDriver
Version | NID |
---|---|
0.931.010 | not present |
0.990.000-3.740.011 | 0xA7855D3A |
Calls SMC 0x110: smc_bus_set_state(2, 2);
Called during PSP Emulator (SceCompat) start and resume.
int scePervasiveCompatLcdDmacInitForDriver(void);
ScePervasiveForDriver_043B33F5
Version | NID |
---|---|
0.931.010-1.692.000 | not present |
1.800.071-3.740.011 | 0x043B33F5 |
ScePervasiveForDriver_29E65AE1
Version | NID |
---|---|
0.931.010-2.060.011 | not present |
2.100.081-3.740.011 | 0x29E65AE1 |
ScePervasiveForDriver_E3A735B9
Version | NID |
---|---|
0.931.010-2.060.011 | not present |
2.100.081-3.740.011 | 0xE3A735B9 |
SceGpioForDriver
If bus
is 0
, the SceGpio0Reg
registers are used, and if bus
is 1
, the SceGpio1Reg
registers are used.
Types
//For port mode #define SCE_GPIO_PORT_MODE_OUTPUT 0 #define SCE_GPIO_PORT_MODE_INPUT 1 //For interrupt mode #define SCE_GPIO_INTR_MODE_HIGH_SENSING 0 //High-level sensing #define SCE_GPIO_INTR_MODE_LOW_SENSING 1 //Low-level sensing #define SCE_GPIO_INTR_MODE_RISING_EDGE 2 //Rising-edge detection #define SCE_GPIO_INTR_MODE_FALLING_EDGE 3 //Falling-edge detection
sceGpioSetPortModeForDriver
Version | NID |
---|---|
3.60-3.74 | 0x372022A4 |
Set the port mode (input/output) of a port.
//mode: one of the port mode defines //Returns the old mode on success, <0 on error. int sceGpioSetPortModeForDriver(int bus, int port, int mode);
sceGpioGetPortModeForDriver
Version | NID |
---|---|
3.60-3.74 | 0x372022A4 |
Get the current port mode (input/output) of a port.
//Returns one of the port mode defines on success, <0 on error. int sceGpioGetPortModeForDriver(int bus, int port);
sceGpioSetIntrModeForDriver
Version | NID |
---|---|
3.60-3.74 | 0xBBEA1DDC |
Set the interrupt mode of a port.
//mode: one of the interrupt mode defines int sceGpioSetIntrModeForDriver(int bus, int port, int mode);
sceGpioGetIntrModeForDriver
Version | NID |
---|---|
3.74 | 0xE97A3B31 |
Get the current interrupt mode of a port.
//Returns one of the interrupt modes on success, <0 on error. int sceGpioGetIntrModeForDriver(int bus, int port);
sceGpioPortSetForDriver
Version | NID |
---|---|
0.990-3.74 | 0xD454A584 |
Set a GPIO port.
int sceGpioPortSetForDriver(int bus, int port);
sceGpioPortClearForDriver
Version | NID |
---|---|
0.990-3.74 | 0xF6310435 |
Clear a GPIO port.
int sceGpioPortClearForDriver(int bus, int port);
SceGpioForDriver_129DF5AC
Version | NID |
---|---|
3.74 | 0x129DF5AC |
Read the value of a port. Both input and output ports are accepted (in the latter case, latch value is returned).
//Returns SCE_TRUE if the port was set, SCE_FALSE if it was clear, <0 on error. int SceGpioForDriver_129DF5AC(int bus, int port);
SceGpioForDriver_A1B5A462
Version | NID |
---|---|
3.74 | 0xA1B5A462 |
Read an input port, and "write" the opposite of its state (Clear if read as 1, Set if read as 0).
//Returns SCE_TRUE if the port was set, SCE_FALSE if it was clear, <0 on error. int SceGpioForDriver_A1B5A462(int bus, int port);
sceGpioQueryIntrForDriver
Version | NID |
---|---|
3.60-3.74 | 0x010DC295 |
Check if interrupts are pending on a port.
//Returns SCE_FALSE if no interrupts are pending on port, //SCE_TRUE if interrupts are pending, <0 on error. int sceGpioQueryIntrForDriver(int bus, int port);
sceGpioAcquireIntrForDriver
Version | NID |
---|---|
3.60-3.74 | 0x35AAD77A |
Clear all pending interrupts on a port.
//Returns SCE_TRUE if an interrupt was pending, //SCE_FALSE if no interrupts were pending, <0 on error. int sceGpioAcquireIntrForDriver(int bus, int port);
ScePwmForDriver
ScePwmForDriver_0374213C: 0x0374213C ScePwmForDriver_13161CCC: 0x13161CCC ScePwmForDriver_22C17D24: 0x22C17D24 ScePwmForDriver_514773B1: 0x514773B1 ScePwmForDriver_99911920: 0x99911920
SceI2cForDriver
Types
typedef struct SceI2cDebugHandlers { unsigned int size; void (*write_start)(int bus, int device, unsigned char *buffer, int size); void (*write_error)(int bus, int error, int result); void (*read_start)(int bus, int device, unsigned char *buffer, int size); void (*read_error)(int bus, int error, int result); void (*write_read_start)(int bus, int write_device, unsigned char *write_buffer, int write_size); void (*write_read_error)(int bus, int error, int result); } SceI2cDebugHandlers;
For the following functions:
bus
indicate the target I²C busdev_id
seems to indicate the address of the target device, shifted left by 1 (i.e. I²C address =dev_id >> 1
).
The ID 1
is handled in a specific way for bus 1 (see sceI2cReset).
sceI2cInit
Version | NID |
---|---|
3.60 | 0x9CF8F3D6 |
This is a guessed name.
Reinitializes the I²C controller for selected bus?
int sceI2cInit(unsigned bus);
sceI2cReset
Version | NID |
---|---|
3.60 | 0x76D277AB |
This is a guessed name.
This function seems to be used for synchronisation of I2c1 transfers.
When calling any read/write function on I²C bus 1 with dev_id == 1
, the function calls sceKernelWaitEventFlag(/* I2c1 evf */, /* pattern = */ 0x80000000, /* ... */)
before performing the operation.
// a1 == 0 -> clear bits 0x7FFFFFFF of the synchronisation event flag pattern // a1 != 0 -> set bit 0x80000000 of the synchronisation event flag pattern int sceI2cReset(SceBool a1);
sceI2cMasterTransmit
Version | NID |
---|---|
3.60 | 0xCA94A759 |
This is an official name. Temp name was sceI2cTransferWrite.
Writes data to I²C device on specified bus.
int sceI2cMasterTransmit(unsigned bus, unsigned dev_id, const void *buffer, unsigned size);
sceI2cMasterReceive
Version | NID |
---|---|
3.60 | 0xD1D0A9A4 |
This is an official name. Temp name was sceI2cTransferRead.
Reads data from I²C device on specified bus.
int sceI2cMasterReceive(unsigned bus, unsigned dev_id, void *buffer, unsigned size);
sceI2cMasterTransmitReceive
Version | NID |
---|---|
3.60 | 0x0A40B7BF |
This is an official name. Temp name was sceI2cTransferWriteRead.
Performs a write to an I²C device followed by a read to a (potentially different) I2c device on the specified bus.
int sceI2cMasterTransmitReceive(unsigned bus, unsigned write_dev_id, const void *write_buffer, unsigned write_size, unsigned read_dev_id, void *read_buffer, unsigned read_size);
sceI2cSetDebugHandlers
Version | NID |
---|---|
3.60 | 0xA2C7CE62 |
This is a guessed name.
Registers callbacks called during I²C operations.
int sceI2cSetDebugHandlers(unsigned bus, SceI2cDebugHandlers *debug_handlers)
SceI2cForDriver_30CF9469
Version | NID |
---|---|
3.60 | 0x30CF9469 |
Writes a2
and a3
to some per-bus global variables that are seemingly never read, then writes a value to I2cReg->unk18 depending on Hardware Info mask 0x00FF0000 (motherboard main version).
int SceI2cForDriver_30CF9469(unsigned bus, unsigned a2, unsigned a3);
SceI2cForDriver_E449AC6E
Version | NID |
---|---|
3.60 | 0xE449AC6E |
Writes a2
to some per-bus global variable that is seemingly never read.
int SceI2cForDriver_E449AC6E(unsigned bus, unsigned a2);
SceGrabForDriver
sceGrabCompatStartExForDriver
Version | NID |
---|---|
3.60 | 0x072B8D93 |
Calls SMC 0x11e. smc(0x11E, 1, param)
Replacement for SceLowio#scePervasiveCompatStartForDriver.
// command: 0, 1 int sceGrabCompatStartExForDriver(int param);
SceGrabForDriver_188BBCC8
Version | NID |
---|---|
3.60 | 0x188BBCC8 |
Calls SMC 0x11C.
SceGrabForDriver_1F292554
Version | NID |
---|---|
3.60 | 0x1F292554 |
Calls SMC 0x121. smc(0x121)
sceGrabCompatLcdDmacInitForDriver
Version | NID |
---|---|
3.60 | 0x379130B2 |
Calls SMC 0x11e. smc(0x11E, 2)
Replacement for SceLowio#scePervasiveCompatLcdDmacInitForDriver.
SceGrabForDriver_5F36ABC4
Version | NID |
---|---|
3.60 | 0x5F36ABC4 |
Calls SMC 0x11f. smc(0x11f)
SceGrabForDriver_B22EE8BC
Version | NID |
---|---|
3.60 | 0xB22EE8BC |
Calls SMC 0x11b. smc(0x11b)
SceGrabForDriver_E9C25A28
Version | NID |
---|---|
3.60 | 0xE9C25A28 |
Calls SMC 0x11d. smc(0x11d)
// bank can be from 0 to 7 int SceGrabForDriver_E9C25A28(SceUInt32 bank, SceUInt32 paddr);
sceGrabCompatStopForDriver
Version | NID |
---|---|
3.60 | 0xF13C63DD |
Calls SMC 0x11e. smc(0x11E, 0)
Replacement for SceLowio#scePervasiveCompatStopForDriver.
SceCdramForDriver
SceCdramForDriver_41D821F3
Version | NID |
---|---|
0.940 | 0x41D821F3 |
3.60 | not present |
Calls SMC 0x119.
SceCdramForDriver_BA81E0E3
Version | NID |
---|---|
0.940 | 0xBA81E0E3 |
3.60 | not present |
Calls SMC 0x118.
SceCdramForDriver_0657FC1B
Version | NID |
---|---|
0.940 | not present |
3.60 | 0x0657FC1B |
SceCdramForDriver_2D728EBF
Version | NID |
---|---|
0.940 | not present |
3.60 | 0x2D728EBF |
SceCdramForDriver_3EFA7540
Version | NID |
---|---|
0.940 | not present |
3.60 | 0x3EFA7540 |
SceDsiForDriver
sceDsiStopMasterForDriver
Version | NID |
---|---|
0.940-3.60 | 0x114D1413 |
Temp name was sceDsiDisableHeadForDriver.
int sceDsiStopMasterForDriver(SceDisplayHead head);
sceDsiDcsReadForDriver
Version | NID |
---|---|
3.60 | 0x3FB0DF1F |
int sceDsiDcsReadForDriver(SceDisplayHead head, unsigned short param, void *buf, SceSize size);
MIPI DSI DCS Read (0x06)
sceDsiGetPixelClockForDriver
Version | NID |
---|---|
3.60 | 0x4DF9E924 |
int sceDsiGetPixelClockForDriver(SceDisplayHead head);
sceDsiStartMasterForDriver
Version | NID |
---|---|
0.940-3.60 | 0x5BE5AA9B |
Temp name was sceDsiEnableHeadForDriver.
int sceDsiStartMasterForDriver(SceDisplayHead head);
SceDsiForDriver_6F8029A1
Version | NID |
---|---|
3.60 | 0x6F8029A1 |
int SceDsiForDriver_6F8029A1(SceDisplayHead head);
Returns the current Vcount, read from ((*(u32 *)(SceDsiReg + 0x4C) >> 16) & 0x1FFF) - 1
.
sceDsiStopDisplayForDriver
Version | NID |
---|---|
0.940-3.60 | 0x7640F607 |
int sceDsiStopDisplayForDriver(SceDisplayHead head);
sceDsiSetDisplayModeForDriver
Version | NID |
---|---|
3.60 | 0x78E6E3CF |
Temp name was sceDsiSetLanesAndPixelSizeForDriver.
For head
== SCE_DISPLAY_HEAD_MAIN_LCD_OLED, lanes
must be 2 and pixelsize
24.
For head
== SCE_DISPLAY_HEAD_HDMI, lanes
can be 2 or 3 and pixelsize
can be 24 or 30.
int sceDsiSetDisplayModeForDriver(SceDisplayHead head, int lanes, int pixelsize);
SceDsiForDriver_8610B795
Version | NID |
---|---|
3.60 | 0x8610B795 |
Sets internal struct member struct[head].unk1C = mul * struct[head].unk18 / div
.
int SceDsiForDriver_8610B795(SceDisplayHead head, int mul, int div);
sceDsiGenericShortWriteForDriver
Version | NID |
---|---|
3.60 | 0x89C00D2F |
Performs a MIPI DSI Generic Short Write, no parameters (0x03), MIPI DSI Generic Short Write, 1 parameter (0x13) or MIPI DSI Generic Short Write, 2 parameters (0x23) depending on the whether parami
is negative or not (bit 31 set).
int int sceDsiGenericShortWriteForDriver(SceDisplayHead head, int param0, int param1, int param2);
sceDsiSetScreenModeForDriver
Version | NID |
---|---|
3.60 | 0x97BFEA76 |
Temp name was sceDsiSetVicForDriver.
int sceDsiSetScreenModeForDriver(SceDisplayHead head, SceDisplayScreenMode screenMode);
sceDsiGenericReadRequestForDriver
Version | NID |
---|---|
3.60 | 0x98120684 |
Performs a MIPI DSI Generic Read Request, no parameters (0x04), or MIPI DSI Generic Read Request, 1 parameter (0x14) depending on the whether param
is negative or not (bit 31 set).
int sceDsiGenericReadRequestForDriver(SceDisplayHead head, int param, void *buff, SceSize size);
sceDsiDcsShortWriteForDriver
Version | NID |
---|---|
3.60 | 0xBA6BC89F |
If param1
is negative (bit 31 set), MIPI DSI DCS Short Write, no parameters (0x05) is performed. MIPI DSI DCS Short Write, 1 parameter (0x15) is performed otherwise.
int sceDsiDcsShortWriteForDriver(SceDisplayHead head, SceUInt16 param0, SceUInt32 param1);
sceDsiStartDisplayForDriver
Version | NID |
---|---|
0.940-3.60 | 0xC2E85919 |
int sceDsiStartDisplayForDriver(SceDisplayHead head, SceUInt32 control);
SceDsiForDriver_F2921E29
Version | NID |
---|---|
3.60 | 0xF2921E29 |
int SceDsiForDriver_F2921E29(SceDisplayHead head, SceUInt32 unk);
sceDsiQeuryResolutionSizeForDriver
Version | NID |
---|---|
0.940 | 0xFA9E2DC5 |
3.60 | sceDsiQueryResolutionSizeForDriver |
The typo in the function name was fixed since an unknown FW, and so the NID was updated. See also sceDsiQueryResolutionSizeForDriver.
sceDsiQueryResolutionSizeForDriver
Version | NID |
---|---|
0.940 | sceDsiQeuryResolutionSizeForDriver |
3.60 | 0xB3A70C05 |
Temp name was sceDsiGetVicResolutionForDriver.
For progressive modes, V_total = V_active + VFP + VSW + VBP
. For interlaced modes, V_total = V_active + 2 * (VFP + VSW + VBP) - 1
.
int sceDsiQueryResolutionSizeForDriver(SceDisplayScreenMode screenMode, int *width, int *height);
SceIftuForDriver
typedef struct SceIftuFrameBuf { unsigned int pixelformat; unsigned int width; /* Aligned to 16 */ unsigned int height; /* Aligned to 8 */ unsigned int leftover_stride; /* (pitch - aligned_w) * bpp */ unsigned int leftover_align; /* if YCbCr: (width >> 1) & 0xF [chroma align?] */ unsigned int paddr0; unsigned int paddr1; unsigned int paddr2; } SceIftuFrameBuf; /* size = 0x20 */ typedef struct SceIftuPlaneState { SceIftuFrameBuf fb; unsigned int unk20; // not observed to be non-zero unsigned int unk24; // not observed to be non-zero unsigned int unk28; // not observed to be non-zero unsigned int src_w; // inverse scaling factor in 16.16 fixed point unsigned int src_h; // inverse scaling factor in 16.16 fixed point unsigned int dst_x; // offset into the destination buffer unsigned int dst_y; // offset into the destination buffer unsigned int src_x; // offset into the source buffer in 8.8 fixed point unsigned int src_y; // offset into the source buffer in 8.8 fixed point unsigned int crop_top; unsigned int crop_bot; unsigned int crop_left; unsigned int crop_right; } SceIftuPlaneState; /* size = 0x54 */ typedef struct SceIftuCscParams { unsigned int post_add_0; /* 10-bit integer */ unsigned int post_add_1_2; /* 10-bit integer */ unsigned int post_clamp_max_0; /* 10-bit integer */ unsigned int post_clamp_min_0; /* 10-bit integer */ unsigned int post_clamp_max_1_2; /* 10-bit integer */ unsigned int post_clamp_min_1_2; /* 10-bit integer */ unsigned int ctm[3][3]; /* S3.9 fixed point format */ } SceIftuCscParams; /* size = 0x3C */ typedef struct SceIftuConvParams { unsigned int size; unsigned int unk04; SceIftuCscParams *csc_params1; // +0x08 SceIftuCscParams *csc_params2; // +0x0C unsigned int csc_control; // +0x10 unsigned int unk14; unsigned int unk18; unsigned int unk1C; unsigned int alpha; unsigned int unk24; } SceIftuConvParams; /* size = 0x28 */
sceIftuEnableForDriver
Version | NID |
---|---|
0.940-3.60 | 0x0D7C02F7 |
Temp name was SceIftuForDriver_0D7C02F7_plane_enable.
// plane must be between 0 and 3 int sceIftuEnableForDriver(unsigned int plane);
SceIftuForDriver_0FCBF457
Version | NID |
---|---|
3.60 | 0x0FCBF457 |
Set plane CSC (Color Space Conversion) information.
int SceIftuForDriver_0FCBF457_set_plane_csc2(unsigned int plane, SceIftuCscParams *param);
SceIftuForDriver_357EAE24
Version | NID |
---|---|
3.60 | 0x357EAE24 |
Sets plane alpha value. Only planes 1 and 3 support alpha blending. Supported alpha values are 0-0x100 where 0x100 is no transparency (alpha blending disable).
int SceIftuForDriver_357EAE24_set_plane_alpha(unsigned int plane, int alpha);
sceIftuSetInputFrameBufferForDriver
Version | NID |
---|---|
0.940-3.60 | 0x7CE0C4DA |
Set bilinear to 0 for nearest neighbour, set to 1 for bilinear filtering, set to -1 when plane_state is a zero struct.
int sceIftuSetInputFrameBufferForDriver(unsigned int plane_index, SceIftuPlaneState *plane_state, int bilinear, int sync);
sceIftuConvertForDriver
Version | NID |
---|---|
0.940-3.60 | 0x67E37EFC |
Temp name was sceIftuCscForDriver.
Performs Color Space Conversion (by using SceIftu2Reg).
int sceIftuConvertForDriver(SceIftuFrameBuf *dst_fb, SceIftuPlaneState *src_plane_state, SceIftuConvParams *conv_params);
sceIftuSetMergeSettingForDriver
Version | NID |
---|---|
0.940-3.60 | 0xAF19FD85 |
Temp name was SceIftuForDriver_AF19FD85_set_global_blending_control.
int sceIftuSetMergeSettingForDriver(unsigned int plane, int control);
sceIftuDisableForDriver
Version | NID |
---|---|
0.940-3.60 | 0xC11F30B3 |
Temp name was SceIftuForDriver_C11F30B3_plane_disable.
int sceIftuDisableForDriver(unsigned int plane);
SceIftuForDriver_D64F4C6B
Version | NID |
---|---|
3.60 | 0xD64F4C6B |
Set plane CSC (Color Space Conversion) information.
int SceIftuForDriver_D64F4C6B_set_plane_csc(unsigned int plane, SceIftuCscParams *param);
sceIftuSetOutputFormatForDriver
Version | NID |
---|---|
0.940-3.60 | 0xE6EE2C6B |
int sceIftuSetOutputFormatForDriver(int plane, int width, int height, int pixel_format, int interlaced);
SceCsiForDriver
SceCsiForDriver_10545393
Version | NID |
---|---|
0.940-3.60 | 0x10545393 |
Copies buf to memory.
// buf size is 0x2C int SceCsiForDriver_10545393(SceDisplayHead head, void *buf);
SceCsiForDriver_2AFEA1B0
Version | NID |
---|---|
0.940-3.60 | 0x2AFEA1B0 |
int SceCsiForDriver_2AFEA1B0(SceDisplayHead head, SceUInt a2);
SceCsiForDriver_4AE39F26
Version | NID |
---|---|
0.940-3.60 | 0x4AE39F26 |
Maybe CSI stop.
int SceCsiForDriver_4AE39F26(SceDisplayHead head);
SceCsiForDriver_A1D1805D
Version | NID |
---|---|
0.940-3.60 | 0xA1D1805D |
Maybe CSI start.
int SceCsiForDriver_A1D1805D(SceDisplayHead head);
SceCsiForDriver_B508822B
Version | NID |
---|---|
0.940-3.60 | 0xB508822B |
Sets a2 and a3 in memory.
int SceCsiForDriver_B508822B(SceDisplayHead head, int a2, int a3);
SceCsiForDriver_FC165297
Version | NID |
---|---|
0.940-3.60 | 0xFC165297 |
Sets a2 in memory.
int SceCsiForDriver_FC165297(SceDisplayHead head, int a2);