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