pciids

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ILLEGAL a token which the Lexer does not understand.
	ILLEGAL token = iota
	// EOF end of file.
	EOF
	// WS whitespace.
	WS
	// NEWLINE '\n'.
	NEWLINE
	// COMMENT '# something'.
	COMMENT
	// VENDOR PCI vendor.
	VENDOR
	// SUBVENDOR PCI subvendor.
	SUBVENDOR
	// DEVICE PCI device.
	DEVICE
	// CLASS PCI class.
	CLASS
	// SUBCLASS PCI subclass.
	SUBCLASS
	// PROGIF PCI programming interface.
	PROGIF
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetDeviceName(uint16, uint16) (string, error)
	GetClassName(uint32) (string, error)
}

Interface returns textual description of specific attributes of PCI devices.

func NewDB

func NewDB(opts ...Option) Interface

NewDB Parse the PCI DB in its default locations or use the default builtin pci.ids db.

type Option

type Option func(*pcidb)

Option defines a function for passing options to the NewDB() call.

func WithFilePath

func WithFilePath(path string) Option

WithFilePath provides an Option to set the file path for the pciids database used by pciids interface. The file path provided takes precedence over all other paths.

type SubDevice

type SubDevice struct {
	// contains filtered or unexported fields
}

SubDevice PCI SubDevice.

Jump to

Keyboard shortcuts

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