| 255 | // SIF0 DMA end... |
| 256 | |
| 257 | static __fi void HandleIOPTransfer() |
| 258 | { |
| 259 | if (sif0.iop.counter <= 0) // If there's no more to transfer |
| 260 | { |
| 261 | if (sif0.iop.end) |
| 262 | { |
| 263 | // Stop transferring iop, and signal an interrupt. |
| 264 | done = true; |
| 265 | EndIOP(); |
| 266 | } |
| 267 | else |
| 268 | { |
| 269 | // Read Fifo into an iop tag, and transfer it to hw_dma9. |
| 270 | // And presumably process it. |
| 271 | ProcessIOPTag(); |
| 272 | } |
| 273 | } |
| 274 | else |
| 275 | { |
| 276 | // Write IOP to Fifo. |
| 277 | if (sif0.fifo.sif_free() > 0) |
| 278 | { |
| 279 | WriteIOPtoFifo(); |
| 280 | } |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | static __fi void Sif0End() |
| 285 | { |
no test coverage detected