From: Pali Rohár Date: Mon, 27 Dec 2021 13:04:59 +0000 (+0100) Subject: libpci: Define new string property PCI_FILL_DRIVER X-Git-Tag: v3.8.0~32 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2b883e3fd5ad2da5351599f327cc76006e2ef2f0;p=pciutils.git 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); --- 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;