]> git.ipfire.org Git - thirdparty/pciutils.git/blobdiff - lib/pci.h
Updated library ABI with proper versioning.
[thirdparty/pciutils.git] / lib / pci.h
index 3a8355a3f94d6d812f72039879a4027c59f8efdf..d7f7fee31f71f638c16c3c36326d7b0a1898560c 100644 (file)
--- a/lib/pci.h
+++ b/lib/pci.h
@@ -16,7 +16,7 @@
 #include "header.h"
 #include "types.h"
 
-#define PCI_LIB_VERSION 0x030000
+#define PCI_LIB_VERSION 0x030100
 
 #ifndef PCI_ABI
 #define PCI_ABI
@@ -127,6 +127,7 @@ struct pci_dev {
   pciaddr_t size[6];                   /* Region sizes */
   pciaddr_t rom_base_addr;             /* Expansion ROM base address */
   pciaddr_t rom_size;                  /* Expansion ROM size */
+  struct pci_cap *first_cap;           /* List of capabilities */
 
   /* Fields used internally: */
   struct pci_access *access;
@@ -135,9 +136,6 @@ struct pci_dev {
   int cache_len;
   int hdrtype;                         /* Cached low 7 bits of header type, -1 if unknown */
   void *aux;                           /* Auxillary data */
-
-  /* Another field set by pci_fill_info() */
-  struct pci_cap *first_cap;           /* List of capabilities */
 };
 
 #define PCI_ADDR_IO_MASK (~(pciaddr_t) 0x3)