diff options
Diffstat (limited to 'include/asm-powerpc/pci.h')
| -rw-r--r-- | include/asm-powerpc/pci.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/asm-powerpc/pci.h b/include/asm-powerpc/pci.h index ce0f13e8eb14..0cd3e77efd20 100644 --- a/include/asm-powerpc/pci.h +++ b/include/asm-powerpc/pci.h | |||
| @@ -107,8 +107,6 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev, | |||
| 107 | #define get_pci_dma_ops() NULL | 107 | #define get_pci_dma_ops() NULL |
| 108 | #endif | 108 | #endif |
| 109 | 109 | ||
| 110 | extern int pci_domain_nr(struct pci_bus *bus); | ||
| 111 | |||
| 112 | /* Decide whether to display the domain number in /proc */ | 110 | /* Decide whether to display the domain number in /proc */ |
| 113 | extern int pci_proc_domain(struct pci_bus *bus); | 111 | extern int pci_proc_domain(struct pci_bus *bus); |
| 114 | 112 | ||
| @@ -130,9 +128,6 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev, | |||
| 130 | */ | 128 | */ |
| 131 | #define pci_dac_dma_supported(pci_dev, mask) (0) | 129 | #define pci_dac_dma_supported(pci_dev, mask) (0) |
| 132 | 130 | ||
| 133 | /* Return the index of the PCI controller for device PDEV. */ | ||
| 134 | #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index | ||
| 135 | |||
| 136 | /* Set the name of the bus as it appears in /proc/bus/pci */ | 131 | /* Set the name of the bus as it appears in /proc/bus/pci */ |
| 137 | static inline int pci_proc_domain(struct pci_bus *bus) | 132 | static inline int pci_proc_domain(struct pci_bus *bus) |
| 138 | { | 133 | { |
| @@ -141,6 +136,8 @@ static inline int pci_proc_domain(struct pci_bus *bus) | |||
| 141 | 136 | ||
| 142 | #endif /* CONFIG_PPC64 */ | 137 | #endif /* CONFIG_PPC64 */ |
| 143 | 138 | ||
| 139 | extern int pci_domain_nr(struct pci_bus *bus); | ||
| 140 | |||
| 144 | struct vm_area_struct; | 141 | struct vm_area_struct; |
| 145 | /* Map a range of PCI memory or I/O space for a device into user space */ | 142 | /* Map a range of PCI memory or I/O space for a device into user space */ |
| 146 | int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma, | 143 | int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma, |
| @@ -220,10 +217,6 @@ static inline struct resource *pcibios_select_root(struct pci_dev *pdev, | |||
| 220 | return root; | 217 | return root; |
| 221 | } | 218 | } |
| 222 | 219 | ||
| 223 | extern int unmap_bus_range(struct pci_bus *bus); | ||
| 224 | |||
| 225 | extern int remap_bus_range(struct pci_bus *bus); | ||
| 226 | |||
| 227 | extern void pcibios_fixup_device_resources(struct pci_dev *dev, | 220 | extern void pcibios_fixup_device_resources(struct pci_dev *dev, |
| 228 | struct pci_bus *bus); | 221 | struct pci_bus *bus); |
| 229 | 222 | ||
