Changeset 603 for soft/giet_vm/giet_drivers/sdc_driver.c
- Timestamp:
- Jul 10, 2015, 12:34:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.