summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems/blkdev.h
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-10-13 07:58:33 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-10-13 07:58:33 +0000
commitb96e09cb420213ebf2ef6d3b37ff3b7b02b65bd4 (patch)
tree706bd90c05001666f0bfaa0981c773131429177e /cpukit/libblock/include/rtems/blkdev.h
parent2009-10-09 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-b96e09cb420213ebf2ef6d3b37ff3b7b02b65bd4.tar.bz2
* libblock/include/rtems/diskdevs.h: Added driver data pointer to IO
control function. The IO control handler takes now the disk device as first parameter instead of the physical device number. * cpukit/libblock/include/rtems/blkdev.h, libblock/src/bdbuf.c, libblock/src/blkdev.c, libblock/src/diskdevs.c, libblock/src/nvdisk.c, libblock/src/flashdisk.c, libblock/src/ramdisk.c: Update for block device API change.
Diffstat (limited to 'cpukit/libblock/include/rtems/blkdev.h')
-rw-r--r--cpukit/libblock/include/rtems/blkdev.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/libblock/include/rtems/blkdev.h b/cpukit/libblock/include/rtems/blkdev.h
index bd329c7bdd..3dec8ead03 100644
--- a/cpukit/libblock/include/rtems/blkdev.h
+++ b/cpukit/libblock/include/rtems/blkdev.h
@@ -17,6 +17,7 @@
#define _RTEMS_BLKDEV_H
#include <rtems.h>
+#include <rtems/diskdevs.h>
#include <sys/ioctl.h>
#ifdef __cplusplus
@@ -40,11 +41,6 @@ extern "C" {
*/
/**
- * Block device block index type.
- */
-typedef uint32_t rtems_blkdev_bnum;
-
-/**
* Block device request type.
*/
typedef enum rtems_blkdev_request_op {
@@ -250,7 +246,7 @@ rtems_blkdev_generic_ioctl(
* Use this in all block devices to handle the common set of ioctl requests.
*/
int
-rtems_blkdev_ioctl(dev_t dev, uint32_t req, void *argp);
+rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp);
/** @} */