提交 c3e88d8c 编写于 作者: T ths

Allow more IDE power management, by Ben Guthro.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3165 c046a42c-6fe2-441c-8c8c-71466251a162
上级 1870a74c
...@@ -1986,6 +1986,8 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) ...@@ -1986,6 +1986,8 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
case 0x67: /* NOP */ case 0x67: /* NOP */
case 0x96: /* NOP */ case 0x96: /* NOP */
case 0x9a: /* NOP */ case 0x9a: /* NOP */
case 0x42: /* enable Automatic Acoustic Mode */
case 0xc2: /* disable Automatic Acoustic Mode */
s->status = READY_STAT | SEEK_STAT; s->status = READY_STAT | SEEK_STAT;
ide_set_irq(s); ide_set_irq(s);
break; break;
...@@ -2024,13 +2026,17 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val) ...@@ -2024,13 +2026,17 @@ 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_STANDBYNOW1: case WIN_STANDBY:
case WIN_STANDBY2:
case WIN_STANDBYNOW1:
case WIN_STANDBYNOW2: case WIN_STANDBYNOW2:
case WIN_IDLEIMMEDIATE: case WIN_IDLEIMMEDIATE:
case CFA_IDLEIMMEDIATE: case CFA_IDLEIMMEDIATE:
case WIN_SETIDLE1: case WIN_SETIDLE1:
case WIN_SETIDLE2: case WIN_SETIDLE2:
s->status = READY_STAT; case WIN_SLEEPNOW1:
case WIN_SLEEPNOW2:
s->status = READY_STAT;
ide_set_irq(s); ide_set_irq(s);
break; break;
/* ATAPI commands */ /* ATAPI commands */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册