1 #ifndef _ASM_IA64_PCI_H
2 #define _ASM_IA64_PCI_H
3
4 #include <linux/slab.h>
5 #include <linux/string.h>
6 #include <linux/types.h>
7 #include <linux/spinlock.h>
8
9 #include <asm/io.h>
10 #include <asm/scatterlist.h>
11
12 /*
13 * Can be used to override the logic in pci_scan_bus for skipping
14 * already-configured bus numbers - to be used for buggy BIOSes or
15 * architectures with incomplete PCI setup by the loader.
16 */
17 #define pcibios_assign_all_busses() 0
18
19 #define PCIBIOS_MIN_IO 0x1000
20 #define PCIBIOS_MIN_MEM 0x10000000
21
22 struct pci_dev;
23
24 static inline void
25 pcibios_set_master (struct pci_dev *dev)
26 {
27 /* No special bus mastering setup handling */
28 }
29
30 static inline void
31 pcibios_penalize_isa_irq (int irq)
32 {
33 /* We don't do dynamic PCI IRQ allocation */
34 }
35
36 /*
37 * Dynamic DMA mapping API. See Documentation/DMA-mapping.txt for details.
38 */
39 #define pci_alloc_consistent platform_pci_alloc_consistent
40 #define pci_free_consistent platform_pci_free_consistent
41 #define pci_map_single platform_pci_map_single
42 #define pci_unmap_single platform_pci_unmap_single
43 #define pci_map_sg platform_pci_map_sg
44 #define pci_unmap_sg platform_pci_unmap_sg
45 #define pci_dma_sync_single platform_pci_dma_sync_single
46 #define pci_dma_sync_sg platform_pci_dma_sync_sg
47 #define sg_dma_address platform_pci_dma_address
48
49 /*
50 * Return whether the given PCI device DMA address mask can be supported properly. For
51 * example, if your device can only drive the low 24-bits during PCI bus mastering, then
52 * you would pass 0x00ffffff as the mask to this function.
53 */
54 static inline int
55 pci_dma_supported (struct pci_dev *hwdev, dma_addr_t mask)
56 {
57 return 1;
58 }
59
60 #define sg_dma_len(sg) ((sg)->length)
61
62 #endif /* _ASM_IA64_PCI_H */
63
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.