Commit 4fbfcd6d53cffc5cde141df7afa9045a4987b5cd
1 parent
eeda6778
IDE: Implement SEEK command
Signed-off-by: Justin Chevrier <theburner1@yahoo.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5972 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
0 deletions
hw/ide.c
... | ... | @@ -2324,6 +2324,13 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) |
2324 | 2324 | s->status = READY_STAT; |
2325 | 2325 | ide_set_irq(s); |
2326 | 2326 | break; |
2327 | + case WIN_SEEK: | |
2328 | + if(s->is_cdrom) | |
2329 | + goto abort_cmd; | |
2330 | + /* XXX: Check that seek is within bounds */ | |
2331 | + s->status = READY_STAT | SEEK_STAT; | |
2332 | + ide_set_irq(s); | |
2333 | + break; | |
2327 | 2334 | /* ATAPI commands */ |
2328 | 2335 | case WIN_PIDENTIFY: |
2329 | 2336 | if (s->is_cdrom) { | ... | ... |