|
PS2SDK
PS2 Homebrew Libraries
|
Structures and enums used in libpacket2. More...
Collaboration diagram for Types:Enumerations | |
| enum | Packet2Mode { P2_MODE_NORMAL = 0, P2_MODE_CHAIN = 1 } |
| enum | Packet2Type { P2_TYPE_NORMAL = 0x00000000, P2_TYPE_UNCACHED = 0x20000000, P2_TYPE_UNCACHED_ACCL = 0x30000000, P2_TYPE_SPRAM = 0x70000000 } |
| enum | DmaTagType { P2_DMA_TAG_REFE = 0, P2_DMA_TAG_CNT = 1, P2_DMA_TAG_NEXT = 2, P2_DMA_TAG_REF = 3, P2_DMA_TAG_REFS = 4, P2_DMA_TAG_CALL = 5, P2_DMA_TAG_RET = 6, P2_DMA_TAG_END = 7 } |
| enum | UnpackMode { P2_UNPACK_S_32 = 0x00, P2_UNPACK_S_16 = 0x01, P2_UNPACK_S_8 = 0x02, P2_UNPACK_V2_32 = 0x04, P2_UNPACK_V2_16 = 0x05, P2_UNPACK_V2_8 = 0x06, P2_UNPACK_V3_32 = 0x08, P2_UNPACK_V3_16 = 0x09, P2_UNPACK_V3_8 = 0x0A, P2_UNPACK_V4_32 = 0x0C, P2_UNPACK_V4_16 = 0x0D, P2_UNPACK_V4_8 = 0x0E, P2_UNPACK_V4_5 = 0x0F } |
| enum | VIFOpcode { P2_VIF_NOP = 0, P2_VIF_STCYCL = 1, P2_VIF_OFFSET = 2, P2_VIF_BASE = 3, P2_VIF_ITOP = 4, P2_VIF_STMOD = 5, P2_VIF_MSKPATH3 = 6, P2_VIF_MARK = 7, P2_VIF_FLUSHE = 16, P2_VIF_FLUSH = 17, P2_VIF_FLUSHA = 19, P2_VIF_MSCAL = 20, P2_VIF_MSCNT = 23, P2_VIF_MSCALF = 21, P2_VIF_STMASK = 32, P2_VIF_STROW = 48, P2_VIF_STCOL = 49, P2_VIF_MPG = 74, P2_VIF_DIRECT = 80, P2_VIF_DIRECTHL = 81 } |
Structures and enums used in libpacket2.
| enum Packet2Mode |
#include <ee/packet2/include/packet2_types.h>
Two modes are commonly used with the DMA Controller (DMAC): normal mode and chain mode. In normal mode, transfers are issued one at a time. In chain mode, a series of transfers are issued simultaneously by initiating a transfer that contains "DMA Tags", which in turn contains instructions for further transfers. You will probably use chain mode for the majority of your transfers.
Definition at line 31 of file packet2_types.h.
| enum Packet2Type |
#include <ee/packet2/include/packet2_types.h>
Types of memory mapping.
| Enumerator | |
|---|---|
| P2_TYPE_NORMAL | Normal. |
| P2_TYPE_UNCACHED | Uncached. |
| P2_TYPE_UNCACHED_ACCL | Uncached accelerated. |
| P2_TYPE_SPRAM | Scratchpad memory. |
Definition at line 38 of file packet2_types.h.
| enum DmaTagType |
#include <ee/packet2/include/packet2_types.h>
DMA tag types
Definition at line 51 of file packet2_types.h.
| enum UnpackMode |
#include <ee/packet2/include/packet2_types.h>
Unpack modes. V2 = 2 dimensions, S = Single = 1 dimension _32 = 32 bits of data length.
Definition at line 131 of file packet2_types.h.
| enum VIFOpcode |
#include <ee/packet2/include/packet2_types.h>
VIF opcodes.
Definition at line 149 of file packet2_types.h.