|
ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
Include dependency graph for vif_codes.h:Go to the source code of this file.
Macros | |
| #define | VIF_CMD_NOP 0x00 |
| #define | VIF_CMD_STCYCL 0x01 |
| #define | VIF_CMD_OFFSET 0x02 |
| #define | VIF_CMD_BASE 0x03 |
| #define | VIF_CMD_ITOP 0x04 |
| #define | VIF_CMD_STMOD 0x05 |
| #define | VIF_CMD_MSKPATH3 0x06 |
| #define | VIF_CMD_MARK 0x07 |
| #define | VIF_CMD_FLUSHE 0x10 |
| #define | VIF_CMD_FLUSH 0x11 |
| #define | VIF_CMD_FLUSHA 0x13 |
| #define | VIF_CMD_MSCAL 0x14 |
| #define | VIF_CMD_MSCNT 0x17 |
| #define | VIF_CMD_MSCALF 0x15 |
| #define | VIF_CMD_STMASK 0x20 |
| #define | VIF_CMD_STROW 0x30 |
| #define | VIF_CMD_STCOL 0x31 |
| #define | VIF_CMD_MPG 0x4A |
| #define | VIF_CMD_DIRECT 0x50 |
| #define | VIF_CMD_DIRECTHL 0x51 |
| #define | PACK_VIFTAG(Q, W0, W1, W2, W3) |
| #define | VIF_CMD_UNPACK(M, VN, VL) |
| #define | STCYCL_IMDT(CL, WL) (u32)((CL) & 0x000000FF) << 0 | (u32)((WL) & 0x000000FF) << 8 |
| #define | OFFSET_IMDT(OFFSET) (u32)((OFFSET) & 0x000003FF) |
| #define | BASE_IMDT(BASE) (u32)((BASE) & 0x000003FF) |
| #define | ITOP_IMDT(ADDR) (u32)((ADDR) & 0x000003FF) |
| #define | STMOD_IMDT(MODE) (u32)((MODE) & 0x00000003) |
| #define | MSKPATH3_IMDT(MASK) (u32)((MASK) & 0x00000001) << 15 |
| #define | MARK_IMDT(MARK) (u32)((MARK) & 0x0000FFFF) |
| #define | MSCAL_IMDT(EXECADDR) (u32)((EXECADDR) & 0x0000FFFF) |
| #define | MSCALF_IMDT(EXECADDR) (u32)((EXECADDR) & 0x0000FFFF) |
| #define | MPG_IMDT(LOADADDR) (u32)((LOADADDR) & 0x0000FFFF) |
| #define | MPG_NUM(SIZE) (u32)((SIZE) & 0x000000FF) << 16 |
| #define | DIRECT_IMDT(SIZE) (u32)((SIZE) & 0x0000FFFF) |
| #define | DIRECTHL_IMDT(EXECADDR) (u32)((EXECADDR) & 0x0000FFFF) |
| #define | UNPACK_IMDT(ADDR, USN, FLG) |
| #define | UNPACK_NUM(SIZE) (u32)((SIZE) & 0x000000FF) << 16 |
| #define | VIF_CODE(IMDT, NUM, CMD, IRQ) |
VIF codes.
Definition in file vif_codes.h.
| #define BASE_IMDT | ( | BASE | ) | (u32)((BASE) & 0x000003FF) |
Definition at line 70 of file vif_codes.h.
| #define DIRECT_IMDT | ( | SIZE | ) | (u32)((SIZE) & 0x0000FFFF) |
Definition at line 97 of file vif_codes.h.
| #define DIRECTHL_IMDT | ( | EXECADDR | ) | (u32)((EXECADDR) & 0x0000FFFF) |
Definition at line 100 of file vif_codes.h.
| #define ITOP_IMDT | ( | ADDR | ) | (u32)((ADDR) & 0x000003FF) |
Definition at line 73 of file vif_codes.h.
| #define MARK_IMDT | ( | MARK | ) | (u32)((MARK) & 0x0000FFFF) |
Definition at line 82 of file vif_codes.h.
| #define MPG_IMDT | ( | LOADADDR | ) | (u32)((LOADADDR) & 0x0000FFFF) |
Definition at line 91 of file vif_codes.h.
| #define MPG_NUM | ( | SIZE | ) | (u32)((SIZE) & 0x000000FF) << 16 |
Definition at line 94 of file vif_codes.h.
| #define MSCAL_IMDT | ( | EXECADDR | ) | (u32)((EXECADDR) & 0x0000FFFF) |
Definition at line 85 of file vif_codes.h.
| #define MSCALF_IMDT | ( | EXECADDR | ) | (u32)((EXECADDR) & 0x0000FFFF) |
Definition at line 88 of file vif_codes.h.
| #define MSKPATH3_IMDT | ( | MASK | ) | (u32)((MASK) & 0x00000001) << 15 |
Definition at line 79 of file vif_codes.h.
Definition at line 67 of file vif_codes.h.
| #define PACK_VIFTAG | ( | Q, | |
| W0, | |||
| W1, | |||
| W2, | |||
| W3 | |||
| ) |
Definition at line 64 of file vif_codes.h.
| #define STMOD_IMDT | ( | MODE | ) | (u32)((MODE) & 0x00000003) |
Definition at line 76 of file vif_codes.h.
| #define UNPACK_IMDT | ( | ADDR, | |
| USN, | |||
| FLG | |||
| ) |
Definition at line 103 of file vif_codes.h.
| #define UNPACK_NUM | ( | SIZE | ) | (u32)((SIZE) & 0x000000FF) << 16 |
Definition at line 107 of file vif_codes.h.
| #define VIF_CMD_BASE 0x03 |
Sets BASE register (VIF1)
Definition at line 18 of file vif_codes.h.
| #define VIF_CMD_DIRECT 0x50 |
Transfer data to GIF (VIF1)
Definition at line 48 of file vif_codes.h.
| #define VIF_CMD_DIRECTHL 0x51 |
Transfer data to GIF but stall for Path 3 IMAGE mode (VIF1)
Definition at line 50 of file vif_codes.h.
| #define VIF_CMD_FLUSH 0x11 |
Wait for end of microprogram & Path 1/2 GIF xfer (VIF1)
Definition at line 30 of file vif_codes.h.
| #define VIF_CMD_FLUSHA 0x13 |
Wait for end of microprogram & all Path GIF xfer (VIF1)
Definition at line 32 of file vif_codes.h.
| #define VIF_CMD_FLUSHE 0x10 |
Wait for end of microprogram
Definition at line 28 of file vif_codes.h.
| #define VIF_CMD_ITOP 0x04 |
Sets ITOPS register
Definition at line 20 of file vif_codes.h.
| #define VIF_CMD_MARK 0x07 |
Sets Mark register
Definition at line 26 of file vif_codes.h.
| #define VIF_CMD_MPG 0x4A |
Load microprogram
Definition at line 46 of file vif_codes.h.
| #define VIF_CMD_MSCAL 0x14 |
Activate microprogram
Definition at line 34 of file vif_codes.h.
| #define VIF_CMD_MSCALF 0x15 |
Activate microprogram (VIF1)
Definition at line 38 of file vif_codes.h.
| #define VIF_CMD_MSCNT 0x17 |
Execute microrprogram continuously
Definition at line 36 of file vif_codes.h.
| #define VIF_CMD_MSKPATH3 0x06 |
Mask GIF transfer (VIF1)
Definition at line 24 of file vif_codes.h.
| #define VIF_CMD_NOP 0x00 |
No Operation
Definition at line 12 of file vif_codes.h.
| #define VIF_CMD_OFFSET 0x02 |
Sets OFFSET register (VIF1)
Definition at line 16 of file vif_codes.h.
| #define VIF_CMD_STCOL 0x31 |
Sets COL register
Definition at line 44 of file vif_codes.h.
| #define VIF_CMD_STCYCL 0x01 |
Sets CYCLE register
Definition at line 14 of file vif_codes.h.
| #define VIF_CMD_STMASK 0x20 |
Sets MASK register
Definition at line 40 of file vif_codes.h.
| #define VIF_CMD_STMOD 0x05 |
Sets MODE register
Definition at line 22 of file vif_codes.h.
| #define VIF_CMD_STROW 0x30 |
Sets ROW register
Definition at line 42 of file vif_codes.h.
| #define VIF_CMD_UNPACK | ( | M, | |
| VN, | |||
| VL | |||
| ) |