summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libpci/libpci.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/libpci/libpci.c')
-rw-r--r--payloads/libpayload/libpci/libpci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/libpci/libpci.c b/payloads/libpayload/libpci/libpci.c
index 3e3513ccb0..200ae18435 100644
--- a/payloads/libpayload/libpci/libpci.c
+++ b/payloads/libpayload/libpci/libpci.c
@@ -178,6 +178,7 @@ static struct pci_dev *pci_scan_single_bus(struct pci_dev *dev, uint8_t bus)
dev->func = func;
dev->vendor_id = val & 0xffff;
dev->device_id = (uint16_t)(val >> 16);
+ dev->device_class = pci_read_config16(PCI_DEV(bus, slot, func), PCI_CLASS_DEVICE);
dev->next = 0;
hdr = pci_read_config8(PCI_DEV(bus, slot, func),