atahd: Add STANDBY_IMMEDIATE.

This commit is contained in:
joevt 2024-03-29 20:47:25 -07:00 committed by dingusdev
parent c999c51d77
commit f1abb66f9a
2 changed files with 33 additions and 27 deletions

View File

@ -139,6 +139,7 @@ enum ATA_Cmd : uint8_t {
WRITE_MULTIPLE = 0xC5,
READ_DMA = 0xC8,
WRITE_DMA = 0xCA,
STANDBY_IMMEDIATE_E0 = 0xE0,
FLUSH_CACHE = 0xE7, // ATA-5
WRITE_BUFFER_DMA = 0xE9,
READ_BUFFER_DMA = 0xEB,

View File

@ -164,6 +164,11 @@ int AtaHardDisk::perform_command() {
this->r_status &= ~BSY;
this->update_intrq(1);
break;
case STANDBY_IMMEDIATE_E0:
LOG_F(INFO, "%s: STANDBY_IMMEDIATE_E0", this->name.c_str());
this->r_status &= ~BSY;
this->update_intrq(1);
break;
default:
LOG_F(ERROR, "%s: unknown ATA command 0x%x", this->name.c_str(), this->r_command);
this->r_status &= ~BSY;