mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-19 01:22:54 +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
Notes:
sideshowbarker
2024-07-17 14:33:07 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 857c9b4558
Pull-request: https://github.com/SerenityOS/serenity/pull/18161
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/mrkct ✅
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