diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-22 16:51:05 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-22 16:51:05 +0000 |
commit | f22c1544c53232bdfe3020e5e1cd3ba14865342b (patch) | |
tree | c41472993bab951d5326e720b97b7a81c05572fb /cpukit/libblock/include/rtems/nvdisk.h | |
parent | 2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-f22c1544c53232bdfe3020e5e1cd3ba14865342b.tar.bz2 |
2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/include/rtems/nvdisk.h, libblock/src/nvdisk-sram.c:
Use pointer arithmetic instead of int32_t arithmetic for 16bit
compatibility.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libblock/include/rtems/nvdisk.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libblock/include/rtems/nvdisk.h b/cpukit/libblock/include/rtems/nvdisk.h index 1b7bb47ae7..48d8ba0b16 100644 --- a/cpukit/libblock/include/rtems/nvdisk.h +++ b/cpukit/libblock/include/rtems/nvdisk.h @@ -99,8 +99,8 @@ typedef struct rtems_nvdisk_driver_handlers * @retval 0 No error. * @retval EIO The read did not complete. */ - int (*read) (uint32_t device, uint32_t flags, uint32_t base, - uint32_t offset, void* buffer, uint32_t size); + int (*read) (uint32_t device, uint32_t flags, void* base, + uint32_t offset, void* buffer, size_t size); /** * Write data from the buffer to the device. Return an errno @@ -115,8 +115,8 @@ typedef struct rtems_nvdisk_driver_handlers * @retval 0 No error. * @retval EIO The write did not complete or verify. */ - int (*write) (uint32_t device, uint32_t flags, uint32_t base, - uint32_t offset, const void* buffer, uint32_t size); + int (*write) (uint32_t device, uint32_t flags, void* base, + uint32_t offset, const void* buffer, size_t size); /** * Verify data in the buffer to the data in the device. Return an @@ -131,8 +131,8 @@ typedef struct rtems_nvdisk_driver_handlers * @retval 0 No error. * @retval EIO The data did not verify. */ - int (*verify) (uint32_t device, uint32_t flags, uint32_t base, - uint32_t offset, const void* buffer, uint32_t size); + int (*verify) (uint32_t device, uint32_t flags, void* base, + uint32_t offset, const void* buffer, size_t size); } rtems_nvdisk_driver_handlers; @@ -148,7 +148,7 @@ typedef struct rtems_nvdisk_driver_handlers typedef struct rtems_nvdisk_device_desc { uint32_t flags; /**< Private user flags. */ - uint32_t base; /**< Base address of the device. */ + void* base; /**< Base address of the device. */ uint32_t size; /**< Size of the device. */ const rtems_nvdisk_driver_handlers* nv_ops; /**< Device handlers. */ } rtems_nvdisk_device_desc; |