Changeset 968 for trunk/softs/tsar_boot/drivers/reset_bdv.c
- Timestamp:
- Apr 6, 2015, 10:29:14 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/drivers/reset_bdv.c
r962 r968 50 50 51 51 //////////////////////////////////// 52 int reset_bdv_read( unsigned int lba, 53 void* buffer, 54 unsigned int count ) 52 int reset_bdv_read( unsigned int lba, void* buffer, unsigned int count ) 55 53 { 56 54 // block_device configuration 57 iowrite32( &ioc_address[BLOCK_DEVICE_BUFFER], (unsigned int) 55 iowrite32( &ioc_address[BLOCK_DEVICE_BUFFER], (unsigned int)buffer ); 58 56 iowrite32( &ioc_address[BLOCK_DEVICE_COUNT], count ); 59 57 iowrite32( &ioc_address[BLOCK_DEVICE_LBA], lba ); … … 61 59 62 60 // trigger transfer 63 iowrite32( &ioc_address[BLOCK_DEVICE_OP], ( unsigned int )64 BLOCK_DEVICE_READ );61 iowrite32( &ioc_address[BLOCK_DEVICE_OP], 62 (unsigned int)BLOCK_DEVICE_READ ); 65 63 66 64 #if (RESET_HARD_CC == 0) || USE_IOB … … 82 80 break; 83 81 } 84 if ( status == BLOCK_DEVICE_READ_ERROR )82 if ( status == BLOCK_DEVICE_READ_ERROR ) 85 83 { 86 84 reset_puts("ERROR during read on the BLK device\n");
Note: See TracChangeset
for help on using the changeset viewer.