Skip to main content

Module test_helpers

Module test_helpers 

Source
Expand description

Mock types for unit-testing various PCI behaviors.

Structs§

TestPciInterruptController
A test-only interrupt controller that simply stashes incoming interrupt requests in a FIFO queue. Implements SignalMsi.

Traits§

TestCfgAccess
Test-only DWORD access helpers for config-space-like objects.

Functions§

read_cap_u32
Read a u32 from a PciCapability.
read_extended_cap_u32
Read a u32 from a PciExtendedCapability.
write_cap_u32
Write a u32 to a PciCapability.
write_extended_cap_u32
Write a u32 to a PciExtendedCapability.