Only touch PCI functions > 0 on multi-function devices; rescan max pci each time.

Some single-function devices will respond to all sub-functions - and
    this confuses things.  So, when scanning the PCI bus make sure to
    only touch function 0 on single-function devices.
Since the bus scanning code is necessarily complex now, we might as
    well implement max bus detection inline with all pci scans.  So,
    there is no need to scan for the max bus at startup.
6 files changed
tree: 1d16bc29eaceb4baedd69fa67c9c8014e66cf793
  1. src/
  2. tools/
  3. .gitignore
  5. Makefile
  7. TODO