pci.h (10ce3cc919f50c2043b41ca968b43c26a3672600) pci.h (38973ba7903fa0660a31b2bdc50ff711ec8d08c9)
1#ifndef __ASM_POWERPC_PCI_H
2#define __ASM_POWERPC_PCI_H
3#ifdef __KERNEL__
4
5/*
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 140 unchanged lines hidden (view full) ---

149/* The PCI address space does equal the physical memory
150 * address space (no IOMMU). The IDE and SCSI device layers use
151 * this boolean for bounce buffer decisions.
152 */
153#define PCI_DMA_BUS_IS_PHYS (1)
154
155#endif /* CONFIG_PPC64 */
156
1#ifndef __ASM_POWERPC_PCI_H
2#define __ASM_POWERPC_PCI_H
3#ifdef __KERNEL__
4
5/*
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version

--- 140 unchanged lines hidden (view full) ---

149/* The PCI address space does equal the physical memory
150 * address space (no IOMMU). The IDE and SCSI device layers use
151 * this boolean for bounce buffer decisions.
152 */
153#define PCI_DMA_BUS_IS_PHYS (1)
154
155#endif /* CONFIG_PPC64 */
156
157extern void pcibios_resource_to_bus(struct pci_dev *dev,
158 struct pci_bus_region *region,
159 struct resource *res);
160
161extern void pcibios_bus_to_resource(struct pci_dev *dev,
162 struct resource *res,
163 struct pci_bus_region *region);
164
165extern void pcibios_claim_one_bus(struct pci_bus *b);
166
167extern void pcibios_finish_adding_to_bus(struct pci_bus *bus);
168
169extern void pcibios_resource_survey(void);
170
171extern struct pci_controller *init_phb_dynamic(struct device_node *dn);
172extern int remove_phb_dynamic(struct pci_controller *phb);

--- 12 unchanged lines hidden (view full) ---

185 unsigned long size,
186 pgprot_t prot);
187
188#define HAVE_ARCH_PCI_RESOURCE_TO_USER
189extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
190 const struct resource *rsrc,
191 resource_size_t *start, resource_size_t *end);
192
157extern void pcibios_claim_one_bus(struct pci_bus *b);
158
159extern void pcibios_finish_adding_to_bus(struct pci_bus *bus);
160
161extern void pcibios_resource_survey(void);
162
163extern struct pci_controller *init_phb_dynamic(struct device_node *dn);
164extern int remove_phb_dynamic(struct pci_controller *phb);

--- 12 unchanged lines hidden (view full) ---

177 unsigned long size,
178 pgprot_t prot);
179
180#define HAVE_ARCH_PCI_RESOURCE_TO_USER
181extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
182 const struct resource *rsrc,
183 resource_size_t *start, resource_size_t *end);
184
185extern resource_size_t pcibios_io_space_offset(struct pci_controller *hose);
193extern void pcibios_setup_bus_devices(struct pci_bus *bus);
194extern void pcibios_setup_bus_self(struct pci_bus *bus);
195extern void pcibios_setup_phb_io_space(struct pci_controller *hose);
196extern void pcibios_scan_phb(struct pci_controller *hose);
197
198#endif /* __KERNEL__ */
199#endif /* __ASM_POWERPC_PCI_H */
186extern void pcibios_setup_bus_devices(struct pci_bus *bus);
187extern void pcibios_setup_bus_self(struct pci_bus *bus);
188extern void pcibios_setup_phb_io_space(struct pci_controller *hose);
189extern void pcibios_scan_phb(struct pci_controller *hose);
190
191#endif /* __KERNEL__ */
192#endif /* __ASM_POWERPC_PCI_H */