C# Класс Mosa.DeviceDriver.ISA.FloppyDiskController

Наследование: HardwareDevice, IDevice, IHardwareDevice, IDiskControllerDevice
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
commandPort IReadWriteIOPort
configPort IReadWriteIOPort
dataPort IReadWriteIOPort
enchancedController bool
floppyDMA IDMAChannel
floppyDrives FloppyDriveInfo[]
floppyMedia FloppyMediaInfo[]
interruptSet bool
lastSeek LastSeek[]
spinLock SpinLock
statusPort IReadWriteIOPort
trackCache TrackCache[]

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

CHSToLBA() защищенный Метод

CHSs to LBA.
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.
Результат uint

CanWrite() публичный Метод

Determines whether this instance can write the specified drive NBR.
public CanWrite ( uint drive ) : bool
drive uint The drive NBR.
Результат bool

ClearInterrupt() защищенный Метод

Clears the interrupt.
protected ClearInterrupt ( ) : void
Результат void

DetectDrives() защищенный Метод

Detects the drives.
protected DetectDrives ( ) : void
Результат void

DetermineByType() защищенный статический Метод

Determines the type of the by.
protected static DetermineByType ( byte type ) : FloppyDriveInfo
type byte The type.
Результат FloppyDriveInfo

FloppyDiskController() публичный Метод

Initializes a new instance of the FloppyDiskController class.
public FloppyDiskController ( ) : Mosa.DeviceSystem
Результат Mosa.DeviceSystem

GetByte() защищенный Метод

Gets the byte.
protected GetByte ( ) : byte
Результат byte

GetSectorSize() публичный Метод

Gets the size of the sector.
public GetSectorSize ( uint drive ) : uint
drive uint The drive.
Результат uint

GetTotalSectors() публичный Метод

Gets the total sectors.
public GetTotalSectors ( uint drive ) : uint
drive uint The drive NBR.
Результат uint

LBAToHead() защищенный Метод

LBAs to head.
protected LBAToHead ( uint drive, uint lba ) : byte
drive uint The drive.
lba uint The lba.
Результат byte

LBAToSector() защищенный Метод

LBAs to sector.
protected LBAToSector ( uint drive, uint lba ) : byte
drive uint The drive.
lba uint The lba.
Результат byte

LBAToTrack() защищенный Метод

LBAs to track.
protected LBAToTrack ( uint drive, uint lba ) : byte
drive uint The drive.
lba uint The lba.
Результат byte

OnInterrupt() публичный Метод

Called when an interrupt is received.
public OnInterrupt ( ) : bool
Результат bool

Open() публичный Метод

Opens the specified drive.
public Open ( uint drive ) : bool
drive uint The drive NBR.
Результат bool

PerformIO() защищенный Метод

Performs the IO.
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.
Результат bool

ReadBlock() публичный Метод

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.
Результат bool

ReadBlock2() защищенный Метод

Reads the block2.
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.
Результат bool

Recalibrate() защищенный Метод

Re-calibrates the specified drive.
protected Recalibrate ( uint drive ) : bool
drive uint The drive.
Результат bool

Release() публичный Метод

Releases the specified drive.
public Release ( uint drive ) : bool
drive uint The drive.
Результат bool

ResetController() защищенный Метод

Resets the controller.
protected ResetController ( ) : void
Результат void

Seek() защищенный Метод

Seeks the specified drive.
protected Seek ( uint drive, byte track, byte head ) : bool
drive uint The drive.
track byte The track.
head byte The head.
Результат bool

SendByte() защищенный Метод

Sends the byte.
protected SendByte ( byte command ) : void
command byte The command.
Результат void

Setup() публичный Метод

Setups this hardware device driver
public Setup ( HardwareResources hardwareResources ) : bool
hardwareResources HardwareResources
Результат bool

Start() публичный Метод

Starts this hardware device.
public Start ( ) : DeviceDriverStartStatus
Результат DeviceDriverStartStatus

TurnOffMotor() защищенный Метод

Turns the off motor.
protected TurnOffMotor ( uint drive ) : void
drive uint The drive.
Результат void

TurnOnMotor() защищенный Метод

Turns the on motor.
protected TurnOnMotor ( uint drive ) : void
drive uint The drive.
Результат void

WaitForInterrupt() защищенный Метод

Waits for interrupt.
protected WaitForInterrupt ( uint milliseconds ) : bool
milliseconds uint The milliseconds.
Результат bool

WaitForReqisterReady() защищенный Метод

Waits for register ready.
protected WaitForReqisterReady ( ) : bool
Результат bool

WriteBlock() публичный Метод

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.
Результат bool

WriteBlock2() защищенный Метод

Writes the block.
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.
Результат bool

Описание свойств

commandPort защищенное свойство

protected IReadWriteIOPort commandPort
Результат IReadWriteIOPort

configPort защищенное свойство

protected IReadWriteIOPort configPort
Результат IReadWriteIOPort

dataPort защищенное свойство

protected IReadWriteIOPort dataPort
Результат IReadWriteIOPort

enchancedController защищенное свойство

protected bool enchancedController
Результат bool

floppyDMA защищенное свойство

protected IDMAChannel floppyDMA
Результат IDMAChannel

floppyDrives защищенное свойство

protected FloppyDriveInfo[] floppyDrives
Результат FloppyDriveInfo[]

floppyMedia защищенное свойство

protected FloppyMediaInfo[] floppyMedia
Результат FloppyMediaInfo[]

interruptSet защищенное свойство

protected bool interruptSet
Результат bool

lastSeek защищенное свойство

protected LastSeek[] lastSeek
Результат LastSeek[]

spinLock защищенное свойство

protected SpinLock spinLock
Результат SpinLock

statusPort защищенное свойство

protected IReadWriteIOPort statusPort
Результат IReadWriteIOPort

trackCache защищенное свойство

protected TrackCache[] trackCache
Результат TrackCache[]