Cosmos/source2/Kernel/System/Hardware/Cosmos.Hardware/BlockDevice/Ata.cs
blah38621_cp 1b922726f0 The first of a series of commits as I work my way down the list of things Gendarme found wrong. (a large amount is likely to be skipped, as gendarme found 13k potential issues.)
This one makes sure that constructors for abstract classes are protected, not public, as the constructor can only be called by child classes.
2011-10-22 23:19:51 +00:00

28 lines
762 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Hardware.BlockDevice {
public abstract class Ata : BlockDevice {
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 {
get { return mControllerID; }
}
public enum BusPositionEnum { Master, Slave }
protected BusPositionEnum mBusPosition;
public BusPositionEnum BusPosition {
get { return mBusPosition; }
}
}
}