Documentation
¶
Overview ¶
Package pcidb provides generated Go structs describing PCI ID database optimized for performance and low GC pressure.
Index ¶
- func LookupClass(classID Class) (string, bool)
- func LookupProduct(vendorID Vendor, productID Product) (string, bool)
- func LookupSubclass(classID Class, subclassID Subclass) (string, bool)
- func LookupVendor(vendorID Vendor) (string, bool)
- type Class
- type ClassSubclass
- type ClassSubclassProgrammingInterface
- type Product
- type ProgrammingInterface
- type Subclass
- type Subsystem
- type SubsystemInfo
- type Vendor
- type VendorProduct
- type VendorProductSubsystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupProduct ¶
LookupProduct by vendor and product IDs.
func LookupSubclass ¶
LookupSubclass by ID.
Types ¶
type ClassSubclass ¶
type ClassSubclass = uint16
ClassSubclass is a PCI device class + subclass combined into 16 bits.
type ClassSubclassProgrammingInterface ¶
type ClassSubclassProgrammingInterface = uint32
ClassSubclassProgrammingInterface is a class + subclass + programming interface combined into 24 bits.
type ProgrammingInterface ¶
type ProgrammingInterface = uint8
ProgrammingInterface is a PCI programming interface.
type SubsystemInfo ¶
SubsystemInfo describes a PCI subsystem.
type VendorProduct ¶
type VendorProduct = uint32
VendorProduct is a PCI vendor and product combined into 32 bits.
type VendorProductSubsystem ¶
type VendorProductSubsystem = uint64
VendorProductSubsystem is a PCI vendor, product and subsystem combined into 48 bits.
Click to show internal directories.
Click to hide internal directories.