diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-02-05 14:34:32 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-02-12 08:27:58 +0000 |
commit | 7cc050b1659545d0c87108c17f0bf78561efcf9a (patch) | |
tree | 19ad3d4af3aec212dc1cd8590d2f8cc54fa7bf23 /hw/pci.h | |
parent | 0bcdeda7e478f1ce1345585d8240e8d5a9b274d5 (diff) |
pci: add creation functions that may fail
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -453,8 +453,12 @@ PCIDevice *pci_create_multifunction(PCIBus *bus, int devfn, bool multifunction, PCIDevice *pci_create_simple_multifunction(PCIBus *bus, int devfn, bool multifunction, const char *name); +PCIDevice *pci_try_create_multifunction(PCIBus *bus, int devfn, + bool multifunction, + const char *name); PCIDevice *pci_create(PCIBus *bus, int devfn, const char *name); PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name); +PCIDevice *pci_try_create(PCIBus *bus, int devfn, const char *name); static inline int pci_is_express(const PCIDevice *d) { |