MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / SITransferNext

Function SITransferNext

src/dolphin/src/si/SIBios.c:144–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144inline void SITransferNext(s32 chan)
145{
146 int i;
147 SIPacket* packet;
148
149 for (i = 0; i < SI_MAX_CHAN; ++i)
150 {
151 ++chan;
152 chan %= SI_MAX_CHAN;
153 packet = &Packet[chan];
154 if (packet->chan != -1 && packet->fire <= __OSGetSystemTime())
155 {
156 if (__SITransfer(packet->chan, packet->output, packet->outputBytes, packet->input,
157 packet->inputBytes, packet->callback))
158 {
159 OSCancelAlarm(&Alarm[chan]);
160 packet->chan = -1;
161 }
162 break;
163 }
164 }
165}
166
167static void SIInterruptHandler(__OSInterrupt interrupt, OSContext* context)
168{

Callers 1

SIInterruptHandlerFunction · 0.85

Calls 2

__SITransferFunction · 0.85
OSCancelAlarmFunction · 0.85

Tested by

no test coverage detected