1 #ifndef __ASM_POWERPC_PCI_H
2 #define __ASM_POWERPC_PCI_H
12 #include <linux/types.h>
13 #include <linux/slab.h>
14 #include <linux/string.h>
17 #include <asm/machdep.h>
18 #include <asm/scatterlist.h>
21 #include <asm/pci-bridge.h>
26 #define PCI_PROBE_NONE -1
27 #define PCI_PROBE_NORMAL 0
28 #define PCI_PROBE_DEVTREE 1
30 #define PCIBIOS_MIN_IO 0x1000
31 #define PCIBIOS_MIN_MEM 0x10000000
36 #define IOBASE_BRIDGE_NUMBER 0
37 #define IOBASE_MEMORY 1
39 #define IOBASE_ISA_IO 3
40 #define IOBASE_ISA_MEM 4
46 #define pcibios_assign_all_busses() \
47 (pci_has_flag(PCI_REASSIGN_ALL_BUS))
54 #define HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
57 if (
ppc_md.pci_get_legacy_ide_irq)
58 return ppc_md.pci_get_legacy_ide_irq(dev, channel);
59 return channel ? 15 : 14;
66 #define set_pci_dma_ops(d)
67 #define get_pci_dma_ops() NULL
77 #define PCI_DISABLE_MWI
81 enum pci_dma_burst_strategy *strat,
82 unsigned long *strategy_parameter)
84 unsigned long cacheline_size;
89 cacheline_size = 1024;
91 cacheline_size = (
int) byte * 4;
93 *strat = PCI_DMA_BURST_MULTIPLE;
94 *strategy_parameter = cacheline_size;
102 enum pci_dma_burst_strategy *strat,
103 unsigned long *strategy_parameter)
105 *strat = PCI_DMA_BURST_INFINITY;
106 *strategy_parameter = ~0
UL;
117 #define arch_setup_msi_irqs arch_setup_msi_irqs
118 #define arch_teardown_msi_irqs arch_teardown_msi_irqs
119 #define arch_msi_check_device arch_msi_check_device
127 #define HAVE_PCI_MMAP 1
137 #define HAVE_PCI_LEGACY 1
145 #define PCI_DMA_BUS_IS_PHYS (0)
153 #define PCI_DMA_BUS_IS_PHYS (1)
159 extern void pcibios_finish_adding_to_bus(
struct pci_bus *
bus);
180 #define HAVE_ARCH_PCI_RESOURCE_TO_USER