pcidb

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

README

go-pcidb

Documentation

Overview

Package pcidb provides generated Go structs describing PCI ID database optimized for performance and low GC pressure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupClass

func LookupClass(classID Class) (string, bool)

LookupClass by ID.

func LookupProduct

func LookupProduct(vendorID Vendor, productID Product) (string, bool)

LookupProduct by vendor and product IDs.

func LookupSubclass

func LookupSubclass(classID Class, subclassID Subclass) (string, bool)

LookupSubclass by ID.

func LookupVendor

func LookupVendor(vendorID Vendor) (string, bool)

LookupVendor by ID.

Types

type Class

type Class = uint8

Class is a PCI device class.

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 Product

type Product = uint16

Product is a PCI product.

type ProgrammingInterface

type ProgrammingInterface = uint8

ProgrammingInterface is a PCI programming interface.

type Subclass

type Subclass = uint8

Subclass is a PCI device subclass.

type Subsystem

type Subsystem = uint16

Subsystem is a PCI subsystem.

type SubsystemInfo

type SubsystemInfo struct {
	Name   string
	Vendor Vendor
}

SubsystemInfo describes a PCI subsystem.

type Vendor

type Vendor = uint16

Vendor is a PCI vendor.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL