REpsp2
PSP2 OS reverse engineering
Loading...
Searching...
No Matches
debug.h File Reference
#include <scetypes.h>

Go to the source code of this file.

Macros

#define SCx_GPO_CODE_FACILITY_KBL   0xA0
 General-purpose Output LED codes.
#define SCx_GPO_CODE_KBL_00   (SCx_GPO_CODE_FACILITY_KBL | 0x00)
#define SCx_GPO_CODE_KBL_01   (SCx_GPO_CODE_FACILITY_KBL | 0x01)
#define SCx_GPO_CODE_KBL_02   (SCx_GPO_CODE_FACILITY_KBL | 0x02)
#define SCx_GPO_CODE_KBL_03   (SCx_GPO_CODE_FACILITY_KBL | 0x03)
#define SCx_GPO_CODE_KBL_04   (SCx_GPO_CODE_FACILITY_KBL | 0x04)
#define SCx_GPO_CODE_KBL_05   (SCx_GPO_CODE_FACILITY_KBL | 0x05)
#define SCx_GPO_CODE_KBL_06   (SCx_GPO_CODE_FACILITY_KBL | 0x06)
#define SCx_GPO_CODE_KBL_07   (SCx_GPO_CODE_FACILITY_KBL | 0x07)
#define SCx_GPO_CODE_KBL_08   (SCx_GPO_CODE_FACILITY_KBL | 0x08)
#define SCx_GPO_CODE_KBL_09   (SCx_GPO_CODE_FACILITY_KBL | 0x09)
#define SCx_GPO_CODE_KBL_10   (SCx_GPO_CODE_FACILITY_KBL | 0x0A)
#define SCx_GPO_CODE_KBL_11   (SCx_GPO_CODE_FACILITY_KBL | 0x0B)
#define SCx_GPO_CODE_KBL_12   (SCx_GPO_CODE_FACILITY_KBL | 0x0C)
#define SCx_GPO_CODE_KBL_13   (SCx_GPO_CODE_FACILITY_KBL | 0x0D)
#define SCx_GPO_CODE_KBL_14   (SCx_GPO_CODE_FACILITY_KBL | 0x0E)
#define SCx_GPO_CODE_KBL_15   (SCx_GPO_CODE_FACILITY_KBL | 0x0F)
#define SCx_GPO_CODE_KBL_16   (SCx_GPO_CODE_FACILITY_KBL | 0x10)
#define SCx_GPO_CODE_KBL_17   (SCx_GPO_CODE_FACILITY_KBL | 0x11)
#define SCx_GPO_CODE_KBL_18   (SCx_GPO_CODE_FACILITY_KBL | 0x12)
#define SCx_GPO_CODE_KBL_19   (SCx_GPO_CODE_FACILITY_KBL | 0x13)
#define SCx_GPO_CODE_KBL_20   (SCx_GPO_CODE_FACILITY_KBL | 0x14)
#define SCx_GPO_CODE_KBL_21   (SCx_GPO_CODE_FACILITY_KBL | 0x15)
#define SCx_GPO_CODE_KBL_22   (SCx_GPO_CODE_FACILITY_KBL | 0x16)
#define SCx_GPO_CODE_KBL_23   (SCx_GPO_CODE_FACILITY_KBL | 0x17)
#define SCx_GPO_CODE_KBL_24   (SCx_GPO_CODE_FACILITY_KBL | 0x18)
#define SCx_GPO_CODE_KBL_25   (SCx_GPO_CODE_FACILITY_KBL | 0x19)
#define SCx_GPO_CODE_KBL_26   (SCx_GPO_CODE_FACILITY_KBL | 0x1A)
#define SCx_GPO_CODE_KBL_27   (SCx_GPO_CODE_FACILITY_KBL | 0x1B)
#define SCx_GPO_CODE_KBL_28   (SCx_GPO_CODE_FACILITY_KBL | 0x1C)
#define SCx_GPO_CODE_KBL_29   (SCx_GPO_CODE_FACILITY_KBL | 0x1D)
#define SCx_GPO_CODE_KBL_30   (SCx_GPO_CODE_FACILITY_KBL | 0x1E)
#define SCx_GPO_CODE_KBL_31   (SCx_GPO_CODE_FACILITY_KBL | 0x1F)

Functions

SceInt32 sceKernelSetGPO (SceUInt32 uiBits)
 Set pattern to display on GPO LEDs.

Macro Definition Documentation

◆ SCx_GPO_CODE_FACILITY_KBL

#define SCx_GPO_CODE_FACILITY_KBL   0xA0

General-purpose Output LED codes.

0x00~0x3F: not used (reserved for BROM?) 0x40~0x7F: Secure Loader (a.k.a. second_loader) 0x80~0x9F: Kernel Boot Loader 0xA0~0xBF: Kernel Boot Loader (non-secure) 0xC0~0xFF: not used?

(not sure that 0xBF is end of KBL-NS but it makes most sense)

Definition at line 20 of file debug.h.

◆ SCx_GPO_CODE_KBL_00

#define SCx_GPO_CODE_KBL_00   (SCx_GPO_CODE_FACILITY_KBL | 0x00)

Definition at line 23 of file debug.h.

◆ SCx_GPO_CODE_KBL_01

#define SCx_GPO_CODE_KBL_01   (SCx_GPO_CODE_FACILITY_KBL | 0x01)

Definition at line 24 of file debug.h.

◆ SCx_GPO_CODE_KBL_02

#define SCx_GPO_CODE_KBL_02   (SCx_GPO_CODE_FACILITY_KBL | 0x02)

Definition at line 25 of file debug.h.

◆ SCx_GPO_CODE_KBL_03

#define SCx_GPO_CODE_KBL_03   (SCx_GPO_CODE_FACILITY_KBL | 0x03)

Definition at line 26 of file debug.h.

◆ SCx_GPO_CODE_KBL_04

#define SCx_GPO_CODE_KBL_04   (SCx_GPO_CODE_FACILITY_KBL | 0x04)

Definition at line 27 of file debug.h.

◆ SCx_GPO_CODE_KBL_05

#define SCx_GPO_CODE_KBL_05   (SCx_GPO_CODE_FACILITY_KBL | 0x05)

Definition at line 28 of file debug.h.

◆ SCx_GPO_CODE_KBL_06

#define SCx_GPO_CODE_KBL_06   (SCx_GPO_CODE_FACILITY_KBL | 0x06)

Definition at line 29 of file debug.h.

◆ SCx_GPO_CODE_KBL_07

#define SCx_GPO_CODE_KBL_07   (SCx_GPO_CODE_FACILITY_KBL | 0x07)

Definition at line 30 of file debug.h.

◆ SCx_GPO_CODE_KBL_08

#define SCx_GPO_CODE_KBL_08   (SCx_GPO_CODE_FACILITY_KBL | 0x08)

Definition at line 31 of file debug.h.

◆ SCx_GPO_CODE_KBL_09

#define SCx_GPO_CODE_KBL_09   (SCx_GPO_CODE_FACILITY_KBL | 0x09)

Definition at line 32 of file debug.h.

◆ SCx_GPO_CODE_KBL_10

#define SCx_GPO_CODE_KBL_10   (SCx_GPO_CODE_FACILITY_KBL | 0x0A)

Definition at line 33 of file debug.h.

◆ SCx_GPO_CODE_KBL_11

#define SCx_GPO_CODE_KBL_11   (SCx_GPO_CODE_FACILITY_KBL | 0x0B)

Definition at line 34 of file debug.h.

◆ SCx_GPO_CODE_KBL_12

#define SCx_GPO_CODE_KBL_12   (SCx_GPO_CODE_FACILITY_KBL | 0x0C)

Definition at line 35 of file debug.h.

◆ SCx_GPO_CODE_KBL_13

#define SCx_GPO_CODE_KBL_13   (SCx_GPO_CODE_FACILITY_KBL | 0x0D)

Definition at line 36 of file debug.h.

◆ SCx_GPO_CODE_KBL_14

#define SCx_GPO_CODE_KBL_14   (SCx_GPO_CODE_FACILITY_KBL | 0x0E)

Definition at line 37 of file debug.h.

◆ SCx_GPO_CODE_KBL_15

#define SCx_GPO_CODE_KBL_15   (SCx_GPO_CODE_FACILITY_KBL | 0x0F)

Definition at line 38 of file debug.h.

◆ SCx_GPO_CODE_KBL_16

#define SCx_GPO_CODE_KBL_16   (SCx_GPO_CODE_FACILITY_KBL | 0x10)

Definition at line 39 of file debug.h.

◆ SCx_GPO_CODE_KBL_17

#define SCx_GPO_CODE_KBL_17   (SCx_GPO_CODE_FACILITY_KBL | 0x11)

Definition at line 40 of file debug.h.

◆ SCx_GPO_CODE_KBL_18

#define SCx_GPO_CODE_KBL_18   (SCx_GPO_CODE_FACILITY_KBL | 0x12)

Definition at line 41 of file debug.h.

◆ SCx_GPO_CODE_KBL_19

#define SCx_GPO_CODE_KBL_19   (SCx_GPO_CODE_FACILITY_KBL | 0x13)

Definition at line 42 of file debug.h.

◆ SCx_GPO_CODE_KBL_20

#define SCx_GPO_CODE_KBL_20   (SCx_GPO_CODE_FACILITY_KBL | 0x14)

Definition at line 43 of file debug.h.

◆ SCx_GPO_CODE_KBL_21

#define SCx_GPO_CODE_KBL_21   (SCx_GPO_CODE_FACILITY_KBL | 0x15)

Definition at line 44 of file debug.h.

◆ SCx_GPO_CODE_KBL_22

#define SCx_GPO_CODE_KBL_22   (SCx_GPO_CODE_FACILITY_KBL | 0x16)

Definition at line 45 of file debug.h.

◆ SCx_GPO_CODE_KBL_23

#define SCx_GPO_CODE_KBL_23   (SCx_GPO_CODE_FACILITY_KBL | 0x17)

Definition at line 46 of file debug.h.

◆ SCx_GPO_CODE_KBL_24

#define SCx_GPO_CODE_KBL_24   (SCx_GPO_CODE_FACILITY_KBL | 0x18)

Definition at line 47 of file debug.h.

◆ SCx_GPO_CODE_KBL_25

#define SCx_GPO_CODE_KBL_25   (SCx_GPO_CODE_FACILITY_KBL | 0x19)

Definition at line 48 of file debug.h.

◆ SCx_GPO_CODE_KBL_26

#define SCx_GPO_CODE_KBL_26   (SCx_GPO_CODE_FACILITY_KBL | 0x1A)

Definition at line 49 of file debug.h.

◆ SCx_GPO_CODE_KBL_27

#define SCx_GPO_CODE_KBL_27   (SCx_GPO_CODE_FACILITY_KBL | 0x1B)

Definition at line 50 of file debug.h.

◆ SCx_GPO_CODE_KBL_28

#define SCx_GPO_CODE_KBL_28   (SCx_GPO_CODE_FACILITY_KBL | 0x1C)

Definition at line 51 of file debug.h.

◆ SCx_GPO_CODE_KBL_29

#define SCx_GPO_CODE_KBL_29   (SCx_GPO_CODE_FACILITY_KBL | 0x1D)

Definition at line 52 of file debug.h.

◆ SCx_GPO_CODE_KBL_30

#define SCx_GPO_CODE_KBL_30   (SCx_GPO_CODE_FACILITY_KBL | 0x1E)

Definition at line 53 of file debug.h.

◆ SCx_GPO_CODE_KBL_31

#define SCx_GPO_CODE_KBL_31   (SCx_GPO_CODE_FACILITY_KBL | 0x1F)

Definition at line 54 of file debug.h.

Function Documentation

◆ sceKernelSetGPO()

SceInt32 sceKernelSetGPO ( SceUInt32 uiBits)

Set pattern to display on GPO LEDs.

Parameters
uiBitsPattern to display (8 bits only)