changeset 2111:0ad51d0b250b

* src/disk.c: Add comments that bread/bwrite take the position and len in terms of blocks, not bytes.
author asl
date Fri, 02 Dec 2005 20:03:30 +0000
parents d7cf3683909f
children 44d250ab3b3a
files packages/io/disk/current/ChangeLog packages/io/disk/current/src/disk.c
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/disk/current/ChangeLog
+++ b/packages/io/disk/current/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-02  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/disk.c: Add comments that bread/bwrite take the position and
+	len in terms of blocks, not bytes.
+
 2004-07-01  Savin Zlobec  <savin@elatec.si> 
 
  	* src/disk.c:
--- a/packages/io/disk/current/src/disk.c
+++ b/packages/io/disk/current/src/disk.c
@@ -370,8 +370,8 @@ disk_lookup(struct cyg_devtab_entry **ta
 static Cyg_ErrNo 
 disk_bread(cyg_io_handle_t  handle, 
            void            *buf, 
-           cyg_uint32      *len,
-           cyg_uint32       pos)
+           cyg_uint32      *len,  // In blocks
+           cyg_uint32       pos)  // In blocks
 {
     cyg_devtab_entry_t *t    = (cyg_devtab_entry_t *) handle;
     disk_channel       *chan = (disk_channel *) t->priv;
@@ -428,8 +428,8 @@ disk_bread(cyg_io_handle_t  handle,
 static Cyg_ErrNo 
 disk_bwrite(cyg_io_handle_t  handle, 
             const void      *buf, 
-            cyg_uint32      *len,
-            cyg_uint32       pos)
+            cyg_uint32      *len,   // In blocks
+            cyg_uint32       pos)   // In blocks
 {
     cyg_devtab_entry_t *t    = (cyg_devtab_entry_t *) handle;
     disk_channel       *chan = (disk_channel *) t->priv;