# Functions
New interface that allows us to get a list of all NVIDIA PCI devices.
NewMockNvpci create new mock PCI and remove old devices.
WithLogger provides an Option to set the logger for the library.
WithPCIDatabasePath provides an Option to set the path to the pciids database file.
WithPCIDevicesRoot provides an Option to set the root path for PCI devices on the system.
# Constants
PCI3dControllerClass represents the PCI class for 3D Graphics accellerators.
PCIBridgeClass represents the PCI class for network controllers.
PCICapabilityListPointer represents offset for the capability list pointer.
PCICfgSpaceExtendedSize represents the size in bytes of the extended config space.
PCICfgSpaceStandardSize represents the size in bytes of the standard config space.
PCIDevicesRoot represents base path for all pci devices under sysfs.
PCIMellanoxVendorID represents PCI vendor id for Mellanox.
PCINetworkControllerClass represents the PCI class for network controllers.
PCINvidiaVendorID represents PCI vendor id for NVIDIA.
PCINvSwitchClass represents the PCI class for NVSwitches.
PCIStatusBytePosition represents the position of the status register.
PCIStatusCapabilityList represents the status register bit which indicates capability list support.
PCIVgaControllerClass represents the PCI class for VGA Controllers.
UnknownClassString is the class name to set for devices not found in the PCI database.
UnknownDeviceString is the device name to set for devices not found in the PCI database.
# Structs
ConfigSpace PCI configuration space (standard extended) file path.
MemoryResource represents a mmio region.
MockNvpci mock pci device.
NvidiaPCIDevice represents a PCI device for an NVIDIA product.
PCICapabilities combines the standard and extended config space.
PCIExtendedCapability extended PCI config space.
PCIStandardCapability standard PCI config space.
SriovInfo indicates whether device is VF/PF for SRIOV capable devices.
SriovPhysicalFunction stores info about SRIOV physical function.
SriovVirtualFunction keeps data about SRIOV virtual function.
# Interfaces
ConfigSpaceIO Interface for reading and writing raw and preconfigured values.
Interface allows us to get a list of all NVIDIA PCI devices.
ResourceInterface exposes some higher level functions of resources.
# Type aliases
MemoryResources a more human readable handle.
Option defines a function for passing options to the New() call.