First iteration of denali server
This commit is contained in:
parent
82b1a5c4db
commit
ffa2d97a64
18 changed files with 273 additions and 39 deletions
|
|
@ -74,7 +74,7 @@ z_err_t AhciDevice::SendIdentify() {
|
|||
memcpy(command_table_->command_fis, &fis, sizeof(fis));
|
||||
|
||||
commands_[0].region = MappedMemoryRegion::ContiguousPhysical(512);
|
||||
commands_[0].callback = HandleIdent;
|
||||
// commands_[0].callback = HandleIdent;
|
||||
|
||||
command_table_->prds[0].region_address = commands_[0].region.paddr();
|
||||
command_table_->prds[0].byte_count = 512;
|
||||
|
|
@ -119,7 +119,7 @@ void AhciDevice::HandleIrq() {
|
|||
|
||||
for (uint64_t i = 0; i < 32; i++) {
|
||||
if (commands_finished & (1 << i)) {
|
||||
commands_[i].callback(this);
|
||||
// commands_[i].callback(this);
|
||||
commands_issued_ &= ~(1 << i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue