mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
30 lines
854 B
C#
30 lines
854 B
C#
using Cosmos.Debug.Kernel;
|
|
|
|
namespace Cosmos.HAL.BlockDevice
|
|
{
|
|
public abstract class Ata : BlockDevice
|
|
{
|
|
|
|
internal static Debugger AtaDebugger = new Debugger("HAL", "Ata");
|
|
|
|
protected Ata()
|
|
{
|
|
mBlockSize = 512;
|
|
}
|
|
|
|
// In future may need to add a None for PCI ATA controllers.
|
|
// Or maybe they all have Primary and Secondary on them as well.
|
|
public enum ControllerIdEnum { Primary, Secondary }
|
|
protected ControllerIdEnum mControllerID;
|
|
public ControllerIdEnum ControllerID => mControllerID;
|
|
|
|
public enum BusPositionEnum { Master, Slave }
|
|
protected BusPositionEnum mBusPosition;
|
|
public BusPositionEnum BusPosition => mBusPosition;
|
|
|
|
public override string ToString()
|
|
{
|
|
return "Ata (Abstract)";
|
|
}
|
|
}
|
|
}
|