Ignore:
Timestamp:
Aug 6, 2009, 3:58:09 AM (11 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
b9ff10f3
Parents:
14d9ae4
Message:

2009-08-06 Chris Johns <chrisj@…>

  • libblock/src/bdbuf.c: Fix group user logic.
  • libblock/include/rtems/blkdev.h, libblock/src/blkdev.c, libblock/src/nvdisk.c, libblock/src/flashdisk.c: Add set block size, and get media block size support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/include/rtems/blkdev.h

    r14d9ae4 r945884fe  
    4949 */
    5050typedef enum rtems_blkdev_request_op {
    51   RTEMS_BLKDEV_REQ_READ,
    52   RTEMS_BLKDEV_REQ_WRITE,
    53   RTEMS_BLKDEV_CAPABILITIES
     51  RTEMS_BLKDEV_REQ_READ,       /**< Read the requested blocks of data. */
     52  RTEMS_BLKDEV_REQ_WRITE,      /**< Write the requested blocks of data. */
     53  RTEMS_BLKDEV_CAPABILITIES    /**< Return the driver capabilities set. */
    5454} rtems_blkdev_request_op;
    5555
     
    161161 */
    162162
    163 #define RTEMS_BLKIO_REQUEST _IOWR('B', 1, rtems_blkdev_request)
    164 #define RTEMS_BLKIO_GETBLKSIZE _IO('B', 2)
    165 #define RTEMS_BLKIO_GETSIZE _IO('B', 3)
    166 #define RTEMS_BLKIO_SYNCDEV _IO('B', 4)
     163#define RTEMS_BLKIO_REQUEST         _IOWR('B', 1, rtems_blkdev_request)
     164#define RTEMS_BLKIO_GETMEDIABLKSIZE _IO('B', 2)
     165#define RTEMS_BLKIO_GETBLKSIZE      _IO('B', 3)
     166#define RTEMS_BLKIO_SETBLKSIZE      _IO('B', 4)
     167#define RTEMS_BLKIO_GETSIZE         _IO('B', 5)
     168#define RTEMS_BLKIO_SYNCDEV         _IO('B', 6)
    167169
    168170/** @} */
     
    243245);
    244246
     247/**
     248 * Common IO control primitive.
     249 *
     250 * Use this in all block devices to handle the common set of ioctl requests.
     251 */
     252int
     253rtems_blkdev_ioctl(dev_t dev, uint32_t req, void *argp);
     254
    245255/** @} */
    246256
Note: See TracChangeset for help on using the changeset viewer.