Ignore:
Timestamp:
Aug 2, 2008, 6:23:45 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f031251c
Parents:
799ef3b
Message:

2008-08-02 Chris Johns (chrisj@…>

  • libblock/include/rtems/blkdev.h: Remove count and start from rtems_blkdev_request. Add RTEMS_BLKDEV_START_BLOCK macro.
  • libblock/src/bdbuf.c: Add read ahead blocks always consecutive comment. Change count to bufnum and remove start references. Sort the transfer list so blocks are consecutive where possible.
  • libblock/src/blkdev.c, libblock/src/nvdisk.c, libblock/src/ramdisk.c: Change count to bufnum and remove start references.
File:
1 edited

Legend:

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

    r799ef3b r2eb89ad  
    8888    /* If status != RTEMS_SUCCESSFUL, this field contains error code */
    8989    int error;
    90     /* Start block number */
    91     rtems_blkdev_bnum start;
    92     /* Number of blocks to be exchanged */
    93     uint32_t count;
    94     /* Number of buffers provided */
     90    /* Number of blocks for this request. */
    9591    uint32_t bufnum;
    9692
     
    10197    rtems_blkdev_sg_buffer bufs[0];
    10298} rtems_blkdev_request;
     99
     100/* The start block in a request. Only valid if the driver has returned the
     101 * RTEMS_BLKDEV_CAPABILITIES of RTEMS_BLKDEV_CAP_MULTISECTOR_CONT */
     102#define RTEMS_BLKDEV_START_BLOCK(_r) (_r->bufs[0].block)
    103103
    104104/* Block device IOCTL request codes */
Note: See TracChangeset for help on using the changeset viewer.