81 void OpenGifTag(
int nFlg,
int nRegs,
unsigned long long nRegList,
int nPrim);
157 mCursor += nQuadwords;
171 unsigned short mChannel;
Builder of a DMA packet of GIF data, with DMA tags, GIF tags, and optional VIF DIRECT codes.
Definition dmapacket.h:19
void OpenGifTag(int nFlg, int nRegs, unsigned long long nRegList, int nPrim)
Close the GIF tag being filled and open a new one at the cursor.
DmaQuadword * GetBase() const
Definition dmapacket.h:132
void OpenDmaTag()
Close the DMA tag being filled and open a new one at the cursor.
void CloseDmaTag(int nId, unsigned int nAddress, int nQwc)
Close the DMA tag being filled.
void SetCursor(DmaQuadword *pCursor)
Definition dmapacket.h:147
static DmaPacket & shared()
Report the instance at the start of the scratchpad.
Mode
How Close() ends the packet and how the channel transfers it.
Definition dmapacket.h:22
@ kModeNormal
Definition dmapacket.h:23
@ kModeChainTagged
Definition dmapacket.h:25
@ kModeChain
Definition dmapacket.h:24
void Wait()
Wait for the channel to stop.
void CloseGifTag(int bEop, int nLoops)
Close the GIF tag being filled.
DmaQuadword * GetCursor() const
Definition dmapacket.h:142
void SetBase(DmaQuadword *pBase)
Definition dmapacket.h:137
DmaQuadword * GetGifTag() const
Definition dmapacket.h:161
unsigned int Close(Mode eMode, unsigned int nAddress)
Close the packet and program the channel's registers for it.
void Advance(int nQuadwords=1)
Move the cursor past quadwords written in place.
Definition dmapacket.h:156
void Init(DmaQuadword *pBase, int nChannel, int bVif)
Set the buffer and the channel, and empty the packet.
void Reset()
Empty the packet.
void Send(Mode eMode, unsigned int nAddress)
Close the packet and start the transfer.
One quadword of a DMA packet, viewed as doublewords, words, or halfwords.
Definition dmapacket.h:4
unsigned long long mDword[2]
Definition dmapacket.h:6
unsigned short mHalf[8]
Definition dmapacket.h:8
unsigned int mWord[4]
Definition dmapacket.h:7
float mFloat[4]
Definition dmapacket.h:9