| 79 | } |
| 80 | |
| 81 | void Sio2::SoftReset() |
| 82 | { |
| 83 | queueRead = false; |
| 84 | queuePosition = 0; |
| 85 | commandLength = 0; |
| 86 | processedLength = 0; |
| 87 | // Clear dmaBlockSize, in case the next SIO2 command is not sent over DMA11. |
| 88 | dmaBlockSize = 0; |
| 89 | queueComplete = false; |
| 90 | |
| 91 | // Anything in g_Sio2FifoIn which was not necessary to consume should be cleared out prior to the next SIO2 cycle. |
| 92 | while (!g_Sio2FifoIn.empty()) |
| 93 | { |
| 94 | g_Sio2FifoIn.pop_front(); |
| 95 | } |
| 96 | |
| 97 | // cmd_stat should always be reassembled based on the devices being probed by the packet. |
| 98 | CmdStat = 0; |
| 99 | } |
| 100 | |
| 101 | void Sio2::Interrupt() |
| 102 | { |
no test coverage detected