- Timestamp:
- Jul 10, 2015, 12:34:31 PM (9 years ago)
- Location:
- soft/giet_vm/giet_drivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/hba_driver.c
r576 r603 162 162 unsigned int p = procid & ((1<<P_WIDTH)-1); 163 163 164 #if GIET_DEBUG_IOC _DRIVER165 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)164 #if GIET_DEBUG_IOC 165 if (_get_proctime() > GIET_DEBUG_IOC) 166 166 _printf("\n[DEBUG HBA] _hba_access() : P[%d,%d,%d] enters at cycle %d\n" 167 167 " use_irq = %d / to_mem = %d / lba = %x / paddr = %l / count = %d\n", … … 246 246 _hba_set_register( HBA_PXCI, (1<<cmd_id) ); 247 247 248 #if GIET_DEBUG_IOC _DRIVER249 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)248 #if GIET_DEBUG_IOC 249 if (_get_proctime() > GIET_DEBUG_IOC) 250 250 _printf("\n[DEBUG HBA] _hba_access() : P[%d,%d,%d] get slot %d in Cmd List " 251 251 " at cycle %d / polling\n", … … 260 260 pxci = _hba_get_register( HBA_PXCI ); 261 261 262 #if GIET_DEBUG_IOC _DRIVER263 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)262 #if GIET_DEBUG_IOC 263 if (_get_proctime() > GIET_DEBUG_IOC) 264 264 _printf("\n[DEBUG HBA] _hba_access() : P[%d,%d,%d] wait on HBA_PXCI / pxci = %x\n", 265 265 x , y , p , pxci ); … … 285 285 { 286 286 287 #if GIET_DEBUG_IOC _DRIVER288 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)287 #if GIET_DEBUG_IOC 288 if (_get_proctime() > GIET_DEBUG_IOC) 289 289 _printf("\n[DEBUG HBA] _hba_access() : P[%d,%d,%d] get slot %d in Cmd List " 290 290 "at cycle %d / descheduling\n", … … 315 315 _ctx_switch(); 316 316 317 #if GIET_DEBUG_IOC _DRIVER318 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)317 #if GIET_DEBUG_IOC 318 if (_get_proctime() > GIET_DEBUG_IOC) 319 319 _printf("\n[DEBUG HBA] _hba_access() : task %d on P[%d,%d,%d] resume at cycle %d\n", 320 320 ltid , x , y , p , _get_proctime() ); … … 332 332 release_success = _hba_cmd_release(cmd_id); 333 333 334 #if GIET_DEBUG_IOC _DRIVER335 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)334 #if GIET_DEBUG_IOC 335 if (_get_proctime() > GIET_DEBUG_IOC) 336 336 _printf("\n[DEBUG HBA] _hba_access() : P[%d,%d,%d] release slot %d in Cmd List " 337 337 "and exit at cycle %d\n", … … 452 452 0 ); // don't force context switch 453 453 454 #if GIET_DEBUG_IOC _DRIVER455 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)454 #if GIET_DEBUG_IOC 455 if (_get_proctime() > GIET_DEBUG_IOC) 456 456 _printf("\n[DEBUG HBA] _hba_isr() : command %d completed at cycle %d\n" 457 457 " resume task %d running on P[%d,%d,%d]\n", -
soft/giet_vm/giet_drivers/sdc_driver.c
r593 r603 133 133 } 134 134 135 #if GIET_DEBUG_IOC _DRIVER136 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)135 #if GIET_DEBUG_IOC 136 if (_get_proctime() > GIET_DEBUG_IOC) 137 137 _printf("\n[DEBUG SDC] _sdc_init() : SDC_CMD0 done at cycle %d\n", _get_proctime() ); 138 138 #endif … … 152 152 } 153 153 154 #if GIET_DEBUG_IOC _DRIVER155 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)154 #if GIET_DEBUG_IOC 155 if (_get_proctime() > GIET_DEBUG_IOC) 156 156 _printf("\n[DEBUG SDC] _sdc_init() : SDC_CMD8 done at cycle %d\n", _get_proctime() ); 157 157 #endif … … 165 165 _sdc_sdhc = ( (rsp & SDC_CMD41_RSP_CCS) != 0 ); 166 166 167 #if GIET_DEBUG_IOC _DRIVER168 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)167 #if GIET_DEBUG_IOC 168 if (_get_proctime() > GIET_DEBUG_IOC) 169 169 _printf("\n[DEBUG SDC] _sdc_init() : SDC_CMD41 done at cycle %d\n", _get_proctime() ); 170 170 #endif … … 179 179 _sdc_rca = rsp; 180 180 181 #if GIET_DEBUG_IOC _DRIVER182 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)181 #if GIET_DEBUG_IOC 182 if (_get_proctime() > GIET_DEBUG_IOC) 183 183 _printf("\n[DEBUG SDC] _sdc_init() : SDC_CMD3 done at cycle %d\n", _get_proctime() ); 184 184 #endif … … 192 192 } 193 193 194 #if GIET_DEBUG_IOC _DRIVER195 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)194 #if GIET_DEBUG_IOC 195 if (_get_proctime() > GIET_DEBUG_IOC) 196 196 _printf("\n[DEBUG SDC] _sdc_init() : SDC_CMD7 done at cycle %d\n", _get_proctime() ); 197 197 #endif … … 241 241 _sdc_set_register( AHCI_PXCMD , 1 ); 242 242 243 #if GIET_DEBUG_IOC _DRIVER244 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)243 #if GIET_DEBUG_IOC 244 if (_get_proctime() > GIET_DEBUG_IOC) 245 245 _printf("\n[DEBUG SDC] _sdc_init() : AHCI init done at cycle %d\n", _get_proctime() ); 246 246 #endif … … 263 263 unsigned int iter; 264 264 265 #if GIET_DEBUG_IOC _DRIVER266 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)265 #if GIET_DEBUG_IOC 266 if (_get_proctime() > GIET_DEBUG_IOC) 267 267 _printf("\n[DEBUG SDC] _sdc_access() : P[%d,%d,%d] enters at cycle %d\n" 268 268 " use_irq = %d / to_mem = %d / lba = %x / paddr = %l / count = %d\n", … … 366 366 _sdc_set_register( AHCI_PXCI, (1<<ptw) ); 367 367 368 #if GIET_DEBUG_IOC _DRIVER369 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)368 #if GIET_DEBUG_IOC 369 if (_get_proctime() > GIET_DEBUG_IOC) 370 370 _printf("\n[DEBUG SDC] _sdc_access() : command %d for P[%d,%d,%d]" 371 371 " at cycle %d / polling\n", … … 408 408 { 409 409 410 #if GIET_DEBUG_IOC _DRIVER411 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)410 #if GIET_DEBUG_IOC 411 if (_get_proctime() > GIET_DEBUG_IOC) 412 412 _printf("\n[DEBUG SDC] _sdc_access() : command %d for P[%d,%d,%d] " 413 413 "at cycle %d / descheduling\n", … … 435 435 _ctx_switch(); 436 436 437 #if GIET_DEBUG_IOC _DRIVER438 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)437 #if GIET_DEBUG_IOC 438 if (_get_proctime() > GIET_DEBUG_IOC) 439 439 _printf("\n[DEBUG SDC] _sdc_access() : task %d on P[%d,%d,%d] resume at cycle %d\n", 440 440 ltid , x , y , p , _get_proctime() ); … … 448 448 } 449 449 450 #if GIET_DEBUG_IOC _DRIVER451 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)450 #if GIET_DEBUG_IOC 451 if (_get_proctime() > GIET_DEBUG_IOC) 452 452 _printf("\n[DEBUG SDC] _sdc_access() : P[%d,%d,%d] exit at cycle %d\n", 453 453 x , y , p , _get_proctime() ); … … 509 509 0 ); // don't force context switch 510 510 511 #if GIET_DEBUG_IOC _DRIVER512 if (_get_proctime() > GIET_DEBUG_IOC _DRIVER)511 #if GIET_DEBUG_IOC 512 if (_get_proctime() > GIET_DEBUG_IOC) 513 513 _printf("\n[DEBUG SDC] _sdc_isr() : command %d completed at cycle %d\n" 514 514 " resume task %d running on P[%d,%d,%d] / status = %x\n",
Note: See TracChangeset
for help on using the changeset viewer.