From 2b883e3fd5ad2da5351599f327cc76006e2ef2f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Mon, 27 Dec 2021 14:04:59 +0100 Subject: [PATCH] libpci: Define new string property PCI_FILL_DRIVER This change extends libpci library and allows providers to fill PCI_FILL_DRIVER via native system APIs. As it is string property there is no need to increase ABI version. Intended usage in application is just: const char *driver = pci_get_string_property(d->dev, PCI_FILL_DRIVER); --- lib/pci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pci.h b/lib/pci.h index 3947fc1..16388fa 100644 --- a/lib/pci.h +++ b/lib/pci.h @@ -216,6 +216,7 @@ char *pci_get_string_property(struct pci_dev *d, u32 prop) PCI_ABI; #define PCI_FILL_CLASS_EXT 0x00020000 /* prog_if and rev_id */ #define PCI_FILL_SUBSYS 0x00040000 /* subsys_vendor_id and subsys_id */ #define PCI_FILL_PARENT 0x00080000 +#define PCI_FILL_DRIVER 0x00100000 /* OS driver currently in use (string property) */ void pci_setup_cache(struct pci_dev *, u8 *cache, int len) PCI_ABI; -- 2.39.5