- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# cpu/uc3/include/cpu/dma.h

Go to the documentation of this file.

    00001
    00041 #ifndef CPU_DMA_H_INCLUDED
    00042 #define CPU_DMA_H_INCLUDED
    00043
    00044 #include <types.h>
    00045
    00047 #define CPU_DMA_ALIGN           2
    00048
    00055 typedef union {
    00056         phys_addr_t     phys;
    00057         void            *ptr;
    00058 } buffer_addr_t;
    00059
    00070 static inline void dma_sync_for_device(void *vaddr, size_t size,
    00071                 enum dma_direction direction)
    00072 {
    00073
    00074 }
    00075
    00086 static inline void dma_sync_for_cpu(void *vaddr, size_t size,
    00087                 enum dma_direction direction)
    00088 {
    00089
    00090 }
    00091
    00104 static inline phys_addr_t dma_map_single(void *vaddr, size_t size,
    00105                 enum dma_direction direction)
    00106 {
    00107         return (phys_addr_t)vaddr;
    00108 }
    00109
    00122 static inline void dma_unmap_single(void *vaddr, size_t size,
    00123                 enum dma_direction direction)
    00124 {
    00125
    00126 }
    00127
    00128 #endif /* CPU_DMA_H_INCLUDED */