28#include <packet2_types.h>
98 packet2->
next = (qword_t *)((u8 *)packet2->
next + i);
101 static inline void packet2_add_u128(
packet2_t *packet2,
const u128 val)
103 *((u128 *)packet2->
next) = val;
110 *((s64 *)packet2->
next) = val;
114 static inline void packet2_add_2x_s64(
packet2_t *packet2,
const s64 v1,
const s64 v2)
120 static inline void packet2_add_s128(
packet2_t *packet2,
const s128 val)
122 *((s128 *)packet2->
next) = val;
129 *((u64 *)packet2->
next) = val;
136 *((u32 *)packet2->
next) = val;
143 *((s32 *)packet2->
next) = val;
150 *((
float *)packet2->
next) = val;
154 static inline void packet2_add_data(
packet2_t *packet2,
void *t_data, u32 t_size)
157 for (i = 0; i < t_size; i++)
158 packet2_add_u128(packet2, ((u128 *)t_data)[i]);
166 while ((((u32)packet2->
next + 4) & 0xf) != 0)
175 while (((u32)packet2->
next & 0xf) != 0)
vif_code_t * vif_code_opened_at
dma_tag_t * tag_opened_at
static void packet2_pad128(packet2_t *packet2, const u32 val)
void packet2_print(packet2_t *packet2, u32 qw_count)
void packet2_free(packet2_t *packet2)
void packet2_print_qw_count(packet2_t *packet2)
void packet2_reset(packet2_t *packet2, u8 clear_mem)
static void packet2_add_u32(packet2_t *packet2, const u32 val)
static u8 packet2_doesnt_have_even_number_of_quads(packet2_t *packet2)
static void packet2_add_s32(packet2_t *packet2, const s32 val)
static void packet2_update(packet2_t *packet2, qword_t *qw)
static u32 packet2_get_qw_count(packet2_t *packet2)
static void packet2_add_u64(packet2_t *packet2, const u64 val)
static void packet2_pad96(packet2_t *packet2, const u32 val)
static u8 packet2_is_dma_tag_opened(packet2_t *packet2)
static void packet2_add_float(packet2_t *packet2, const float val)
packet2_t * packet2_create_from(qword_t *base, qword_t *next, u16 qwords, enum Packet2Type type, enum Packet2Mode mode, u8 tte)
static u8 packet2_is_vif_code_opened(packet2_t *packet2)
void packet2_add(packet2_t *a, packet2_t *b)
static void packet2_add_s64(packet2_t *packet2, const s64 val)
packet2_t * packet2_create(u16 qwords, enum Packet2Type type, enum Packet2Mode mode, u8 tte)
static void packet2_advance_next(packet2_t *packet2, u32 i)