pci.bi

The FreeBasic include for the PCI manager

Author

Marcel Sondaar

License

Public Domain

Summary
pci.biThe FreeBasic include for the PCI manager
Todo’s
documentation
PCICALLSThis enumeration lists all the defined calls to a PCI configuration manager
Constants
PCI_GETDEVICEGet the Vendor/Type for a certain device
PCI_READDWORDRead a 32-bit doubleword from PCI Configuration space
PCI_READBYTERead one byte from PCI Configuration space
PCI_WRITEDWORD
PCI_WRITEBYTE
PCI_GETBARTYPE
PCI_GETBARBASE
PCI_ENUMERATEDEV
PCI_SETBARBASE

Todo’s

documentation

PCICALLS

This enumeration lists all the defined calls to a PCI configuration manager

Derived from: none

Derivatives: none

Summary
Constants
PCI_GETDEVICEGet the Vendor/Type for a certain device
PCI_READDWORDRead a 32-bit doubleword from PCI Configuration space
PCI_READBYTERead one byte from PCI Configuration space
PCI_WRITEDWORD
PCI_WRITEBYTE
PCI_GETBARTYPE
PCI_GETBARBASE
PCI_ENUMERATEDEV
PCI_SETBARBASE

Constants

PCI_GETDEVICE

Get the Vendor/Type for a certain device

The device is numbered for each possible pci device.  That means PCI function goes in increments of 1, Slots in increments of 8 and buses in increments of 256

PCI_READDWORD

Read a 32-bit doubleword from PCI Configuration space

PCI_READBYTE

Read one byte from PCI Configuration space

PCI_WRITEDWORD

PCI_WRITEBYTE

PCI_GETBARTYPE

PCI_GETBARBASE

PCI_ENUMERATEDEV

PCI_SETBARBASE