aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-04-23 22:45:17 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-16 17:29:33 -0400
commita72b46c3849cdb05993015991bde548ab8b6d7ac (patch)
treea782d4ab9c217792c9a8cefe48db9aebc0734dbe /include
parent1eb3948716f68bdb71509d0175765295f1aca23d (diff)
PCI: Add pci_bus_set_ops
pci_bus_set_ops changes pci_ops associated with a pci_bus. This can be used by debug tools such as PCIE AER error injection to fake some PCI configuration registers. Acked-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-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 ec03b90d3510..ea2a153a9126 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -637,6 +637,7 @@ int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn,
637 int where, u16 val); 637 int where, u16 val);
638int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, 638int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn,
639 int where, u32 val); 639 int where, u32 val);
640struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops);
640 641
641static inline int pci_read_config_byte(struct pci_dev *dev, int where, u8 *val) 642static inline int pci_read_config_byte(struct pci_dev *dev, int where, u8 *val)
642{ 643{