Property | Type | Description | |
---|---|---|---|
commandPort | IReadWriteIOPort | ||
configPort | IReadWriteIOPort | ||
dataPort | IReadWriteIOPort | ||
enchancedController | bool | ||
floppyDMA | IDMAChannel | ||
floppyDrives | FloppyDriveInfo[] | ||
floppyMedia | FloppyMediaInfo[] | ||
interruptSet | bool | ||
lastSeek | LastSeek[] | ||
spinLock | SpinLock | ||
statusPort | IReadWriteIOPort | ||
trackCache | TrackCache[] |
Method | Description | |
---|---|---|
CanWrite ( uint drive ) : bool |
Determines whether this instance can write the specified drive NBR.
|
|
FloppyDiskController ( ) : Mosa.DeviceSystem |
Initializes a new instance of the FloppyDiskController class.
|
|
GetSectorSize ( uint drive ) : uint |
Gets the size of the sector.
|
|
GetTotalSectors ( uint drive ) : uint |
Gets the total sectors.
|
|
OnInterrupt ( ) : bool |
Called when an interrupt is received.
|
|
Open ( uint drive ) : bool |
Opens the specified drive.
|
|
ReadBlock ( uint drive, uint block, uint count, byte data ) : bool |
Reads the block.
|
|
Release ( uint drive ) : bool |
Releases the specified drive.
|
|
Setup ( 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 | |
---|---|---|
CHSToLBA ( uint drive, uint cylinder, uint head, uint sector ) : uint |
CHSs to LBA.
|
|
ClearInterrupt ( ) : void |
Clears the interrupt.
|
|
DetectDrives ( ) : void |
Detects the drives.
|
|
DetermineByType ( byte type ) : FloppyDriveInfo |
Determines the type of the by.
|
|
GetByte ( ) : byte |
Gets the byte.
|
|
LBAToHead ( uint drive, uint lba ) : byte |
LBAs to head.
|
|
LBAToSector ( uint drive, uint lba ) : byte |
LBAs to sector.
|
|
LBAToTrack ( uint drive, uint lba ) : byte |
LBAs to track.
|
|
PerformIO ( SectorOperation operation, uint drive, byte sector, byte track, byte head, uint count, byte data, uint offset ) : bool |
Performs the IO.
|
|
ReadBlock2 ( uint drive, uint lba, byte data, uint offset ) : bool |
Reads the block2.
|
|
Recalibrate ( uint drive ) : bool |
Re-calibrates the specified drive.
|
|
ResetController ( ) : void |
Resets the controller.
|
|
Seek ( uint drive, byte track, byte head ) : bool |
Seeks the specified drive.
|
|
SendByte ( byte command ) : void |
Sends the byte.
|
|
TurnOffMotor ( uint drive ) : void |
Turns the off motor.
|
|
TurnOnMotor ( uint drive ) : void |
Turns the on motor.
|
|
WaitForInterrupt ( uint milliseconds ) : bool |
Waits for interrupt.
|
|
WaitForReqisterReady ( ) : bool |
Waits for register ready.
|
|
WriteBlock2 ( uint drive, uint lba, uint count, byte data, uint offset ) : bool |
Writes the block.
|
protected CHSToLBA ( uint drive, uint cylinder, uint head, uint sector ) : uint | ||
drive | uint | The drive. |
cylinder | uint | The cylinder. |
head | uint | The head. |
sector | uint | The sector. |
return | uint |
public CanWrite ( uint drive ) : bool | ||
drive | uint | The drive NBR. |
return | bool |
protected static DetermineByType ( byte type ) : FloppyDriveInfo | ||
type | byte | The type. |
return | FloppyDriveInfo |
public FloppyDiskController ( ) : Mosa.DeviceSystem | ||
return | Mosa.DeviceSystem |
public GetSectorSize ( uint drive ) : uint | ||
drive | uint | The drive. |
return | uint |
public GetTotalSectors ( uint drive ) : uint | ||
drive | uint | The drive NBR. |
return | uint |
protected LBAToHead ( uint drive, uint lba ) : byte | ||
drive | uint | The drive. |
lba | uint | The lba. |
return | byte |
protected LBAToSector ( uint drive, uint lba ) : byte | ||
drive | uint | The drive. |
lba | uint | The lba. |
return | byte |
protected LBAToTrack ( uint drive, uint lba ) : byte | ||
drive | uint | The drive. |
lba | uint | The lba. |
return | byte |
protected PerformIO ( SectorOperation operation, uint drive, byte sector, byte track, byte head, uint count, byte data, uint offset ) : bool | ||
operation | SectorOperation | The operation. |
drive | uint | The drive. |
sector | byte | The sector. |
track | byte | The track. |
head | byte | The head. |
count | uint | The count. |
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 ReadBlock2 ( uint drive, uint lba, byte data, uint offset ) : bool | ||
drive | uint | The drive. |
lba | uint | The lba. |
data | byte | The data. |
offset | uint | The offset. |
return | bool |
protected Recalibrate ( uint drive ) : bool | ||
drive | uint | The drive. |
return | bool |
protected Seek ( uint drive, byte track, byte head ) : bool | ||
drive | uint | The drive. |
track | byte | The track. |
head | byte | The head. |
return | bool |
protected SendByte ( byte command ) : void | ||
command | byte | The command. |
return | void |
public Setup ( HardwareResources hardwareResources ) : bool | ||
hardwareResources | HardwareResources | |
return | bool |
protected TurnOffMotor ( uint drive ) : void | ||
drive | uint | The drive. |
return | void |
protected TurnOnMotor ( uint drive ) : void | ||
drive | uint | The drive. |
return | void |
protected WaitForInterrupt ( uint milliseconds ) : bool | ||
milliseconds | uint | The milliseconds. |
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 WriteBlock2 ( uint drive, uint lba, uint count, byte data, uint offset ) : bool | ||
drive | uint | The drive. |
lba | uint | The lba. |
count | uint | The count. |
data | byte | The data. |
offset | uint | The offset. |
return | bool |
protected FloppyDriveInfo[] floppyDrives | ||
return | FloppyDriveInfo[] |