]> mj.ucw.cz Git - pciutils.git/blobdiff - lspci.h
update-pciids: Re-compress pci.ids if needed
[pciutils.git] / lspci.h
diff --git a/lspci.h b/lspci.h
index 6e0bb2492fd532d11b4235a93982229b7c3ef5e1..c5a9ec726871770cbeb23206a2530c63610997a1 100644 (file)
--- a/lspci.h
+++ b/lspci.h
@@ -3,7 +3,9 @@
  *
  *     Copyright (c) 1997--2018 Martin Mares <mj@ucw.cz>
  *
- *     Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #define PCIUTILS_LSPCI
@@ -39,6 +41,7 @@ struct device {
   struct bus *parent_bus;
   struct bridge *bridge;
   /* Cache */
+  int no_config_access;
   unsigned int config_cached, config_bufsize;
   byte *config;                                /* Cached configuration space data */
   byte *present;                       /* Maps which configuration bytes are present */
@@ -87,7 +90,7 @@ void show_kernel_cleanup(void);
 
 struct bridge {
   struct bridge *chain;                        /* Single-linked list of bridges */
-  struct bridge *next, *child;         /* Tree of bridges */
+  struct bridge *next, *prev, *child;  /* Tree of bridges */
   struct bus *first_bus, *last_bus;    /* List of buses connected to this bridge */
   unsigned int domain;
   unsigned int primary, secondary, subordinate;        /* Bus numbers */