|
PS2SDK
PS2 Homebrew Libraries
|
Chain mode related functions of libpacket2. More...
Collaboration diagram for Chain:Macros | |
| #define | PACKET2_COUNT_QWC 1 << 16 |
Functions | |
| static void | packet2_chain_set_dma_tag (dma_tag_t *tag, u32 qwc, u32 pce, u32 id, u8 irq, const u128 *addr, u8 spr) |
| static void | packet2_chain_add_dma_tag (packet2_t *packet2, u32 qwc, u32 pce, enum DmaTagType id, u8 irq, const u128 *addr, u8 spr) |
| static void | packet2_chain_close_tag (packet2_t *packet2) |
| static void | packet2_chain_open_cnt (packet2_t *packet2, u8 irq, u32 pce, u8 spr) |
| static void | packet2_chain_open_end (packet2_t *packet2, u8 irq, u32 pce) |
| static void | packet2_chain_ref (packet2_t *packet2, const void *ref_data, u32 qw_length, u8 irq, u8 spr, u32 pce) |
| static void | packet2_chain_next (packet2_t *packet2, const dma_tag_t *next_tag, u8 irq, u8 spr, u32 pce) |
| static void | packet2_chain_refs (packet2_t *packet2, const void *ref_data, u32 qw_length, u8 irq, u8 spr, u32 pce) |
| static void | packet2_chain_refe (packet2_t *packet2, const void *ref_data, u32 qw_length, u8 irq, u8 spr, u32 pce) |
| static void | packet2_chain_call (packet2_t *packet2, const void *next_tag, u8 irq, u8 spr, u32 pce) |
| static void | packet2_chain_ret (packet2_t *packet2, u8 irq, u32 pce) |
Chain mode related functions of libpacket2.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Set dma tag. For more details, check description of dma_tag_t.
| tag | Pointer to DMA tag to set. |
| qwc | Qword count. |
| pce | Priority Control Enable. 0 by default. |
| id | Tag ID. |
| irq | Interrupt Request. False by default. |
| addr | Address. |
| spr | Memory/SPR Selection. False by default. |
Definition at line 48 of file packet2_chain.h.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add dma tag. For more details, check description of dma_tag_t. Will move current buffer position by: DWORD if packet->tte == true, QWORD if packet->tte == false
| packet2 | Pointer to packet. |
| qwc | Qword count. If you want to use packet2_chain_close_tag(), and count qwords automatically, set value to PACKET2_COUNT_QWC. |
| pce | Priority Control Enable. 0 by default. |
| id | Tag ID. |
| irq | Interrupt Request. False by default. |
| addr | Address. |
| spr | Memory/SPR Selection. False by default. |
Definition at line 74 of file packet2_chain.h.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Close dma tag. In reality, get back to pointer "tag_opened_at" and fix qwc value.
| packet2 | Pointer to packet. |
Definition at line 100 of file packet2_chain.h.
References packet2_t::tag_opened_at.
Referenced by packet2_utils_vu_add_continue_program(), packet2_utils_vu_add_end_tag(), and packet2_utils_vu_close_unpack().
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add CNT tag.
| packet2 | Pointer to packet. |
| irq | Interrupt Request. False by default. |
| pce | Priority Control Enable. 0 by default. |
| spr | Memory/SPR Selection. False by default. |
Definition at line 122 of file packet2_chain.h.
Referenced by packet2_utils_vu_add_continue_program(), and packet2_utils_vu_open_unpack().
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add END tag.
| packet2 | Pointer to packet. |
| irq | Interrupt Request. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 137 of file packet2_chain.h.
Referenced by packet2_utils_vu_add_end_tag().
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add REF tag.
| packet2 | Pointer to packet. |
| ref_data | Pointer to data. |
| qw_length | Size of data in qwords. |
| irq | Interrupt Request. False by default. |
| spr | Memory/SPR Selection. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 154 of file packet2_chain.h.
Referenced by packet2_utils_vu_add_unpack_data(), and packet2_vif_add_micro_program().
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add NEXT tag.
| next_tag | Pointer to next tag. |
| irq | Interrupt Request. False by default. |
| spr | Memory/SPR Selection. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 170 of file packet2_chain.h.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add REFS tag.
| packet2 | Pointer to packet. |
| ref_data | Pointer to data. |
| qw_length | Size of data in qwords. |
| irq | Interrupt Request. False by default. |
| spr | Memory/SPR Selection. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 188 of file packet2_chain.h.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add REFE tag.
| packet2 | Pointer to packet. |
| ref_data | Pointer to data. |
| qw_length | Size of data in qwords. |
| irq | Interrupt Request. False by default. |
| spr | Memory/SPR Selection. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 206 of file packet2_chain.h.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add CALL tag.
| packet2 | Pointer to packet. |
| next_tag | Pointer to next tag. |
| irq | Interrupt Request. False by default. |
| spr | Memory/SPR Selection. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 223 of file packet2_chain.h.
|
inlinestatic |
#include <ee/packet2/include/packet2_chain.h>
Add RET tag.
| packet2 | Pointer to packet. |
| irq | Interrupt Request. False by default. |
| pce | Priority Control Enable. 0 by default. |
Definition at line 238 of file packet2_chain.h.