Changeset 518 for soft/giet_vm/giet_drivers/dma_driver.h
- Timestamp:
- Mar 10, 2015, 2:58:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/dma_driver.h
r437 r518 1 ////////////////////////////////////////////////////////////////////////////////// /1 ////////////////////////////////////////////////////////////////////////////////// 2 2 // File : dma_driver.h 3 3 // Date : 01/11/2013 4 4 // Author : alain greiner 5 5 // Copyright (c) UPMC-LIP6 6 ////////////////////////////////////////////////////////////////////////////////// /6 ////////////////////////////////////////////////////////////////////////////////// 7 7 // The dma_driver.c and dma_driver.h files are part ot the GIET-VM nano-kernel. 8 8 // This driver supports the SoCLib vci_multi_dma component. … … 24 24 // 25 25 // The SEG_DMA_BASE virtual address mus be defined in the hard_config.h file. 26 ////////////////////////////////////////////////////////////////////////////////// //26 ////////////////////////////////////////////////////////////////////////////////// 27 27 28 28 #ifndef _GIET_DMA_DRIVER_H_ 29 29 #define _GIET_DMA_DRIVER_H_ 30 30 31 ////////////////////////////////////////////////////////////////////////////////// /31 ////////////////////////////////////////////////////////////////////////////////// 32 32 // Multi DMA registers offset 33 ////////////////////////////////////////////////////////////////////////////////// /33 ////////////////////////////////////////////////////////////////////////////////// 34 34 35 35 enum DMA_registers … … 57 57 58 58 59 /////////////////////////////////////////////////////////////////////////////// 59 ////////////////////////////////////////////////////////////////////////////////// 60 60 // low-level access functions 61 /////////////////////////////////////////////////////////////////////////////// 61 ////////////////////////////////////////////////////////////////////////////////// 62 62 63 63 ////////////////////////////////////////////////////////////////////////////////// … … 98 98 ////////////////////////////////////////////////////////////////////////////////// 99 99 100 ////////////////////////////////////////////////////////////////////////////////// /100 ////////////////////////////////////////////////////////////////////////////////// 101 101 // This function copies a source memory buffer to a destination memory buffer, 102 102 // using directly physical addresses. … … 108 108 // In case of error (buffer unmapped, unaligned, or DMA_STATUS error), an error 109 109 // message is displayed on TTY0, and system crash. 110 ////////////////////////////////////////////////////////////////////////////////// /110 ////////////////////////////////////////////////////////////////////////////////// 111 111 extern void _dma_physical_copy( unsigned int cluster_xy, 112 112 unsigned int channel_id, … … 115 115 unsigned int size ); 116 116 117 ////////////////////////////////////////////////////////////////////////////////// /117 ////////////////////////////////////////////////////////////////////////////////// 118 118 // This function copies a source memory buffer to a destination memory buffer, 119 119 // making virtual to physical address translation: the MMU should be activated. … … 125 125 // In case of error (buffer unmapped, unaligned, or DMA_STATUS error), an error 126 126 // message is displayed on TTY0, and system crash. 127 ////////////////////////////////////////////////////////////////////////////////// /127 ////////////////////////////////////////////////////////////////////////////////// 128 128 extern void _dma_copy( unsigned int cluster_xy, 129 129 unsigned int channel_id, … … 133 133 unsigned int size ); 134 134 135 /////////////////////////////////////////////////////////////////////////////// 135 ////////////////////////////////////////////////////////////////////////////////// 136 136 // This ISR should not be used by the GIET_VM, because the DMA is only 137 137 // used by the kernel in the boot phase, with a polling strategy. 138 /////////////////////////////////////////////////////////////////////////////// 138 ////////////////////////////////////////////////////////////////////////////////// 139 139 extern void _dma_isr( unsigned int irq_type, 140 140 unsigned int irq_id,
Note: See TracChangeset
for help on using the changeset viewer.