Changeset 438 for trunk/hal/tsar_mips32/drivers/soclib_bdv.c
- Timestamp:
- Apr 4, 2018, 2:49:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_bdv.c
r437 r438 75 75 ioc_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->ioc_cmd.dev_xp ) ); 76 76 77 #if CONFIG_DEBUG_HAL_IOC_RX78 uint32_t cycle = (uint32_t)hal_get_cycles(); 79 if( ( CONFIG_DEBUG_HAL_IOC_RX < cycle) && (cmd_type != IOC_WRITE ) )77 #if DEBUG_HAL_IOC_RX 78 uint32_t cycle = (uint32_t)hal_get_cycles(); 79 if( (DEBUG_HAL_IOC_RX < cycle) && (cmd_type != IOC_WRITE ) ) 80 80 printk("\n[DBG] %s : thread %x enter for RX / cycle %d\n", 81 81 __FUNCTION__ , CURRENT_THREAD , cycle ); 82 82 #endif 83 83 84 #if CONFIG_DEBUG_HAL_IOC_TX85 uint32_t cycle = (uint32_t)hal_get_cycles(); 86 if( ( CONFIG_DEBUG_HAL_IOC_TX < cycle) && (cmd_type == IOC_WRITE) )84 #if DEBUG_HAL_IOC_TX 85 uint32_t cycle = (uint32_t)hal_get_cycles(); 86 if( (DEBUG_HAL_IOC_TX < cycle) && (cmd_type == IOC_WRITE) ) 87 87 printk("\n[DBG] %s : thread %x enter for TX / cycle %d\n", 88 88 __FUNCTION__ , CURRENT_THREAD , cycle ); … … 152 152 } 153 153 154 #if CONFIG_DEBUG_HAL_IOC_RX154 #if DEBUG_HAL_IOC_RX 155 155 cycle = (uint32_t)hal_get_cycles(); 156 if( ( CONFIG_DEBUG_HAL_IOC_RX < cycle) && (cmd_type != TXT_WRITE) )156 if( (DEBUG_HAL_IOC_RX < cycle) && (cmd_type != TXT_WRITE) ) 157 157 printk("\n[DBG] %s : thread %x exit after RX / cycle %d\n", 158 158 __FUNCTION__ , CURRENT_THREAD , cycle ); 159 159 #endif 160 160 161 #if CONFIG_DEBUG_HAL_IOC_TX161 #if DEBUG_HAL_IOC_TX 162 162 cycle = (uint32_t)hal_get_cycles(); 163 if( ( CONFIG_DEBUG_HAL_IOC_TX < cycle) && (cmd_type == TXT_WRITE) )163 if( (DEBUG_HAL_IOC_TX < cycle) && (cmd_type == TXT_WRITE) ) 164 164 printk("\n[DBG] %s : thread %x exit after TX / cycle %d\n", 165 165 __FUNCTION__ , CURRENT_THREAD , cycle ); … … 199 199 error = (status != BDV_READ_SUCCESS); 200 200 201 #if CONFIG_DEBUG_HAL_IOC_RX202 uint32_t cycle = (uint32_t)hal_get_cycles(); 203 if( CONFIG_DEBUG_HAL_IOC_RX < cycle )201 #if DEBUG_HAL_IOC_RX 202 uint32_t cycle = (uint32_t)hal_get_cycles(); 203 if( DEBUG_HAL_IOC_RX < cycle ) 204 204 printk("\n[DBG] %s : IOC_IRQ / RX transfer / client %x / server %x / cycle %d\n", 205 205 __FUNCTION__, client_ptr , chdev->server , cycle ); … … 211 211 error = (status != BDV_WRITE_SUCCESS); 212 212 213 #if CONFIG_DEBUG_HAL_IOC_TX214 uint32_t cycle = (uint32_t)hal_get_cycles(); 215 if( CONFIG_DEBUG_HAL_IOC_TX < cycle )213 #if DEBUG_HAL_IOC_TX 214 uint32_t cycle = (uint32_t)hal_get_cycles(); 215 if( DEBUG_HAL_IOC_TX < cycle ) 216 216 printk("\n[DBG] %s : IOC_IRQ / RX transfer / client %x / server %x / cycle %d\n", 217 217 __FUNCTION__, client_ptr , chdev->server , cycle );
Note: See TracChangeset
for help on using the changeset viewer.