| 402 | } |
| 403 | |
| 404 | u32 SIGetStatus(s32 chan) |
| 405 | { |
| 406 | BOOL enabled; |
| 407 | u32 sr; |
| 408 | int chanShift; |
| 409 | |
| 410 | enabled = OSDisableInterrupts(); |
| 411 | sr = __SIRegs[14]; |
| 412 | chanShift = 8 * (SI_MAX_CHAN - 1 - chan); |
| 413 | sr >>= chanShift; |
| 414 | if (sr & SI_ERROR_NO_RESPONSE) |
| 415 | { |
| 416 | if (!(Type[chan] & SI_ERROR_BUSY)) |
| 417 | { |
| 418 | Type[chan] = SI_ERROR_NO_RESPONSE; |
| 419 | } |
| 420 | } |
| 421 | OSRestoreInterrupts(enabled); |
| 422 | return sr; |
| 423 | } |
| 424 | |
| 425 | void SISetCommand(s32 chan, u32 command) |
| 426 | { |
no test coverage detected