C# Class Mosa.DeviceDriver.ISA.PIC

Inheritance: Mosa.DeviceSystem.HardwareDevice, IDevice, IHardwareDevice
Show file Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
masterCommandPort IReadWriteIOPort
masterDataPort IReadWriteIOPort
masterInterruptMask byte
slaveCommandPort IReadWriteIOPort
slaveDataPort IReadWriteIOPort
slaveInterruptMask byte

Public Methods

Method Description
DisableIRQ ( byte irq ) : void

Disables the IRQ.

DisableIRQs ( ) : void

Disables the IRQs.

EnableIRQ ( byte irq ) : void

Enables the IRQ.

OnInterrupt ( ) : bool

Called when an interrupt is received.

PIC ( ) : Mosa.HardwareSystem

Initializes a new instance of the PIC class.

SendEndOfInterrupt ( byte irq ) : void

Sends the end of interrupt.

Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

Protected Methods

Method Description
DisableMasterIRQ ( byte irq ) : void

Disables the master IRQ.

DisableSlaveIRQ ( byte irq ) : void

Disables the slave IRQ.

EnableMasterIRQ ( byte irq ) : void

Enables the master IRQs.

EnableSlaveIRQ ( byte irq ) : void

Enables the slave IRQ.

Method Details

DisableIRQ() public method

Disables the IRQ.
public DisableIRQ ( byte irq ) : void
irq byte The irq.
return void

DisableIRQs() public method

Disables the IRQs.
public DisableIRQs ( ) : void
return void

DisableMasterIRQ() protected method

Disables the master IRQ.
protected DisableMasterIRQ ( byte irq ) : void
irq byte The irq.
return void

DisableSlaveIRQ() protected method

Disables the slave IRQ.
protected DisableSlaveIRQ ( byte irq ) : void
irq byte The irq.
return void

EnableIRQ() public method

Enables the IRQ.
public EnableIRQ ( byte irq ) : void
irq byte The irq.
return void

EnableMasterIRQ() protected method

Enables the master IRQs.
protected EnableMasterIRQ ( byte irq ) : void
irq byte The irq.
return void

EnableSlaveIRQ() protected method

Enables the slave IRQ.
protected EnableSlaveIRQ ( byte irq ) : void
irq byte The irq.
return void

OnInterrupt() public method

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

PIC() public method

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

SendEndOfInterrupt() public method

Sends the end of interrupt.
public SendEndOfInterrupt ( byte irq ) : void
irq byte The irq.
return void

Setup() public method

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

Start() public method

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

Property Details

masterCommandPort protected property

protected IReadWriteIOPort masterCommandPort
return IReadWriteIOPort

masterDataPort protected property

protected IReadWriteIOPort masterDataPort
return IReadWriteIOPort

masterInterruptMask protected property

protected byte masterInterruptMask
return byte

slaveCommandPort protected property

protected IReadWriteIOPort slaveCommandPort
return IReadWriteIOPort

slaveDataPort protected property

protected IReadWriteIOPort slaveDataPort
return IReadWriteIOPort

slaveInterruptMask protected property

protected byte slaveInterruptMask
return byte