Added progIF to lspci output.

This commit is contained in:
Patrick 2024-01-22 01:52:50 +01:00
parent fa6dab4f88
commit 75ec3751fe

View File

@ -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<unsigned>(header.baseClass), static_cast<unsigned>(header.subClass));
static_cast<unsigned>(header.baseClass), static_cast<unsigned>(header.subClass), header.progIf);
if (header.headerType == HeaderType::GENERAL_DEVICE && getGeneralDeviceHeader(header, generalDeviceHeader))
{