11#include "packet2_vif.h"
12#include "packet2_chain.h"
17 u32
count = (end - start) / 2;
28 l_start += curr_count * 2;
37 assert(((u32)packet2->
next & 0x3) == 0);
48 u32 block_bytes_count = 4 >> vl;
49 u32 quad_blocks_count = vn + 1;
52 assert((bytes_count & (block_bytes_count - 1)) == 0);
53 u32 quads_count = (bytes_count / block_bytes_count) / quad_blocks_count;
66 u32 wl_blocks_count = (quads_count / cl);
67 u32 last_block_quads = quads_count - wl_blocks_count * cl;
68 if (last_block_quads == cl)
69 last_block_quads = wl;
70 quads_count = wl_blocks_count * wl + last_block_quads;
static void packet2_chain_ref(packet2_t *packet2, const void *ref_data, u32 qw_length, u8 irq, u8 spr, u32 pce)
vif_code_t * vif_code_opened_at
static void packet2_vif_close_unpack_manual(packet2_t *packet2, u32 unpack_num)
void packet2_vif_add_micro_program(packet2_t *packet2, u32 dest, u32 *start, u32 *end)
static void packet2_vif_nop(packet2_t *packet2, u8 irq)
static void packet2_vif_mpg(packet2_t *packet2, u32 num, u32 addr, u8 irq)
u32 packet2_vif_close_unpack_auto(packet2_t *packet2, u32 wl, u32 cl)
u32 count
start sector of fragmented bd/file