Module cfg_space_emu

Module cfg_space_emu 

Source
Expand description

Helpers that implement standardized PCI configuration space functionality.

To be clear: PCI devices are not required to use these helpers, and may choose to implement configuration space accesses manually.

Modules§

header_type_consts
Constants for header type BAR counts

Structs§

ConfigSpaceCommonHeaderEmulator
Common emulator for shared PCI configuration space functionality. Generic over the number of BARs (6 for Type 0, 2 for Type 1).
ConfigSpaceType0Emulator
Emulator for the standard Type 0 PCI configuration space header.
ConfigSpaceType1Emulator
Emulator for the standard Type 1 PCI configuration space header.
DeviceBars
Container type that describes a device’s available BARs
IntxInterrupt
A wrapper around a [LineInterrupt] that considers PCI configuration space interrupt control bits.

Enums§

BarMemoryKind
Different kinds of memory that a BAR can be backed by
CommonHeaderResult
Result type for common header emulator operations
HeaderType
PCI configuration space header type with corresponding BAR count

Type Aliases§

ConfigSpaceCommonHeaderEmulatorType0
Type alias for Type 0 common header emulator (6 BARs)
ConfigSpaceCommonHeaderEmulatorType1
Type alias for Type 1 common header emulator (2 BARs)