Property | 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 |
Method | 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.
|
Method | 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.
|
public CanWrite ( uint drive ) : bool | ||
drive | uint | The drive NBR. |
return | bool |
public GetSectorSize ( uint drive ) : uint | ||
drive | uint | The drive NBR. |
return | uint |
public GetTotalSectors ( uint drive ) : uint | ||
drive | uint | The drive NBR. |
return | uint |
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. |
return | bool |
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. |
return | bool |
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. |
return | bool |
public Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool | ||
hardwareResources | Mosa.DeviceSystem.HardwareResources | |
return | bool |
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. |
return | bool |
protected IReadWriteIOPort DeviceHeadPort | ||
return | IReadWriteIOPort |
protected IReadWriteIOPort SectorCountPort | ||
return | IReadWriteIOPort |