]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/io/common/v2_0/src/iosys.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / io / common / v2_0 / src / iosys.c
index 951a218e21ff52040896337b6ad74d11462ce5af..faba7abde959108c0ff236005639601f168fa2eb 100644 (file)
@@ -198,6 +198,10 @@ cyg_io_read(cyg_io_handle_t handle, void *buf, cyg_uint32 *len)
     return t->handlers->read(handle, buf, len);
 }
 
+//
+// 'write' blocks to a device. The len and the position are in terms
+// of blocks, not bytes like the cyg_io_write.
+//
 Cyg_ErrNo 
 cyg_io_bwrite(cyg_io_handle_t handle, const void *buf, cyg_uint32 *len, cyg_uint32 pos)
 {
@@ -215,9 +219,9 @@ cyg_io_bwrite(cyg_io_handle_t handle, const void *buf, cyg_uint32 *len, cyg_uint
 }
 
 //
-// 'read' data from a device.
+// 'read' blocks from a device. The len and the position are in terms of
+// blocks, not bytes like the cyg_io_read.
 //
-
 Cyg_ErrNo 
 cyg_io_bread(cyg_io_handle_t handle, void *buf, cyg_uint32 *len, cyg_uint32 pos)
 {