]> git.ipfire.org Git - thirdparty/pciutils.git/commit
pciutils: Add support for 32-bit PCI domains
authorKeith Busch <keith.busch@intel.com>
Thu, 17 Mar 2016 19:19:17 +0000 (13:19 -0600)
committerMartin Mares <mj@ucw.cz>
Sat, 14 May 2016 09:47:29 +0000 (11:47 +0200)
commitab61451d47514c473953a24aa4f4f816b77ade56
tree881353350aec177f8a7e7558f7d4ce0719ff486b
parent37c9315c504f266c23d51e62e59d32422dbbe9e7
pciutils: Add support for 32-bit PCI domains

This adds support for new host bridges that may create PCI domain number
values requiring more than 16 bits. The new domain 32-bit integer is
signed to allow -1 for "any", and is sufficient as the domain number
will never require the full 32-bits.

The domain field is appended at the end of struct pci_dev, and the
current location of the 16-bit domain remains for compatibility. The
domain number is truncated and copied into the legacy domain location
so existing applications linking to the library will continue to work
without modification. We accept that these applications may not work
correctly on machines with host bridges exporting 32-bit domains.

In order to force new programs to link to the new ABI, the pci_init
function call is versioned in this commit.

Signed-off-by: Keith Busch <keith.busch@intel.com>
lib/filter.c
lib/init.c
lib/internal.h
lib/pci.h
lib/sysfs.c
ls-tree.c