Class PCIDevice
Inheritance
System.Object
PCIDevice
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Cosmos.HAL2.dll
Syntax
Constructors
|
Improve this Doc
View Source
PCIDevice(UInt32, UInt32, UInt32)
Declaration
public PCIDevice(uint bus, uint slot, uint function)
Parameters
Type |
Name |
Description |
System.UInt32 |
bus |
|
System.UInt32 |
slot |
|
System.UInt32 |
function |
|
Fields
|
Improve this Doc
View Source
BAR0
Declaration
public readonly uint BAR0
Field Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
BaseAddressBar
Declaration
public readonly PCIBaseAddressBar[] BaseAddressBar
Field Value
|
Improve this Doc
View Source
BIST
Declaration
public readonly PCIDevice.PCIBist BIST
Field Value
|
Improve this Doc
View Source
bus
Declaration
Field Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ClassCode
Declaration
public readonly byte ClassCode
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
ConfigAddressPort
Declaration
public const ushort ConfigAddressPort = 3320
Field Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
ConfigDataPort
Declaration
public const ushort ConfigDataPort = 3324
Field Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
DeviceExists
Declaration
public readonly bool DeviceExists
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DeviceID
Declaration
public readonly ushort DeviceID
Field Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
function
Declaration
public readonly uint function
Field Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Declaration
public readonly PCIDevice.PCIHeaderType HeaderType
Field Value
|
Improve this Doc
View Source
InterruptPIN
Declaration
public readonly PCIDevice.PCIInterruptPIN InterruptPIN
Field Value
|
Improve this Doc
View Source
ProgIF
Declaration
public readonly byte ProgIF
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
RevisionID
Declaration
public readonly byte RevisionID
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
SecondaryBusNumber
Declaration
public readonly byte SecondaryBusNumber
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
slot
Declaration
public readonly uint slot
Field Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Status
Declaration
public readonly ushort Status
Field Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
Subclass
Declaration
public readonly byte Subclass
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
VendorID
Declaration
public readonly ushort VendorID
Field Value
Type |
Description |
System.UInt16 |
|
Properties
|
Improve this Doc
View Source
Claimed
Has this device been claimed by a driver
Declaration
public bool Claimed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Command
Declaration
public PCIDevice.PCICommand Command { get; set; }
Property Value
|
Improve this Doc
View Source
InterruptLine
Declaration
public byte InterruptLine { get; }
Property Value
Type |
Description |
System.Byte |
|
Methods
|
Improve this Doc
View Source
EnableBusMaster(Boolean)
Declaration
public void EnableBusMaster(bool enable)
Parameters
Type |
Name |
Description |
System.Boolean |
enable |
|
|
Improve this Doc
View Source
EnableDevice()
Declaration
public void EnableDevice()
|
Improve this Doc
View Source
EnableMemory(Boolean)
Declaration
public void EnableMemory(bool enable)
Parameters
Type |
Name |
Description |
System.Boolean |
enable |
bool value.
|
|
Improve this Doc
View Source
GetAddressBase(UInt32, UInt32, UInt32)
Declaration
protected static uint GetAddressBase(uint aBus, uint aSlot, uint aFunction)
Parameters
Type |
Name |
Description |
System.UInt32 |
aBus |
A bus.
|
System.UInt32 |
aSlot |
A slot.
|
System.UInt32 |
aFunction |
A function.
|
Returns
Type |
Description |
System.UInt32 |
UInt32 value.
|
|
Improve this Doc
View Source
Declaration
public static ushort GetHeaderType(ushort Bus, ushort Slot, ushort Function)
Parameters
Type |
Name |
Description |
System.UInt16 |
Bus |
A bus.
|
System.UInt16 |
Slot |
A slot.
|
System.UInt16 |
Function |
A function.
|
Returns
Type |
Description |
System.UInt16 |
ushort value.
|
|
Improve this Doc
View Source
GetVendorID(UInt16, UInt16, UInt16)
Declaration
public static ushort GetVendorID(ushort Bus, ushort Slot, ushort Function)
Parameters
Type |
Name |
Description |
System.UInt16 |
Bus |
A bus.
|
System.UInt16 |
Slot |
A slot.
|
System.UInt16 |
Function |
A function.
|
Returns
Type |
Description |
System.UInt16 |
UInt16 value.
|
|
Improve this Doc
View Source
ReadRegister16(Byte)
Declaration
public ushort ReadRegister16(byte aRegister)
Parameters
Type |
Name |
Description |
System.Byte |
aRegister |
A register.
|
Returns
Type |
Description |
System.UInt16 |
UInt16 value.
|
|
Improve this Doc
View Source
ReadRegister32(Byte)
Declaration
public uint ReadRegister32(byte aRegister)
Parameters
Type |
Name |
Description |
System.Byte |
aRegister |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ReadRegister8(Byte)
Declaration
public byte ReadRegister8(byte aRegister)
Parameters
Type |
Name |
Description |
System.Byte |
aRegister |
A register to read.
|
Returns
Type |
Description |
System.Byte |
byte value.
|
|
Improve this Doc
View Source
WriteRegister16(Byte, UInt16)
Declaration
public void WriteRegister16(byte aRegister, ushort value)
Parameters
Type |
Name |
Description |
System.Byte |
aRegister |
A register.
|
System.UInt16 |
value |
A value.
|
|
Improve this Doc
View Source
WriteRegister32(Byte, UInt32)
Declaration
public void WriteRegister32(byte aRegister, uint value)
Parameters
Type |
Name |
Description |
System.Byte |
aRegister |
|
System.UInt32 |
value |
|
|
Improve this Doc
View Source
WriteRegister8(Byte, Byte)
Declaration
public void WriteRegister8(byte aRegister, byte value)
Parameters
Type |
Name |
Description |
System.Byte |
aRegister |
|
System.Byte |
value |
|