diff options
Diffstat (limited to 'include/asm-ppc/pci.h')
-rw-r--r-- | include/asm-ppc/pci.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/include/asm-ppc/pci.h b/include/asm-ppc/pci.h index ce5ae6d048f5..a811e440c978 100644 --- a/include/asm-ppc/pci.h +++ b/include/asm-ppc/pci.h | |||
@@ -37,7 +37,7 @@ extern inline void pcibios_set_master(struct pci_dev *dev) | |||
37 | /* No special bus mastering setup handling */ | 37 | /* No special bus mastering setup handling */ |
38 | } | 38 | } |
39 | 39 | ||
40 | extern inline void pcibios_penalize_isa_irq(int irq) | 40 | extern inline void pcibios_penalize_isa_irq(int irq, int active) |
41 | { | 41 | { |
42 | /* We don't do dynamic PCI IRQ allocation */ | 42 | /* We don't do dynamic PCI IRQ allocation */ |
43 | } | 43 | } |
@@ -69,6 +69,16 @@ extern unsigned long pci_bus_to_phys(unsigned int ba, int busnr); | |||
69 | #define pci_unmap_len(PTR, LEN_NAME) (0) | 69 | #define pci_unmap_len(PTR, LEN_NAME) (0) |
70 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) | 70 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) |
71 | 71 | ||
72 | #ifdef CONFIG_PCI | ||
73 | static inline void pci_dma_burst_advice(struct pci_dev *pdev, | ||
74 | enum pci_dma_burst_strategy *strat, | ||
75 | unsigned long *strategy_parameter) | ||
76 | { | ||
77 | *strat = PCI_DMA_BURST_INFINITY; | ||
78 | *strategy_parameter = ~0UL; | ||
79 | } | ||
80 | #endif | ||
81 | |||
72 | /* | 82 | /* |
73 | * At present there are very few 32-bit PPC machines that can have | 83 | * At present there are very few 32-bit PPC machines that can have |
74 | * memory above the 4GB point, and we don't support that. | 84 | * memory above the 4GB point, and we don't support that. |
@@ -95,6 +105,10 @@ extern void | |||
95 | pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, | 105 | pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, |
96 | struct resource *res); | 106 | struct resource *res); |
97 | 107 | ||
108 | extern void | ||
109 | pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, | ||
110 | struct pci_bus_region *region); | ||
111 | |||
98 | extern void pcibios_add_platform_entries(struct pci_dev *dev); | 112 | extern void pcibios_add_platform_entries(struct pci_dev *dev); |
99 | 113 | ||
100 | struct file; | 114 | struct file; |
@@ -103,6 +117,12 @@ extern pgprot_t pci_phys_mem_access_prot(struct file *file, | |||
103 | unsigned long size, | 117 | unsigned long size, |
104 | pgprot_t prot); | 118 | pgprot_t prot); |
105 | 119 | ||
120 | #define HAVE_ARCH_PCI_RESOURCE_TO_USER | ||
121 | extern void pci_resource_to_user(const struct pci_dev *dev, int bar, | ||
122 | const struct resource *rsrc, | ||
123 | u64 *start, u64 *end); | ||
124 | |||
125 | |||
106 | #endif /* __KERNEL__ */ | 126 | #endif /* __KERNEL__ */ |
107 | 127 | ||
108 | #endif /* __PPC_PCI_H */ | 128 | #endif /* __PPC_PCI_H */ |