From 8b90f545215092480a39f77deaa2ea12d9a64945 Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 3 Jan 2020 19:18:21 -0600 Subject: pci: include a minimum pci.ids with classes, note when pci.ids is missing Noticed that the RPi4 has a PCIe bus, but pci.ids is not included with the standard Raspbian image, so everything is "(Unknown)." Now there will be some basic information about what the device is, and a note about installing pci.ids for more information. Signed-off-by: Burt P --- modules/devices.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules') diff --git a/modules/devices.c b/modules/devices.c index 429dd6b6..63cbaef4 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -887,6 +887,16 @@ gchar **hi_module_get_dependencies(void) const gchar *hi_note_func(gint entry) { + if (entry == ENTRY_PCI + || entry == ENTRY_GPU) { + const gchar *ids = find_pci_ids_file(); + if (!ids) { + return g_strdup(_("A copy of pci.ids is not available on the system.")); + } + if (ids && strstr(ids, ".min")) { + return g_strdup(_("A full pci.ids is not available on the system.")); + } + } if (entry == ENTRY_RESOURCES) { if (root_required_for_resources()) { return g_strdup(_("Resource information requires superuser privileges")); -- cgit v1.2.3