summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine
diff options
context:
space:
mode:
author Ville Linde <villedevs@gmail.com>2015-07-24 18:42:56 +0300
committer Ville Linde <villedevs@gmail.com>2015-07-24 18:50:18 +0300
commitac438b23025876b8c9da85b4c29a5f39508958f6 (patch)
treef4413e183e8f71f3ae84627dee7ab4db14f03785 /src/emu/machine
parent05e724ef2c381acd5d432770d709787ec51e9114 (diff)
atapihle: Added Check Power Mode command (nw)
Diffstat (limited to 'src/emu/machine')
-rw-r--r--src/emu/machine/atahle.h1
-rw-r--r--src/emu/machine/atapihle.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/emu/machine/atahle.h b/src/emu/machine/atahle.h
index a1efe0d00dd..30236e62d49 100644
--- a/src/emu/machine/atahle.h
+++ b/src/emu/machine/atahle.h
@@ -122,6 +122,7 @@ protected:
IDE_COMMAND_WRITE_DMA = 0xca,
IDE_COMMAND_IDLE_IMMEDIATE = 0xe1,
IDE_COMMAND_IDLE = 0xe3,
+ IDE_COMMAND_CHECK_POWER_MODE = 0xe5,
IDE_COMMAND_CACHE_FLUSH = 0xe7,
IDE_COMMAND_IDENTIFY_DEVICE = 0xec,
IDE_COMMAND_SET_FEATURES = 0xef,
diff --git a/src/emu/machine/atapihle.c b/src/emu/machine/atapihle.c
index c57cde5c212..4b749ee36e6 100644
--- a/src/emu/machine/atapihle.c
+++ b/src/emu/machine/atapihle.c
@@ -244,6 +244,12 @@ void atapi_hle_device::process_command()
set_irq(ASSERT_LINE);
break;
+ case IDE_COMMAND_CHECK_POWER_MODE:
+ m_status = IDE_STATUS_DRDY;
+ m_sector_count = 0xff; // Power mode: 0x00 = Standby, 0x80 = Idle mode, 0xff = Active mode or Idle mode
+ set_irq(ASSERT_LINE);
+ break;
+
default:
ata_hle_device::process_command();
break;