C# Класс Mosa.DeviceDriver.PCI.MassStorage.PCIIDEController

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

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

Свойство Тип Описание
CommandPort IWriteOnlyIOPort
DataPort IReadWriteIOPort
DeviceHeadPort IReadWriteIOPort
ErrorPort IReadOnlyIOPort
FeaturePort IReadWriteIOPort
LBAHighPort IReadWriteIOPort
LBALowPort IReadWriteIOPort
LBAMidPort IReadWriteIOPort
SectorCountPort IReadWriteIOPort
StatusPort IReadOnlyIOPort
driveInfo DriveInfo[]
spinLock SpinLock

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

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

OnInterrupt ( ) : bool

Called when an interrupt is received.

Open ( uint drive ) : bool

Opens the specified drive NBR.

PCIIDEController ( ) : Mosa.ClassLib

Initializes a new instance of the PCIIDEController class.

PreSetup ( IPCIDeviceResource pciDeviceResource ) : bool
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 ( 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public PreSetup ( IPCIDeviceResource pciDeviceResource ) : bool
pciDeviceResource IPCIDeviceResource
Результат bool

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

Probes this instance.
public Probe ( ) : bool
Результат 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

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

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

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

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

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

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

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

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

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

Waits for register ready.
protected WaitForRegisterReady ( ) : 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

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

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

protected IWriteOnlyIOPort CommandPort
Результат IWriteOnlyIOPort

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

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

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

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

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

protected IReadOnlyIOPort ErrorPort
Результат IReadOnlyIOPort

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

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

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

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

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

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

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

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

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

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

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

protected IReadOnlyIOPort StatusPort
Результат IReadOnlyIOPort

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

protected DriveInfo[] driveInfo
Результат DriveInfo[]

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

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