Use pci->header_type in pci_bar() to avoid unnecessary pci_config_readb.

Pass a 'struct pci_device' into pci_bar and update all callers.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
1 file changed
tree: 58995836dd033ad0cf2297c567ed1b0e34228671
  1. src/
  2. tools/
  3. vgasrc/
  4. .gitignore
  5. COPYING
  6. COPYING.LESSER
  7. Makefile
  8. README
  9. TODO