From 98304b6779e578f4a82122e71bdb7fdae65286ff Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 11 Nov 2008 00:08:49 +0100 Subject: [PATCH] Moved the new field at the end of struct pci_dev to keep the ABI. --- lib/pci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pci.h b/lib/pci.h index 7d79424..52cdecb 100644 --- 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) -- 2.39.2