]> git.ipfire.org Git - thirdparty/pciutils.git/blobdiff - lspci.h
ls-ecaps: extend decode support for more fields for AER CE and UE status
[thirdparty/pciutils.git] / lspci.h
diff --git a/lspci.h b/lspci.h
index 160c65a2a968ddde2c1721e8ca7ecd407a06504e..4d711a555d65f7a5233e120afc56de56fcc07383 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
@@ -56,12 +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);
 
-/* Useful macros for decoding of bits and bit fields */
-
-#define FLAG(x,y) ((x & y) ? '+' : '-')
-#define BITS(x,at,width) (((x) >> (at)) & ((1 << (width)) - 1))
-#define TABLE(tab,x,buf) ((x) < sizeof(tab)/sizeof((tab)[0]) ? (tab)[x] : (sprintf((buf), "??%d", (x)), (buf)))
-
 /* ls-vpd.c */
 
 void cap_vpd(struct device *d);