mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
Allow more IDE power management, by Ben Guthro.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3165 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1870a74c88
commit
c3e88d8c4f
10
hw/ide.c
10
hw/ide.c
@ -1986,6 +1986,8 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
||||
case 0x67: /* NOP */
|
||||
case 0x96: /* NOP */
|
||||
case 0x9a: /* NOP */
|
||||
case 0x42: /* enable Automatic Acoustic Mode */
|
||||
case 0xc2: /* disable Automatic Acoustic Mode */
|
||||
s->status = READY_STAT | SEEK_STAT;
|
||||
ide_set_irq(s);
|
||||
break;
|
||||
@ -2024,13 +2026,17 @@ static void ide_ioport_write(void *opaque, uint32_t addr, uint32_t val)
|
||||
s->status = READY_STAT;
|
||||
ide_set_irq(s);
|
||||
break;
|
||||
case WIN_STANDBYNOW1:
|
||||
case WIN_STANDBY:
|
||||
case WIN_STANDBY2:
|
||||
case WIN_STANDBYNOW1:
|
||||
case WIN_STANDBYNOW2:
|
||||
case WIN_IDLEIMMEDIATE:
|
||||
case CFA_IDLEIMMEDIATE:
|
||||
case WIN_SETIDLE1:
|
||||
case WIN_SETIDLE2:
|
||||
s->status = READY_STAT;
|
||||
case WIN_SLEEPNOW1:
|
||||
case WIN_SLEEPNOW2:
|
||||
s->status = READY_STAT;
|
||||
ide_set_irq(s);
|
||||
break;
|
||||
/* ATAPI commands */
|
||||
|
Loading…
Reference in New Issue
Block a user