sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches

Macros

#define MAKE_VIF_CODE(_immediate, _num, _cmd, _irq)

Functions

u32 packet2_vif_close_unpack_auto (packet2_t *packet2, u32 wl, u32 cl)
void packet2_vif_add_micro_program (packet2_t *packet2, u32 dest, u32 *start, u32 *end)

Detailed Description

VIF related functions of libpacket2.

Macro Definition Documentation

◆ MAKE_VIF_CODE

#define MAKE_VIF_CODE ( _immediate,
_num,
_cmd,
_irq )
Value:
((u32)(_immediate) | ((u32)(_num) << 16) | ((u32)(_cmd) << 24) | ((u32)(_irq) << 31))

Definition at line 26 of file packet2_vif.h.

Function Documentation

◆ packet2_vif_add_micro_program()

void packet2_vif_add_micro_program ( packet2_t * packet2,
u32 dest,
u32 * start,
u32 * end )
extern

Add VU micro program into packet2. Packet2 MODE for micro program upload: Chain

Parameters
destVU destination address (divided by 16).
startStart address.
endEnd address.

Definition at line 14 of file packet2_vif.c.

◆ packet2_vif_close_unpack_auto()

u32 packet2_vif_close_unpack_auto ( packet2_t * packet2,
u32 wl,
u32 cl )

Close UNPACK automatically. In reality, get back to pointer "vif_code_opened_at" and fix num value with qwords counted from last packet2_vif_open_unpack().

Parameters
packet2Pointer to packet.
wlWL Value (look at STCYCL)
clCL Value (look at STCYCL)
Returns
Unpacked qwords count

Definition at line 34 of file packet2_vif.c.