aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-12-27 14:04:59 +0100
committerMartin Mares <mj@ucw.cz>2022-02-10 13:49:35 +0100
commit2b883e3fd5ad2da5351599f327cc76006e2ef2f0 (patch)
tree0197a1eb756ede0006517c6a20ad06926bde1dec
parentfd9c6a29a32659287cb7be52b2f2ca638cda35ad (diff)
downloadpciutils-2b883e3fd5ad2da5351599f327cc76006e2ef2f0.tar.gz
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);
-rw-r--r--lib/pci.h1
1 files changed, 1 insertions, 0 deletions
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;