提交 4fbfcd6d 编写于 作者: A aurel32

IDE: Implement SEEK command

Signed-off-by: NJustin Chevrier <theburner1@yahoo.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5972 c046a42c-6fe2-441c-8c8c-71466251a162
上级 eeda6778
...@@ -2324,6 +2324,13 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) ...@@ -2324,6 +2324,13 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
s->status = READY_STAT; s->status = READY_STAT;
ide_set_irq(s); ide_set_irq(s);
break; break;
case WIN_SEEK:
if(s->is_cdrom)
goto abort_cmd;
/* XXX: Check that seek is within bounds */
s->status = READY_STAT | SEEK_STAT;
ide_set_irq(s);
break;
/* ATAPI commands */ /* ATAPI commands */
case WIN_PIDENTIFY: case WIN_PIDENTIFY:
if (s->is_cdrom) { if (s->is_cdrom) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册