diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-13 12:28:42 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-09-13 12:28:42 +0000 |
commit | c3e88d8c4f5bfbb83d7e3c1a6251eefa78ad485a (patch) | |
tree | 32417a9e4c117c01574664d4fd67931a65b1d09e /hw | |
parent | 1870a74c88461cf6003e290ba9485fa6bf9ed881 (diff) |
Allow more IDE power management, by Ben Guthro.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3165 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ide.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 */ |