- patches.rt/0001-sched-count-of-queued-RT-tasks.patch: Delete.
[linux-flexiantxendom0-3.2.10.git] / include / asm-x86 / mach-xen / asm / pci_32.h
1 #ifndef __i386_PCI_H
2 #define __i386_PCI_H
3
4
5 #ifdef __KERNEL__
6
7 /* Dynamic DMA mapping stuff.
8  * i386 has everything mapped statically.
9  */
10
11 struct pci_dev;
12
13 #ifdef CONFIG_SWIOTLB
14
15
16 /* On Xen we use SWIOTLB instead of blk-specific bounce buffers. */
17 #define PCI_DMA_BUS_IS_PHYS     (0)
18
19 #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)       \
20         dma_addr_t ADDR_NAME;
21 #define DECLARE_PCI_UNMAP_LEN(LEN_NAME)         \
22         __u32 LEN_NAME;
23 #define pci_unmap_addr(PTR, ADDR_NAME)                  \
24         ((PTR)->ADDR_NAME)
25 #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL)         \
26         (((PTR)->ADDR_NAME) = (VAL))
27 #define pci_unmap_len(PTR, LEN_NAME)                    \
28         ((PTR)->LEN_NAME)
29 #define pci_unmap_len_set(PTR, LEN_NAME, VAL)           \
30         (((PTR)->LEN_NAME) = (VAL))
31
32 #else
33
34 /* The PCI address space does equal the physical memory
35  * address space.  The networking and block device layers use
36  * this boolean for bounce buffer decisions.
37  */
38 #define PCI_DMA_BUS_IS_PHYS     (1)
39
40 /* pci_unmap_{page,single} is a nop so... */
41 #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
42 #define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
43 #define pci_unmap_addr(PTR, ADDR_NAME)          (0)
44 #define pci_unmap_addr_set(PTR, ADDR_NAME, VAL) do { } while (0)
45 #define pci_unmap_len(PTR, LEN_NAME)            (0)
46 #define pci_unmap_len_set(PTR, LEN_NAME, VAL)   do { } while (0)
47
48 #endif
49
50
51 #endif /* __KERNEL__ */
52
53
54 #endif /* __i386_PCI_H */