| 51 | static void Read(void* addr, u32 length, u32 offset, DVDLowCallback callback); |
| 52 | |
| 53 | inline BOOL ProcessNextCommand() |
| 54 | { |
| 55 | s32 n = NextCommandNumber; |
| 56 | ASSERT(n < 3); |
| 57 | |
| 58 | if (CommandList[n].cmd == 1) |
| 59 | { |
| 60 | ++NextCommandNumber; |
| 61 | Read(CommandList[n].addr, CommandList[n].length, CommandList[n].offset, |
| 62 | CommandList[n].callback); |
| 63 | return TRUE; |
| 64 | } |
| 65 | else if (CommandList[n].cmd == 2) |
| 66 | { |
| 67 | ++NextCommandNumber; |
| 68 | DVDLowSeek(CommandList[n].offset, CommandList[n].callback); |
| 69 | return TRUE; |
| 70 | } |
| 71 | |
| 72 | return FALSE; |
| 73 | } |
| 74 | |
| 75 | void __DVDInterruptHandler(__OSInterrupt interrupt, OSContext* context) |
| 76 | { |
no test coverage detected