From 2692a66b0956434df1411cb9c95aaa5e7a7e4e70 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 11 Oct 2025 16:53:43 -0400 Subject: kern: pci: Get programming interface from device Some devices are identified by very specific programming interfaces, therefore this is important to have. Signed-off-by: Ian Moffett --- src/sys/include/io/pci/pci.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys/include/io') diff --git a/src/sys/include/io/pci/pci.h b/src/sys/include/io/pci/pci.h index cab29aa..fbdead1 100644 --- a/src/sys/include/io/pci/pci.h +++ b/src/sys/include/io/pci/pci.h @@ -60,6 +60,7 @@ typedef uint32_t pcival_t; * @bus: Bus number of device * @slot: Slot number of device * @func: Function number of device + * @prog_if: Programming interface * @vendor: Vendor ID * @device: Device ID * @bar: Base address registers @@ -68,6 +69,7 @@ struct pci_device { uint16_t bus; uint8_t slot; uint8_t func; + uint8_t prog_if; uint8_t class; uint8_t subclass; uint16_t vendor; -- cgit v1.2.3