C# 클래스 Mosa.DeviceDriver.ISA.IDEController

상속: Mosa.DeviceSystem.HardwareDevice, IDevice, IHardwareDevice, IDiskControllerDevice
파일 보기 프로젝트 열기: tgiphil/MOSA-Project

보호된 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

IDEController() 공개 메소드

Initializes a new instance of the IDEController class.
public IDEController ( ) : Mosa.ClassLib
리턴 Mosa.ClassLib

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

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

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 ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool
hardwareResources Mosa.DeviceSystem.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,Mosa.DeviceSystem spinLock
리턴 Mosa.DeviceSystem.SpinLock