aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2008-12-22 22:08:29 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 14:13:23 -0500
commit6a479079c07211bf348ac8a79754f26bea258f26 (patch)
tree1587c0ed9446c7d0d6ab8a38d1524132e2faae35 /include/linux/pci.h
parentb8d9cb2a2226118fd71f657c80b06b670a653022 (diff)
PCI: Add pci_clear_master() as opposite of pci_set_master()
During an online device reset it may be useful to disable bus-mastering. pci_disable_device() does that, and far more besides, so is not suitable for an online reset. Add pci_clear_master() which does just this. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 7cbecef19bb6..0f6d2bb1df9c 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -642,6 +642,7 @@ static inline int pci_is_managed(struct pci_dev *pdev)
642 642
643void pci_disable_device(struct pci_dev *dev); 643void pci_disable_device(struct pci_dev *dev);
644void pci_set_master(struct pci_dev *dev); 644void pci_set_master(struct pci_dev *dev);
645void pci_clear_master(struct pci_dev *dev);
645int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state); 646int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state);
646#define HAVE_PCI_SET_MWI 647#define HAVE_PCI_SET_MWI
647int __must_check pci_set_mwi(struct pci_dev *dev); 648int __must_check pci_set_mwi(struct pci_dev *dev);