Changeset 313
- Timestamp:
- Apr 21, 2014, 5:46:38 AM (11 years ago)
- Location:
- soft/giet_vm/giet_drivers
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/bdv_driver.c
r297 r313 109 109 { 110 110 111 #if GIET_DEBUG_ BDV_DRIVER111 #if GIET_DEBUG_IOC_DRIVER 112 112 unsigned int procid = _get_procid(); 113 113 unsigned int cxy = procid / NB_PROCS_MAX; … … 148 148 status = _bdv_get_register( BLOCK_DEVICE_STATUS ); 149 149 150 #if GIET_DEBUG_ BDV_DRIVER150 #if GIET_DEBUG_IOC_DRIVER 151 151 _printf("\n[BDV DEBUG] _bdv_access() : ... waiting on BDV_STATUS register ...\n"); 152 152 #endif … … 208 208 } 209 209 210 #if GIET_DEBUG_ BDV_DRIVER210 #if GIET_DEBUG_IOC_DRIVER 211 211 _printf("\n[BDV DEBUG] Processor[%d,%d,%d] exit _bdv_access() at cycle %d\n", 212 212 x, y, lpid, _get_proctime() ); -
soft/giet_vm/giet_drivers/dma_driver.c
r298 r313 195 195 #if NB_DMA_CHANNELS > 0 196 196 197 unsigned int procid = _get_procid();197 unsigned int procid = _get_procid(); 198 198 unsigned int cluster_xy = procid/NB_PROCS_MAX; 199 199 unsigned int channel_id = procid%NB_PROCS_MAX; … … 208 208 209 209 _printf("\n[DMA DEBUG] Processor[%d,%d,%d] enters _dma_copy() at cycle %d\n" 210 " - vspace_id = %d\n" 211 " - cluster_xy = %x\n" 212 " - channel_id = %d\n" 213 " - dest = %x\n" 214 " - source = %x\n" 215 " - bytes = %x\n", 216 x, y, channel_id, _get_proctime(), vspace_id, cluster_xy, 217 (unsigned int)dest, (unsigned int)source, size ); 210 " - vspace_id = %d\n" 211 " - src_vaddr = %x\n" 212 " - dst_vaddr = %x\n" 213 " - bytes = %x\n", 214 x, y, channel_id, _get_proctime(), vspace_id, 215 (unsigned int)source, (unsigned int)dest, size ); 218 216 #endif 219 217 … … 257 255 258 256 #if GIET_DEBUG_DMA_DRIVER 259 _printf(" - src_paddr = %llx\n"260 " - dst_paddr = %llx\n",257 _printf(" - src_paddr = %l\n" 258 " - dst_paddr = %l\n", 261 259 src_paddr, dst_paddr ); 262 260 #endif -
soft/giet_vm/giet_drivers/ioc_driver.c
r297 r313 164 164 " - channel = %d\n" 165 165 " - mode = %d\n" 166 " - vaddr = % d\n"166 " - vaddr = %x\n" 167 167 " - sectors = %d\n" 168 " - lba = % d\n",168 " - lba = %x\n", 169 169 x, y, lpid, _get_proctime(), channel, mode, buf_vaddr, count, lba ); 170 170 #endif -
soft/giet_vm/giet_drivers/pic_driver.c
r298 r313 42 42 43 43 ///////////////////////////////////////////////////////////////////////////////// 44 // This function initializes the XICU target physical address corresponding45 // to a given HWI channel.44 // This function initializes the XICU target physical address (vaddr + extend) 45 // corresponding to a given HWI channel. 46 46 ///////////////////////////////////////////////////////////////////////////////// 47 47 void _pic_init( unsigned int channel, // source PIC HWI channel -
soft/giet_vm/giet_drivers/rdk_driver.c
r298 r313 47 47 48 48 #if GIET_DEBUG_IOC_DRIVER 49 _tty_get_lock( 0 ); 50 _puts("\n[IOC DEBUG] Enter _rdk_read() at cycle "); 51 _putd( _get_proctime() ); 52 _puts(" for processor "); 53 _putd( _get_procid() ); 54 _puts("\n - vaddr = "); 55 _putx( buffer ); 56 _puts("\n - sectors = "); 57 _putd( count ); 58 _puts("\n - lba = "); 59 _putx( lba ); 60 _puts("\n"); 61 _tty_release_lock( 0 ); 49 _printf("\n[IOC DEBUG] Enter _rdk_read() at cycle %d" 50 "\n - vaddr = %x" 51 "\n - sectors = %d" 52 "\n - lba = %x", 53 _get_proctime(), buffer, count, lba ); 62 54 #endif 63 55 … … 84 76 85 77 #if GIET_DEBUG_IOC_DRIVER 86 _tty_get_lock( 0 ); 87 _puts("\n[IOC DEBUG] Enter _rdk_write() at cycle "); 88 _putd( _get_proctime() ); 89 _puts(" for processor "); 90 _putd( _get_procid() ); 91 _puts("\n - vaddr = "); 92 _putx( buffer ); 93 _puts("\n - sectors = "); 94 _putd( count ); 95 _puts("\n - lba = "); 96 _putx( lba ); 97 _puts("\n"); 98 _tty_release_lock( 0 ); 78 _printf("\n[IOC DEBUG] Enter _rdk_write() at cycle %d" 79 "\n - vaddr = %x" 80 "\n - sectors = %d" 81 "\n - lba = %x", 82 _get_proctime(), buffer, count, lba ); 99 83 #endif 100 84 -
soft/giet_vm/giet_drivers/tty_driver.c
r297 r313 40 40 41 41 #define in_unckdata __attribute__((section (".unckdata"))) 42 #define in_kdata __attribute__((section (".kdata"))) 42 43 43 44 ////////////////////////////////////////////////////////////////////////////// … … 46 47 47 48 in_unckdata volatile unsigned int _tty_rx_buf[NB_TTY_CHANNELS]; 49 48 50 in_unckdata volatile unsigned int _tty_rx_full[NB_TTY_CHANNELS] 49 51 = { [0 ... NB_TTY_CHANNELS - 1] = 0 }; 52 53 in_kdata unsigned int _tty_lock[NB_TTY_CHANNELS] 54 = { [0 ... NB_TTY_CHANNELS - 1] = 0 }; 50 55 51 56 ////////////////////////////////////////////////////////////////////////////// … … 150 155 { 151 156 if( channel >= NB_TTY_CHANNELS ) _exit(); 157 152 158 _it_disable( save_sr_ptr ); 153 while ( _tty_get_register( channel, TTY_CONFIG ) ); // busy waiting 159 160 // while ( _tty_get_register( channel, TTY_CONFIG ) ); // busy waiting 161 162 _get_lock( &_tty_lock[channel] ); 154 163 } 155 164 … … 165 174 if( channel >= NB_TTY_CHANNELS ) _exit(); 166 175 167 _tty_set_register( channel, TTY_CONFIG, 0 ); 176 // _tty_set_register( channel, TTY_CONFIG, 0 ); 177 178 _release_lock( &_tty_lock[channel] ); 179 168 180 _it_restore( save_sr_ptr ); 169 181 }
Note: See TracChangeset
for help on using the changeset viewer.