aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/pci.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2007-12-19 22:54:49 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-20 00:18:08 -0500
commitfa462f2d75e2437b5757069d3d7d27b1e50285cb (patch)
treedc872ff52a3225a3ef134105e74a528e5983fe8d /include/asm-powerpc/pci.h
parent853ad6c2e752215237e7fb26d681ed0008dd081a (diff)
[POWERPC] pci32: Add platform option to enable /proc PCI domains
This adds flags the platforms can use to enable domain numbers in /proc/bus/pci. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/pci.h')
-rw-r--r--include/asm-powerpc/pci.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/include/asm-powerpc/pci.h b/include/asm-powerpc/pci.h
index 47cc117a1422..2883f566709d 100644
--- a/include/asm-powerpc/pci.h
+++ b/include/asm-powerpc/pci.h
@@ -98,9 +98,6 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
98#define get_pci_dma_ops() NULL 98#define get_pci_dma_ops() NULL
99#endif 99#endif
100 100
101/* Decide whether to display the domain number in /proc */
102extern int pci_proc_domain(struct pci_bus *bus);
103
104#else /* 32-bit */ 101#else /* 32-bit */
105 102
106#ifdef CONFIG_PCI 103#ifdef CONFIG_PCI
@@ -112,17 +109,14 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
112 *strategy_parameter = ~0UL; 109 *strategy_parameter = ~0UL;
113} 110}
114#endif 111#endif
115
116/* Set the name of the bus as it appears in /proc/bus/pci */
117static inline int pci_proc_domain(struct pci_bus *bus)
118{
119 return 0;
120}
121
122#endif /* CONFIG_PPC64 */ 112#endif /* CONFIG_PPC64 */
123 113
124extern int pci_domain_nr(struct pci_bus *bus); 114extern int pci_domain_nr(struct pci_bus *bus);
125 115
116/* Decide whether to display the domain number in /proc */
117extern int pci_proc_domain(struct pci_bus *bus);
118
119
126struct vm_area_struct; 120struct vm_area_struct;
127/* Map a range of PCI memory or I/O space for a device into user space */ 121/* Map a range of PCI memory or I/O space for a device into user space */
128int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma, 122int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma,