X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lspci.h;h=c5a9ec726871770cbeb23206a2530c63610997a1;hb=e5d1d2dbb64cafd33f9b012b7959b61319dcd250;hp=fefee5256423a4790487e06cd31419eb8d5d978a;hpb=888ddf0e53f304d61326665bca3294f38129d7c9;p=pciutils.git diff --git a/lspci.h b/lspci.h index fefee52..c5a9ec7 100644 --- a/lspci.h +++ b/lspci.h @@ -3,7 +3,9 @@ * * Copyright (c) 1997--2018 Martin Mares * - * 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 */ @@ -55,8 +58,6 @@ u32 get_conf_long(struct device *d, unsigned int pos); word get_conf_word(struct device *d, unsigned int pos); byte get_conf_byte(struct device *d, unsigned int pos); -void get_subid(struct device *d, word *subvp, word *subdp); - /* Useful macros for decoding of bits and bit fields */ #define FLAG(x,y) ((x & y) ? '+' : '-') @@ -89,8 +90,8 @@ void show_kernel_cleanup(void); struct bridge { struct bridge *chain; /* Single-linked list of bridges */ - struct bridge *next, *child; /* Tree of bridges */ - struct bus *first_bus; /* List of buses connected to this bridge */ + 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 */ struct device *br_dev;