C# Class Mosa.DeviceDriver.ISA.DMA8Bit

Inheritance: Mosa.HardwareSystem.HardwareDevice, IDevice, IHardwareDevice
显示文件 Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
byteWordRegister IWriteOnlyIOPort
channel0Address IReadWriteIOPort
channel0Count IReadWriteIOPort
channel0Page IReadWriteIOPort
channel1Address IReadWriteIOPort
channel1Count IReadWriteIOPort
channel1Page IReadWriteIOPort
channel2Address IReadWriteIOPort
channel2Count IReadWriteIOPort
channel2Page IReadWriteIOPort
channel3Address IReadWriteIOPort
channel3Count IReadWriteIOPort
channel3Page IReadWriteIOPort
channelMaskRegister IWriteOnlyIOPort
commandRegister IWriteOnlyIOPort
intermediateRegister IReadOnlyIOPort
maskRegister IWriteOnlyIOPort
memory0 IMemory
memory1 IMemory
memory2 IMemory
memory3 IMemory
modeRegister IWriteOnlyIOPort
requestRegister IWriteOnlyIOPort
statusRegister IReadOnlyIOPort

Public Methods

Method Description
DMA8Bit ( ) : Mosa.HardwareSystem

Initializes a new instance of the DMA8Bit class.

OnInterrupt ( ) : bool

Called when an interrupt is received.

Setup ( HardwareResources hardwareResources ) : bool

Setups this hardware device driver

SetupChannel ( byte channel, uint count, DMAMode mode, DMATransferType type, bool auto ) : bool

Setups the channel.

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

TransferIn ( byte channel, uint count, byte source, uint offset ) : bool

Transfers the in.

TransferOut ( byte channel, uint count, byte destination, uint offset ) : bool

Transfers the out.

Protected Methods

Method Description
GetTranserAddress ( byte channel ) : IMemory

Gets the DMA transer address.

Method Details

DMA8Bit() public method

Initializes a new instance of the DMA8Bit class.
public DMA8Bit ( ) : Mosa.HardwareSystem
return Mosa.HardwareSystem

GetTranserAddress() protected method

Gets the DMA transer address.
protected GetTranserAddress ( byte channel ) : IMemory
channel byte The channel.
return IMemory

OnInterrupt() public method

Called when an interrupt is received.
public OnInterrupt ( ) : bool
return bool

Setup() public method

Setups this hardware device driver
public Setup ( HardwareResources hardwareResources ) : bool
hardwareResources Mosa.HardwareSystem.HardwareResources
return bool

SetupChannel() public method

Setups the channel.
public SetupChannel ( byte channel, uint count, DMAMode mode, DMATransferType type, bool auto ) : bool
channel byte The channel.
count uint The count.
mode DMAMode The mode.
type DMATransferType The type.
auto bool if set to true [auto].
return bool

Start() public method

Starts this hardware device.
public Start ( ) : DeviceDriverStartStatus
return DeviceDriverStartStatus

TransferIn() public method

Transfers the in.
public TransferIn ( byte channel, uint count, byte source, uint offset ) : bool
channel byte The channel.
count uint The count.
source byte The source.
offset uint The offset.
return bool

TransferOut() public method

Transfers the out.
public TransferOut ( byte channel, uint count, byte destination, uint offset ) : bool
channel byte The channel.
count uint The count.
destination byte The destination.
offset uint The offset.
return bool

Property Details

byteWordRegister protected_oe property

protected IWriteOnlyIOPort byteWordRegister
return IWriteOnlyIOPort

channel0Address protected_oe property

protected IReadWriteIOPort channel0Address
return IReadWriteIOPort

channel0Count protected_oe property

protected IReadWriteIOPort channel0Count
return IReadWriteIOPort

channel0Page protected_oe property

protected IReadWriteIOPort channel0Page
return IReadWriteIOPort

channel1Address protected_oe property

protected IReadWriteIOPort channel1Address
return IReadWriteIOPort

channel1Count protected_oe property

protected IReadWriteIOPort channel1Count
return IReadWriteIOPort

channel1Page protected_oe property

protected IReadWriteIOPort channel1Page
return IReadWriteIOPort

channel2Address protected_oe property

protected IReadWriteIOPort channel2Address
return IReadWriteIOPort

channel2Count protected_oe property

protected IReadWriteIOPort channel2Count
return IReadWriteIOPort

channel2Page protected_oe property

protected IReadWriteIOPort channel2Page
return IReadWriteIOPort

channel3Address protected_oe property

protected IReadWriteIOPort channel3Address
return IReadWriteIOPort

channel3Count protected_oe property

protected IReadWriteIOPort channel3Count
return IReadWriteIOPort

channel3Page protected_oe property

protected IReadWriteIOPort channel3Page
return IReadWriteIOPort

channelMaskRegister protected_oe property

protected IWriteOnlyIOPort channelMaskRegister
return IWriteOnlyIOPort

commandRegister protected_oe property

protected IWriteOnlyIOPort commandRegister
return IWriteOnlyIOPort

intermediateRegister protected_oe property

protected IReadOnlyIOPort intermediateRegister
return IReadOnlyIOPort

maskRegister protected_oe property

protected IWriteOnlyIOPort maskRegister
return IWriteOnlyIOPort

memory0 protected_oe property

protected IMemory memory0
return IMemory

memory1 protected_oe property

protected IMemory memory1
return IMemory

memory2 protected_oe property

protected IMemory memory2
return IMemory

memory3 protected_oe property

protected IMemory memory3
return IMemory

modeRegister protected_oe property

protected IWriteOnlyIOPort modeRegister
return IWriteOnlyIOPort

requestRegister protected_oe property

protected IWriteOnlyIOPort requestRegister
return IWriteOnlyIOPort

statusRegister protected_oe property

protected IReadOnlyIOPort statusRegister
return IReadOnlyIOPort