diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2010-09-06 16:46:19 +0900 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-09-07 20:10:04 +0300 |
commit | 43c945f16a172f07145ca1f30abb958070228690 (patch) | |
tree | 7ee072ba9a16af692a2d924c90cd0de3f5e3a88d /hw/pci.h | |
parent | 5beb8ad503c88a76f2b8106c3b74b4ce485a60e1 (diff) | |
download | qemu-43c945f16a172f07145ca1f30abb958070228690.zip |
pci: make pci_parse_devfn() aware of func.
make pci_parse_devfn() aware of func. With func = NULL it behave as before.
This will be used later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -227,6 +227,8 @@ PCIBus *pci_find_bus(PCIBus *bus, int bus_num); PCIDevice *pci_find_device(PCIBus *bus, int bus_num, int slot, int function); PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr); +int pci_parse_devaddr(const char *addr, int *domp, int *busp, + unsigned int *slotp, unsigned int *funcp); int pci_read_devaddr(Monitor *mon, const char *addr, int *domp, int *busp, unsigned *slotp); |