diff options
Diffstat (limited to 'include/asm-cris/pci.h')
-rw-r--r-- | include/asm-cris/pci.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/asm-cris/pci.h b/include/asm-cris/pci.h index 5f1986ef7db1..730ce40fdd0f 100644 --- a/include/asm-cris/pci.h +++ b/include/asm-cris/pci.h | |||
@@ -52,38 +52,6 @@ struct pci_dev; | |||
52 | #define pci_unmap_len(PTR, LEN_NAME) (0) | 52 | #define pci_unmap_len(PTR, LEN_NAME) (0) |
53 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) | 53 | #define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) |
54 | 54 | ||
55 | /* This is always fine. */ | ||
56 | #define pci_dac_dma_supported(pci_dev, mask) (1) | ||
57 | |||
58 | static inline dma64_addr_t | ||
59 | pci_dac_page_to_dma(struct pci_dev *pdev, struct page *page, unsigned long offset, int direction) | ||
60 | { | ||
61 | return ((dma64_addr_t) page_to_phys(page) + | ||
62 | (dma64_addr_t) offset); | ||
63 | } | ||
64 | |||
65 | static inline struct page * | ||
66 | pci_dac_dma_to_page(struct pci_dev *pdev, dma64_addr_t dma_addr) | ||
67 | { | ||
68 | return pfn_to_page(dma_addr >> PAGE_SHIFT); | ||
69 | } | ||
70 | |||
71 | static inline unsigned long | ||
72 | pci_dac_dma_to_offset(struct pci_dev *pdev, dma64_addr_t dma_addr) | ||
73 | { | ||
74 | return (dma_addr & ~PAGE_MASK); | ||
75 | } | ||
76 | |||
77 | static inline void | ||
78 | pci_dac_dma_sync_single_for_cpu(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len, int direction) | ||
79 | { | ||
80 | } | ||
81 | |||
82 | static inline void | ||
83 | pci_dac_dma_sync_single_for_device(struct pci_dev *pdev, dma64_addr_t dma_addr, size_t len, int direction) | ||
84 | { | ||
85 | } | ||
86 | |||
87 | #define HAVE_PCI_MMAP | 55 | #define HAVE_PCI_MMAP |
88 | extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | 56 | extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, |
89 | enum pci_mmap_state mmap_state, int write_combine); | 57 | enum pci_mmap_state mmap_state, int write_combine); |