summaryrefslogtreecommitdiff
path: root/src/dev/storage
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/storage')
-rw-r--r--src/dev/storage/ide_disk.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dev/storage/ide_disk.cc b/src/dev/storage/ide_disk.cc
index e4b4e625a..de0986e45 100644
--- a/src/dev/storage/ide_disk.cc
+++ b/src/dev/storage/ide_disk.cc
@@ -657,6 +657,7 @@ IdeDisk::startCommand()
// Supported PIO data-in commands
case WDCC_IDENTIFY:
+ case ATAPI_IDENTIFY_DEVICE:
cmdBytes = cmdBytesLeft = sizeof(struct ataparams);
devState = Prepare_Data_In;
action = ACT_DATA_READY;
@@ -852,7 +853,8 @@ IdeDisk::updateState(DevAction_t action)
status |= STATUS_DRQ_BIT;
// copy the data into the data buffer
- if (cmdReg.command == WDCC_IDENTIFY) {
+ if (cmdReg.command == WDCC_IDENTIFY ||
+ cmdReg.command == ATAPI_IDENTIFY_DEVICE) {
// Reset the drqBytes for this block
drqBytesLeft = sizeof(struct ataparams);