mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:58:10 +00:00
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:
parent
daf85732bc
commit
857c9b4558
5 changed files with 408 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue