Changes between Version 26 and Version 27 of Component/Vci Block Device
- Timestamp:
- Sep 30, 2015, 3:18:13 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Component/Vci Block Device
v26 v27 41 41 42 42 * '''BLOCK_DEVICE_STATUS''' (read only) 43 State of the transfer. Reading this register while not busyresets its value to IDLE, and acknowledge the IRQ. Value may be one of :43 Transfer status: Reading this register while not BUSY resets its value to IDLE, and acknowledge the IRQ. Value may be one of : 44 44 || `BLOCK_DEVICE_IDLE` || 45 45 || `BLOCK_DEVICE_BUSY` || … … 48 48 || `BLOCK_DEVICE_READ_ERROR` || 49 49 || `BLOCK_DEVICE_WRITE_ERROR` || 50 Writing any value to this register makes a soft reset: if the status is not IDLE, the on-going transfer is stopped as soon as possible, and the status is reset to IDLE. 50 51 51 52 * '''BLOCK_DEVICE_IRQ_ENABLE''' (read/write) … … 58 59 Block size (in bytes) 59 60 61 When the component is not IDLE, only the BLOCK_DEVICE_STATUS register can be accessed by software: 62 Any read/write access to any other register returns an error. 63 60 64 For extensibility issues, you should access this component using globally-defined offsets. 61 You should include file `soclib/block_device.h` from your software, it 62 defines `BLOCK_DEVICE_COUNT`, `BLOCK_DEVICE_READ`, ... 65 You should include file `soclib/block_device.h` that defines `BLOCK_DEVICE_COUNT`, `BLOCK_DEVICE_READ`, ... 63 66 64 67 Sample code: