mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
Update AHCI.cs
This commit is contained in:
parent
9bb48ca0c2
commit
cc326d0ce2
1 changed files with 1 additions and 2 deletions
|
|
@ -66,13 +66,12 @@ namespace Cosmos.HAL.BlockDevice
|
|||
|
||||
public AHCI(PCIDevice aAHCIDevice)
|
||||
{
|
||||
mAHCIDebugger.Send("Something wrong!");
|
||||
aAHCIDevice.EnableBusMaster(true);
|
||||
aAHCIDevice.EnableMemory(true);
|
||||
|
||||
mABAR = aAHCIDevice.BaseAddressBar[5].BaseAddress;
|
||||
mGeneric = new GenericRegisters(aAHCIDevice.BaseAddressBar[5].BaseAddress);
|
||||
mGeneric.GlobalHostControl |= (1U << 31);
|
||||
mGeneric.GlobalHostControl |= (1U << 31); // Enable AHCI
|
||||
|
||||
GetCapabilities();
|
||||
mPorts.Capacity = (int)NumOfPorts;
|
||||
|
|
|
|||
Loading…
Reference in a new issue