]> rtime.felk.cvut.cz Git - jailhouse.git/commit
inmates: pci: allow pci_find_device to discover multiple devices
authorHenning Schild <henning.schild@siemens.com>
Fri, 19 Sep 2014 14:35:26 +0000 (16:35 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 25 Sep 2014 13:47:08 +0000 (15:47 +0200)
commitdc9cfa0dd9ff0b928cca0388cea9c515c19a9160
treebf5c5f99d726f6954f6d8fe9e5fd0f307542c4e6
parenta5a4a610be7271e1ac1a7b38f1c2c3b5fdbac41b
inmates: pci: allow pci_find_device to discover multiple devices

Systems can have more than one PCI device with the same vendor/device
id pair. Change the discovery helper to allow searching for more than
just the first bdf.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
inmates/demos/x86/e1000-demo.c
inmates/demos/x86/pci-demo.c
inmates/lib/pci.c
inmates/lib/x86/inmate.h