vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceIntrmgrForDriver_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x28, SceKernelIntrOptHandlers)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceKernelIntrOptParam)
 
int ksceKernelRegisterIntrHandler (int intr_code, const char *name, int interrupt_type, SceKernelIntrHandler handler, void *user_ctx, int priority, int target_cpu, SceKernelIntrOptParam *opt)
 
int ksceKernelReleaseIntrHandler (int intr_code)
 
int ksceKernelEnableIntr (int intr_code)
 
int ksceKernelDisableIntr (int intr_code)
 
int ksceKernelResumeIntr (int intr_code, int enabled)
 
int ksceKernelSuspendIntr (int intr_code, int *enabled)
 
int ksceKernelIsIntrPending (int intr_code)
 
int ksceKernelClearIntrPending (int intr_code)
 
int ksceKernelSetIntrPriority (int intr_code, int priority)
 
int ksceKernelGetIntrPriority (int intr_code, int *priority)
 
int ksceKernelSetIntrTarget (int intr_code, int cpu_target_list)
 
int ksceKernelGetIntrTarget (int intr_code, int *cpu_target_list)
 
int ksceKernelTriggerSGI (int intr_code, unsigned int target_list_filter, unsigned int cpu_target_list)
 
int ksceKernelIsIntrAllowedInCurrentContext (int intr_code)
 
int ksceKernelRegisterSubIntrHandler (int intr_code, int subintr_code, const char *name, SceKernelSubIntrHandler handler, void *register_arg)
 
int ksceKernelReleaseSubIntrHandler (int intr_code, int subintr_code)
 
int ksceKernelTriggerSubIntr (int intr_code, int subintr_code, void *subintr_arg)
 
int ksceKernelEnableSubIntr (int intr_code, int subintr_code)
 
int ksceKernelDisableSubIntr (int intr_code, int subintr_code)
 
int ksceKernelQueryIntrHandlerInfo (unsigned int intr_code, unsigned int a2, int a3)
 

Typedefs

typedef int(* SceKernelIntrHandler) (int unk, void *userCtx)
 
typedef int(* SceKernelSubIntrHandler) (void *subintr_arg, void *register_arg, unsigned char intr_priority)
 
typedef int(* SceKernelIntrOptHandlersCb1) (int intr_code, int subintr_code)
 
typedef int(* SceKernelIntrOptHandlersCb2) (int intr_code, int subintr_code, void *arg)
 
typedef int(* SceKernelIntrOptHandlersCb3) (int intr_code, int subintr_code, SceKernelSubIntrHandler handler, void *register_arg)
 

Macros

#define ksceKernelMaskIntr(intr_code)   ksceKernelDisableIntr(intr_code)
 
#define ksceKernelSetIntrMasked(intr_code, masked)   ksceKernelEnableIntr(intr_code)
 
#define ksceKernelUnmaskIntr(intr_code)   ksceKernelEnableIntr(intr_code)
 
#define ksceKernelGetIntrMasked   ksceKernelSuspendIntr
 

Data Structure Documentation

◆ SceKernelIntrOptHandlers

struct SceKernelIntrOptHandlers
Data Fields
uint32_t size
SceKernelIntrOptHandlersCb3 * pre_register_subintr_cb
SceKernelIntrOptHandlersCb3 * post_register_subintr_cb
SceKernelIntrOptHandlersCb1 * release_subintr_cb
SceKernelIntrOptHandlersCb1 * fptr0
SceKernelIntrOptHandlersCb1 * enable_subintr_cb
SceKernelIntrOptHandlersCb1 * disable_subintr_cb
SceKernelIntrOptHandlersCb2 * fptr3
SceKernelIntrOptHandlersCb1 * fptr4
SceKernelIntrOptHandlersCb1 * fptr5

◆ SceKernelIntrOptParam

struct SceKernelIntrOptParam
Data Fields
uint32_t size
uint32_t num
SceKernelIntrOptHandlers * handlers
uint32_t unk_C
uint32_t unk_10

Macro Definition Documentation

◆ ksceKernelMaskIntr

#define ksceKernelMaskIntr (   intr_code)    ksceKernelDisableIntr(intr_code)

◆ ksceKernelSetIntrMasked

#define ksceKernelSetIntrMasked (   intr_code,
  masked 
)    ksceKernelEnableIntr(intr_code)

◆ ksceKernelUnmaskIntr

#define ksceKernelUnmaskIntr (   intr_code)    ksceKernelEnableIntr(intr_code)

◆ ksceKernelGetIntrMasked

#define ksceKernelGetIntrMasked   ksceKernelSuspendIntr

Typedef Documentation

◆ SceKernelIntrHandler

typedef int(* SceKernelIntrHandler) (int unk, void *userCtx)

◆ SceKernelSubIntrHandler

typedef int(* SceKernelSubIntrHandler) (void *subintr_arg, void *register_arg, unsigned char intr_priority)

◆ SceKernelIntrOptHandlersCb1

typedef int(* SceKernelIntrOptHandlersCb1) (int intr_code, int subintr_code)

◆ SceKernelIntrOptHandlersCb2

typedef int(* SceKernelIntrOptHandlersCb2) (int intr_code, int subintr_code, void *arg)

◆ SceKernelIntrOptHandlersCb3

typedef int(* SceKernelIntrOptHandlersCb3) (int intr_code, int subintr_code, SceKernelSubIntrHandler handler, void *register_arg)

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/2]

VITASDK_BUILD_ASSERT_EQ ( 0x28  ,
SceKernelIntrOptHandlers   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/2]

VITASDK_BUILD_ASSERT_EQ ( 0x14  ,
SceKernelIntrOptParam   
)

◆ ksceKernelRegisterIntrHandler()

int ksceKernelRegisterIntrHandler ( int  intr_code,
const char *  name,
int  interrupt_type,
SceKernelIntrHandler  handler,
void *  user_ctx,
int  priority,
int  target_cpu,
SceKernelIntrOptParam opt 
)

◆ ksceKernelReleaseIntrHandler()

int ksceKernelReleaseIntrHandler ( int  intr_code)

◆ ksceKernelEnableIntr()

int ksceKernelEnableIntr ( int  intr_code)

◆ ksceKernelDisableIntr()

int ksceKernelDisableIntr ( int  intr_code)

◆ ksceKernelResumeIntr()

int ksceKernelResumeIntr ( int  intr_code,
int  enabled 
)

◆ ksceKernelSuspendIntr()

int ksceKernelSuspendIntr ( int  intr_code,
int *  enabled 
)

◆ ksceKernelIsIntrPending()

int ksceKernelIsIntrPending ( int  intr_code)

◆ ksceKernelClearIntrPending()

int ksceKernelClearIntrPending ( int  intr_code)

◆ ksceKernelSetIntrPriority()

int ksceKernelSetIntrPriority ( int  intr_code,
int  priority 
)

◆ ksceKernelGetIntrPriority()

int ksceKernelGetIntrPriority ( int  intr_code,
int *  priority 
)

◆ ksceKernelSetIntrTarget()

int ksceKernelSetIntrTarget ( int  intr_code,
int  cpu_target_list 
)

◆ ksceKernelGetIntrTarget()

int ksceKernelGetIntrTarget ( int  intr_code,
int *  cpu_target_list 
)

◆ ksceKernelTriggerSGI()

int ksceKernelTriggerSGI ( int  intr_code,
unsigned int  target_list_filter,
unsigned int  cpu_target_list 
)

◆ ksceKernelIsIntrAllowedInCurrentContext()

int ksceKernelIsIntrAllowedInCurrentContext ( int  intr_code)

◆ ksceKernelRegisterSubIntrHandler()

int ksceKernelRegisterSubIntrHandler ( int  intr_code,
int  subintr_code,
const char *  name,
SceKernelSubIntrHandler  handler,
void *  register_arg 
)

◆ ksceKernelReleaseSubIntrHandler()

int ksceKernelReleaseSubIntrHandler ( int  intr_code,
int  subintr_code 
)

◆ ksceKernelTriggerSubIntr()

int ksceKernelTriggerSubIntr ( int  intr_code,
int  subintr_code,
void *  subintr_arg 
)

◆ ksceKernelEnableSubIntr()

int ksceKernelEnableSubIntr ( int  intr_code,
int  subintr_code 
)

◆ ksceKernelDisableSubIntr()

int ksceKernelDisableSubIntr ( int  intr_code,
int  subintr_code 
)

◆ ksceKernelQueryIntrHandlerInfo()

int ksceKernelQueryIntrHandlerInfo ( unsigned int  intr_code,
unsigned int  a2,
int  a3 
)