C# Class Mosa.DeviceDriver.ISA.PCIController

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

Protected Properties

Property Type Description
configAddress IReadWriteIOPort
configData IReadWriteIOPort
spinLock Mosa.DeviceSystem.SpinLock

Public Methods

Method Description
OnInterrupt ( ) : bool

Called when an interrupt is received.

PCIController ( ) : Mosa.HardwareSystem

Initializes a new instance of the PCIController class.

Probe ( ) : bool

Probes for this device.

ReadConfig16 ( byte bus, byte slot, byte function, byte register ) : ushort

Reads from configuration space

ReadConfig32 ( byte bus, byte slot, byte function, byte register ) : uint

Reads from configuration space

ReadConfig8 ( byte bus, byte slot, byte function, byte register ) : byte

Reads from configuration space

Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

WriteConfig16 ( byte bus, byte slot, byte function, byte register, ushort value ) : void

Writes to configuration space

WriteConfig32 ( byte bus, byte slot, byte function, byte register, uint value ) : void

Writes to configuration space

WriteConfig8 ( byte bus, byte slot, byte function, byte register, byte value ) : void

Writes to configuration space

Protected Methods

Method Description
GetIndex ( byte bus, byte slot, byte function, byte register ) : uint

Gets the index.

Method Details

GetIndex() protected method

Gets the index.
protected GetIndex ( byte bus, byte slot, byte function, byte register ) : uint
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
return uint

OnInterrupt() public method

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

PCIController() public method

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

Probe() public method

Probes for this device.
public Probe ( ) : bool
return bool

ReadConfig16() public method

Reads from configuration space
public ReadConfig16 ( byte bus, byte slot, byte function, byte register ) : ushort
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
return ushort

ReadConfig32() public method

Reads from configuration space
public ReadConfig32 ( byte bus, byte slot, byte function, byte register ) : uint
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
return uint

ReadConfig8() public method

Reads from configuration space
public ReadConfig8 ( byte bus, byte slot, byte function, byte register ) : byte
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
return byte

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

WriteConfig16() public method

Writes to configuration space
public WriteConfig16 ( byte bus, byte slot, byte function, byte register, ushort value ) : void
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
value ushort The value.
return void

WriteConfig32() public method

Writes to configuration space
public WriteConfig32 ( byte bus, byte slot, byte function, byte register, uint value ) : void
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
value uint The value.
return void

WriteConfig8() public method

Writes to configuration space
public WriteConfig8 ( byte bus, byte slot, byte function, byte register, byte value ) : void
bus byte The bus.
slot byte The slot.
function byte The function.
register byte The register.
value byte The value.
return void

Property Details

configAddress protected_oe property

protected IReadWriteIOPort configAddress
return IReadWriteIOPort

configData protected_oe property

protected IReadWriteIOPort configData
return IReadWriteIOPort

spinLock protected_oe property

protected SpinLock,Mosa.DeviceSystem spinLock
return Mosa.DeviceSystem.SpinLock