aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-02-10 09:45:28 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-10 15:52:46 -0500
commitb6ce068a1285a24185b01be8a49021827516b3e1 (patch)
treeea1420fefff86f2e2ee4ed83f08ec2dd99a86dc5 /include/linux/pci.h
parenta0ca9909609470ad779b9b9cc68ce96e975afff7 (diff)
Change pci_raw_ops to pci_raw_read/write
We want to allow different implementations of pci_raw_ops for standard and extended config space on x86. Rather than clutter generic code with knowledge of this, we make pci_raw_ops private to x86 and use it to implement the new raw interface -- raw_pci_read() and raw_pci_write(). Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 7215d3b1f4af..87195b62de52 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -301,14 +301,14 @@ struct pci_ops {
301 int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val); 301 int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val);
302}; 302};
303 303
304struct pci_raw_ops { 304/*
305 int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn, 305 * ACPI needs to be able to access PCI config space before we've done a
306 int reg, int len, u32 *val); 306 * PCI bus scan and created pci_bus structures.
307 int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn, 307 */
308 int reg, int len, u32 val); 308extern int raw_pci_read(unsigned int domain, unsigned int bus,
309}; 309 unsigned int devfn, int reg, int len, u32 *val);
310 310extern int raw_pci_write(unsigned int domain, unsigned int bus,
311extern struct pci_raw_ops *raw_pci_ops; 311 unsigned int devfn, int reg, int len, u32 val);
312 312
313struct pci_bus_region { 313struct pci_bus_region {
314 resource_size_t start; 314 resource_size_t start;