pci: add two-pass pci initialization code
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Jul 2011 07:20:28 +0000 (09:20 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 13 Jul 2011 01:14:52 +0000 (21:14 -0400)
commit82b39b286e58b4066e75868dcd96620416954412
tree8ec5c8beaed3d5e1230093050dc1198b0c5925e9
parent871c92991b65fff584d8200c767f8e1a08f8c4a1
pci: add two-pass pci initialization code

This patch adds a second device scan to the pci initialization, which
counts the memory bars of the various sizes and types.  Then it
calculates the sizes and the packing of the prefetchable and
non-prefetchable pci memory windows and prints the results.

The patch doesn't actually map the devices to make debugging easier.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/pci.h
src/pciinit.c