Kernel: Add basic ADMA2 support to the SD card driver

It only takes ~10s to fully boot with smp enabled!
This commit is contained in:
Hendiadyoin1 2023-04-03 15:59:06 +02:00 committed by Sam Atkins
parent daf85732bc
commit 857c9b4558
Notes: sideshowbarker 2024-07-17 14:33:07 +09:00
5 changed files with 408 additions and 26 deletions

View file

@ -14,6 +14,10 @@ ErrorOr<NonnullRefPtr<PCISDHostController>> PCISDHostController::try_initialize(
auto sdhc = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) PCISDHostController(device_identifier)));
TRY(sdhc->initialize());
PCI::enable_bus_mastering(sdhc->device_identifier());
PCI::enable_memory_space(sdhc->device_identifier());
sdhc->try_enable_dma();
return sdhc;
}