]> mj.ucw.cz Git - pciutils.git/commitdiff
Moved the new field at the end of struct pci_dev to keep the ABI.
authorMartin Mares <mj@ucw.cz>
Mon, 10 Nov 2008 23:08:49 +0000 (00:08 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 10 Nov 2008 23:08:49 +0000 (00:08 +0100)
lib/pci.h

index 7d79424d362a931282526c1d65afd089ca79c4a2..52cdecb8185eb29c0c7500b38c554c2cc0b85bbe 100644 (file)
--- a/lib/pci.h
+++ b/lib/pci.h
@@ -127,7 +127,6 @@ 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;
@@ -136,6 +135,9 @@ 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)