From 155a36650ba5e207269d312c9a3d97b351fa5026 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 13 Oct 2025 12:03:54 -0400 Subject: kern: pci: Parse PCI capability list per device This allows us to see what kind of capabilities the device has (e.g., MSI/MSI-X) Signed-off-by: Ian Moffett --- src/sys/include/io/pci/pci.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sys/include/io/pci/pci.h') diff --git a/src/sys/include/io/pci/pci.h b/src/sys/include/io/pci/pci.h index e6d0a24..27d3787 100644 --- a/src/sys/include/io/pci/pci.h +++ b/src/sys/include/io/pci/pci.h @@ -82,6 +82,9 @@ typedef uint32_t pcival_t; * @vendor: Vendor ID * @device: Device ID * @bar: Base address registers + * @caplist: Set if a capability list is implemented + * @msix: Device implements MSI-X + * @msi: Device implements MSI */ struct pci_device { uint16_t bus; @@ -93,6 +96,9 @@ struct pci_device { uint16_t vendor; uint16_t device; uint32_t bar[6]; + uint8_t caplist : 1; + uint8_t msix : 1; + uint8_t msi : 1; TAILQ_ENTRY(pci_device) link; }; -- cgit v1.2.3