diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-12-11 11:48:19 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-12-11 11:48:19 +0000 |
commit | 57b0566668588c70d3a5f769972f9dcbc95f5a3d (patch) | |
tree | fa572b4b48542e0ad9ec98e9d29f837532ca5f55 /xen/include/xen/pci.h | |
parent | 849bd717c230fe8208cca3ef3be5f8e40735b755 (diff) | |
download | xen-57b0566668588c70d3a5f769972f9dcbc95f5a3d.tar.gz xen-57b0566668588c70d3a5f769972f9dcbc95f5a3d.tar.bz2 xen-57b0566668588c70d3a5f769972f9dcbc95f5a3d.zip |
Re-enable MSI support
Currently the MSI is disabled because of some lock issue. This patch
tries to clean up the locking related to MSI lock.
Signed-off-by: Jiang Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/include/xen/pci.h')
-rw-r--r-- | xen/include/xen/pci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/xen/pci.h b/xen/include/xen/pci.h index ff38dce11a..8951d481c4 100644 --- a/xen/include/xen/pci.h +++ b/xen/include/xen/pci.h @@ -36,7 +36,6 @@ struct pci_dev { struct domain *domain; const u8 bus; const u8 devfn; - spinlock_t lock; }; #define for_each_pdev(domain, pdev) \ @@ -59,6 +58,8 @@ struct pci_dev *pci_lock_domain_pdev(struct domain *d, int bus, int devfn); void pci_release_devices(struct domain *d); int pci_add_device(u8 bus, u8 devfn); int pci_remove_device(u8 bus, u8 devfn); +struct pci_dev *pci_get_pdev(int bus, int devfn); +struct pci_dev *pci_get_pdev_by_domain(struct domain *d, int bus, int devfn); uint8_t pci_conf_read8( unsigned int bus, unsigned int dev, unsigned int func, unsigned int reg); |