PS2SDK
PS2 Homebrew Libraries
packet2_t Struct Reference

#include <packet2_types.h>

+ Collaboration diagram for packet2_t:

Public Member Functions

qword_t *base __attribute__ ((aligned(64)))
 

Data Fields

u16 max_qwords_count
 
enum Packet2Type type
 
enum Packet2Mode mode
 
u8 tte
 
qword_t * next
 
dma_tag_ttag_opened_at
 
vif_code_tvif_code_opened_at
 

Detailed Description

DMA data packet. Successor of standard packet.

Definition at line 300 of file packet2_types.h.

Member Function Documentation

◆ __attribute__()

qword_t* base packet2_t::__attribute__ ( (aligned(64))  )

Start position of the buffer.

Field Documentation

◆ max_qwords_count

u16 packet2_t::max_qwords_count

Maximum number of qwords which was defined in packet2_create().

Definition at line 303 of file packet2_types.h.

Referenced by packet2_add().

◆ type

enum Packet2Type packet2_t::type

Type of packet's memory mapping.

Definition at line 305 of file packet2_types.h.

◆ mode

enum Packet2Mode packet2_t::mode

Packet mode.

Definition at line 307 of file packet2_types.h.

Referenced by dma_channel_send_packet2().

◆ tte

u8 packet2_t::tte

Tag transfer enable. Effective only in chain mode. If >0 transfer tag is set during packet sending and add_dma_tag() (so also every open_tag()) will move buffer by DWORD, so remember to align memory!

Definition at line 315 of file packet2_types.h.

◆ next

qword_t* packet2_t::next

◆ tag_opened_at

dma_tag_t* packet2_t::tag_opened_at

The buffer position where DMA tag was opened. NULL, if no dma tag is open.

Definition at line 324 of file packet2_types.h.

Referenced by packet2_chain_close_tag(), and packet2_is_dma_tag_opened().

◆ vif_code_opened_at

vif_code_t* packet2_t::vif_code_opened_at

The buffer position where DIRECT/UNPACK was opened. NULL, if no DIRECT/UNPACK is open.

Definition at line 329 of file packet2_types.h.

Referenced by packet2_is_vif_code_opened(), packet2_reset(), packet2_vif_close_direct_auto(), packet2_vif_close_direct_manual(), packet2_vif_close_unpack_auto(), and packet2_vif_close_unpack_manual().


The documentation for this struct was generated from the following file: