From 75ec3751fe4739628fb848a4fdc52c9ca59a3ce5 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Mon, 22 Jan 2024 01:52:50 +0100 Subject: [PATCH] Added progIF to lspci output. --- targets/_any/src/app/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/_any/src/app/main.cpp b/targets/_any/src/app/main.cpp index 54c0256..743ea19 100644 --- a/targets/_any/src/app/main.cpp +++ b/targets/_any/src/app/main.cpp @@ -14,9 +14,9 @@ void cmdLspci() noexcept GeneralDeviceHeader generalDeviceHeader = {}; for (const Header& header : enumerateDevices()) { - std::printf("Bus %d, Port %d, Function %d: VendorID: 0x%X, DeviceID: 0x%X, Base Class: 0x%X, Sub Class: 0x%X\n", + std::printf("Bus %d, Port %d, Function %d: VendorID: 0x%X, DeviceID: 0x%X, Base Class: 0x%X, Sub Class: 0x%X, ProgIF: 0x%X\n", header.bus, header.device, header.function, header.vendorID, header.deviceID, - static_cast(header.baseClass), static_cast(header.subClass)); + static_cast(header.baseClass), static_cast(header.subClass), header.progIf); if (header.headerType == HeaderType::GENERAL_DEVICE && getGeneralDeviceHeader(header, generalDeviceHeader)) {