[Denali] Move signaling out of the command class.

This commit is contained in:
Drew Galbraith 2023-12-08 14:43:29 -08:00
parent d7c1022b7f
commit 28a0f02b05
6 changed files with 27 additions and 31 deletions

View file

@ -243,12 +243,8 @@ glcr::ErrorCode AhciController::LoadDevices() {
}
devices_[i] = new AhciPort(reinterpret_cast<AhciPortHba*>(port_addr));
if (devices_[i]->IsSata()) {
IdentifyDeviceCommand identify(devices_[i].get());
devices_[i]->IssueCommand(&identify);
identify.WaitComplete();
}
// TODO: Maybe continue to the next device if this fails.
RET_ERR(devices_[i]->Identify());
}
return glcr::OK;
}