Displaying 2 results from an estimated 2 matches for "b4c138a6ec02".
2023 Aug 25
0
[PATCH 1/5] PCI: Add the pci_get_base_class() helper
...rn Helgaas <bhelgaas at google.com>
Signed-off-by: Sui Jingfeng <suijingfeng at loongson.cn>
---
drivers/pci/search.c | 31 +++++++++++++++++++++++++++++++
include/linux/pci.h | 5 +++++
2 files changed, 36 insertions(+)
diff --git a/drivers/pci/search.c b/drivers/pci/search.c
index b4c138a6ec02..53840634fbfc 100644
--- a/drivers/pci/search.c
+++ b/drivers/pci/search.c
@@ -363,6 +363,37 @@ struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from)
}
EXPORT_SYMBOL(pci_get_class);
+/**
+ * pci_get_base_class - searching for a PCI device by matching against the base class cod...
2023 Aug 25
7
[PATCH 0/5] Add the pci_get_base_class() helper and use it
From: Sui Jingfeng <suijingfeng at loongson.cn>
There is no function that can be used to get all PCI(e) devices in a
system by matching against its the PCI base class code only, while keep
the sub-class code and the programming interface ignored. Therefore, add
the pci_get_base_class() function to suit the need.
For example, if an application want to process all PCI(e) display devices
in a