Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Lookup takes PCI hex (as strings) vendor and device ID values and returns human readable labels for both the vendor and device. Returns the input ID value if if label is not found in the ids map.
func NewBusReader ¶
func NewBusReader() (busReader, error)
NewBusReader returns a BusReader. If it can't glob in /sys/bus/pci/devices then it gives up. We don't provide an option (yet) to do type I or PCIe MMIO config stuff.
Types ¶
type Devices ¶
type Devices []*PCI
Devices contains a slice of one or more PCI devices
type PCI ¶
type PCI struct { Addr string Vendor string `pci:"vendor"` Device string `pci:"device"` VendorName string DeviceName string }
PCI is a PCI device. We will fill this in as we add options. For now it just holds two uint16 per the PCI spec.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.