C# Class Mosa.DeviceDriver.ISA.IDEController

Inheritance: Mosa.DeviceSystem.HardwareDevice, IDevice, IHardwareDevice, IDiskControllerDevice
Afficher le fichier Open project: tgiphil/MOSA-Project

Protected Properties

Свойство Type Description
CommandPort IWriteOnlyIOPort
DataPort IReadWriteIOPort
DeviceHeadPort IReadWriteIOPort
ErrorPort IReadOnlyIOPort
FeaturePort IReadWriteIOPort
LBAHighPort IReadWriteIOPort
LBALowPort IReadWriteIOPort
LBAMidPort IReadWriteIOPort
SectorCountPort IReadWriteIOPort
StatusPort IReadOnlyIOPort
driveInfo DriveInfo[]
spinLock Mosa.DeviceSystem.SpinLock

Méthodes publiques

Méthode Description
CanWrite ( uint drive ) : bool

Determines whether this instance can write to the specified drive.

GetSectorSize ( uint drive ) : uint

Gets the size of the sector.

GetTotalSectors ( uint drive ) : uint

Gets the total sectors.

IDEController ( ) : Mosa.ClassLib

Initializes a new instance of the IDEController class.

OnInterrupt ( ) : bool

Called when an interrupt is received.

Open ( uint drive ) : bool

Opens the specified drive NBR.

Probe ( ) : bool

Probes this instance.

ReadBlock ( uint drive, uint block, uint count, byte data ) : bool

Reads the block.

Release ( uint drive ) : bool

Releases the specified drive NBR.

Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

WriteBlock ( uint drive, uint block, uint count, byte data ) : bool

Writes the block.

Méthodes protégées

Méthode Description
PerformLBA28 ( SectorOperation operation, uint drive, uint lba, byte data, uint offset ) : bool

Performs the LBA28.

ReadLBA48 ( SectorOperation operation, uint drive, uint lba, byte data, uint offset ) : bool

Reads the LBA48.

WaitForRegisterReady ( ) : bool

Waits for register ready.

Method Details

CanWrite() public méthode

Determines whether this instance can write to the specified drive.
public CanWrite ( uint drive ) : bool
drive uint The drive NBR.
Résultat bool

GetSectorSize() public méthode

Gets the size of the sector.
public GetSectorSize ( uint drive ) : uint
drive uint The drive NBR.
Résultat uint

GetTotalSectors() public méthode

Gets the total sectors.
public GetTotalSectors ( uint drive ) : uint
drive uint The drive NBR.
Résultat uint

IDEController() public méthode

Initializes a new instance of the IDEController class.
public IDEController ( ) : Mosa.ClassLib
Résultat Mosa.ClassLib

OnInterrupt() public méthode

Called when an interrupt is received.
public OnInterrupt ( ) : bool
Résultat bool

Open() public méthode

Opens the specified drive NBR.
public Open ( uint drive ) : bool
drive uint The drive NBR.
Résultat bool

PerformLBA28() protected méthode

Performs the LBA28.
protected PerformLBA28 ( SectorOperation operation, uint drive, uint lba, byte data, uint offset ) : bool
operation SectorOperation The operation.
drive uint The drive NBR.
lba uint The lba.
data byte The data.
offset uint The offset.
Résultat bool

Probe() public méthode

Probes this instance.
public Probe ( ) : bool
Résultat bool

ReadBlock() public méthode

Reads the block.
public ReadBlock ( uint drive, uint block, uint count, byte data ) : bool
drive uint The drive NBR.
block uint The block.
count uint The count.
data byte The data.
Résultat bool

ReadLBA48() protected méthode

Reads the LBA48.
protected ReadLBA48 ( SectorOperation operation, uint drive, uint lba, byte data, uint offset ) : bool
operation SectorOperation The operation.
drive uint The drive.
lba uint The lba.
data byte The data.
offset uint The offset.
Résultat bool

Release() public méthode

Releases the specified drive NBR.
public Release ( uint drive ) : bool
drive uint The drive NBR.
Résultat bool

Setup() public méthode

Setups this hardware device driver
public Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool
hardwareResources Mosa.DeviceSystem.HardwareResources
Résultat bool

Start() public méthode

Starts this hardware device.
public Start ( ) : DeviceDriverStartStatus
Résultat DeviceDriverStartStatus

WaitForRegisterReady() protected méthode

Waits for register ready.
protected WaitForRegisterReady ( ) : bool
Résultat bool

WriteBlock() public méthode

Writes the block.
public WriteBlock ( uint drive, uint block, uint count, byte data ) : bool
drive uint The drive NBR.
block uint The block.
count uint The count.
data byte The data.
Résultat bool

Property Details

CommandPort protected_oe property

protected IWriteOnlyIOPort CommandPort
Résultat IWriteOnlyIOPort

DataPort protected_oe property

protected IReadWriteIOPort DataPort
Résultat IReadWriteIOPort

DeviceHeadPort protected_oe property

protected IReadWriteIOPort DeviceHeadPort
Résultat IReadWriteIOPort

ErrorPort protected_oe property

protected IReadOnlyIOPort ErrorPort
Résultat IReadOnlyIOPort

FeaturePort protected_oe property

protected IReadWriteIOPort FeaturePort
Résultat IReadWriteIOPort

LBAHighPort protected_oe property

protected IReadWriteIOPort LBAHighPort
Résultat IReadWriteIOPort

LBALowPort protected_oe property

protected IReadWriteIOPort LBALowPort
Résultat IReadWriteIOPort

LBAMidPort protected_oe property

protected IReadWriteIOPort LBAMidPort
Résultat IReadWriteIOPort

SectorCountPort protected_oe property

protected IReadWriteIOPort SectorCountPort
Résultat IReadWriteIOPort

StatusPort protected_oe property

protected IReadOnlyIOPort StatusPort
Résultat IReadOnlyIOPort

driveInfo protected_oe property

protected DriveInfo[] driveInfo
Résultat DriveInfo[]

spinLock protected_oe property

protected SpinLock,Mosa.DeviceSystem spinLock
Résultat Mosa.DeviceSystem.SpinLock