Changeset 289 for soft/giet_vm/giet_drivers/bdv_driver.c
- Timestamp:
- Feb 4, 2014, 2:16:37 AM (11 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/bdv_driver.c
r288 r289 64 64 // Arguments are: 65 65 // - to_mem : from external storage to memory when non 0. 66 // - kernel : kernel buffer with identity mapping when non 0.66 // - mode : BOOT / KERNEL / USER 67 67 // - lba : first block index on the external storage. 68 // - buf_ vaddr : virtual base address of the memory buffer.68 // - buf_paddr : physical base address of the memory buffer. 69 69 // - count : number of blocks to be transfered. 70 70 // Returns 0 if success, > 0 if error. … … 109 109 ioc_address[BLOCK_DEVICE_LBA] = lba; 110 110 111 // There istwo policies for transfer completion111 // There are two policies for transfer completion 112 112 // detection, depending on the mode argument: 113 113 … … 120 120 121 121 unsigned int status; 122 if ( _bdv_get_status(0, &status) ) return 1; 123 124 while( (status != BLOCK_DEVICE_READ_SUCCESS) && 125 (status != BLOCK_DEVICE_READ_ERROR) && 126 (status != BLOCK_DEVICE_WRITE_SUCCESS) && 127 (status != BLOCK_DEVICE_WRITE_ERROR) ) 122 do 128 123 { 129 if ( _bdv_get_status( 0, &status) ) return 1;124 if ( _bdv_get_status( 0, &status ) ) return 1; 130 125 131 126 #if GIET_DEBUG_IOC_DRIVER … … 134 129 _tty_release_lock( 0 ); 135 130 #endif 136 137 131 } 132 while( (status != BLOCK_DEVICE_READ_SUCCESS) && 133 (status != BLOCK_DEVICE_READ_ERROR) && 134 (status != BLOCK_DEVICE_WRITE_SUCCESS) && 135 (status != BLOCK_DEVICE_WRITE_ERROR) ); 136 138 137 // analyse status 139 138 error = ( (status == BLOCK_DEVICE_READ_ERROR) ||
Note: See TracChangeset
for help on using the changeset viewer.