7 /* Dynamic DMA mapping stuff.
8 * i386 has everything mapped statically.
16 /* On Xen we use SWIOTLB instead of blk-specific bounce buffers. */
17 #define PCI_DMA_BUS_IS_PHYS (0)
19 #define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME) \
21 #define DECLARE_PCI_UNMAP_LEN(LEN_NAME) \
23 #define pci_unmap_addr(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) \
29 #define pci_unmap_len_set(PTR, LEN_NAME, VAL) \
30 (((PTR)->LEN_NAME) = (VAL))
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.
38 #define PCI_DMA_BUS_IS_PHYS (1)
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)
51 #endif /* __KERNEL__ */
54 #endif /* __i386_PCI_H */