]> xenbits.xensource.com Git - seabios.git/commit
pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the...
authorAleksandr Bezzubikov <zuban32s@gmail.com>
Thu, 17 Aug 2017 23:33:19 +0000 (02:33 +0300)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 14 Sep 2017 19:49:13 +0000 (15:49 -0400)
commit7de1f65c0cf1e11ee3fa580d59eb7acdd0c42ad9
tree47455d58ac17d7692264e84ad1816c6194ab3b3d
parent1ef72ab2f89ae61dcdb3f01323bd0a7dc978c2b9
pci: refactor pci_find_capapibilty to get bdf as the first argument instead of the whole pci_device

Refactor pci_find_capability function to get bdf instead of
a whole pci_device* as the only necessary field for this function
is still bdf.

Signed-off-by: Aleksandr Bezzubikov <zuban32s@gmail.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
src/fw/pciinit.c
src/hw/pci.c
src/hw/pci.h
src/hw/pcidevice.c
src/hw/pcidevice.h
src/hw/virtio-pci.c