Changeset 8b96149 in rtems for cpukit/libblock/include


Ignore:
Timestamp:
Apr 17, 2004, 8:15:17 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d63a2c2
Parents:
714f06c
Message:

Remove stray white spaces.

Location:
cpukit/libblock/include/rtems
Files:
4 edited

Legend:

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

    r714f06c r8b96149  
    3232 * dev and block fields are search key in AVL-tree.
    3333 * Modified buffers, free buffers and used buffers linked in 'mod', 'free' and
    34  * 'lru' chains appropriately. 
     34 * 'lru' chains appropriately.
    3535 */
    3636
     
    3838    Chain_Node link; /* Link in the lru, mod or free chains */
    3939
    40     struct bdbuf_avl_node { 
     40    struct bdbuf_avl_node {
    4141        signed char cache;           /* Cache */
    4242
     
    8787
    8888/* rtems_bdbuf_init --
    89  *     Prepare buffering layer to work - initialize buffer descritors 
     89 *     Prepare buffering layer to work - initialize buffer descritors
    9090 *     and (if it is neccessary) buffers. Buffers will be allocated accoriding
    91  *     to the configuration table, each entry describes kind of block and 
     91 *     to the configuration table, each entry describes kind of block and
    9292 *     amount requested. After initialization all blocks is placed into
    9393 *     free elements lists.
     
    108108 *     Obtain block buffer. If specified block already cached (i.e. there's
    109109 *     block in the _modified_, or _recently_used_), return address
    110  *     of appropriate buffer descriptor and increment reference counter to 1. 
    111  *     If block is not cached, allocate new buffer and return it. Data 
    112  *     shouldn't be read to the buffer from media; buffer may contains 
    113  *     arbitrary data. This primitive may be blocked if there are no free 
    114  *     buffer descriptors available and there are no unused non-modified 
     110 *     of appropriate buffer descriptor and increment reference counter to 1.
     111 *     If block is not cached, allocate new buffer and return it. Data
     112 *     shouldn't be read to the buffer from media; buffer may contains
     113 *     arbitrary data. This primitive may be blocked if there are no free
     114 *     buffer descriptors available and there are no unused non-modified
    115115 *     (or synchronized with media) buffers available.
    116116 *
     
    164164 * PARAMETERS:
    165165 *     bd_buf - pointer to the bdbuf_buffer structure previously obtained using
    166  *              get/read primitive. 
     166 *              get/read primitive.
    167167 *
    168168 * RETURNS:
     
    178178/* rtems_bdbuf_release_modified --
    179179 *     Release buffer allocated before, assuming that it is _modified_ by
    180  *     it's owner. This primitive decrease usage counter for buffer, mark 
     180 *     it's owner. This primitive decrease usage counter for buffer, mark
    181181 *     buffer descriptor as modified. If usage counter is 0, insert it at
    182182 *     end of mod chain and release flush_sema semaphore to activate the
     
    243243 * RETURNS:
    244244 *     RTEMS status code: RTEMS_SUCCESSFUL if operation completed successfully,
    245  *     RTEMS_INVALID_SIZE if specified block size is invalid (not a power 
     245 *     RTEMS_INVALID_SIZE if specified block size is invalid (not a power
    246246 *     of 2), RTEMS_NOT_DEFINED if buffer pool for this or greater block size
    247247 *     is not configured.
     
    257257 *     block_size - block size for which buffer pool is configured returned
    258258 *                  there
    259  *     blocks     - number of buffers in buffer pool returned there 
     259 *     blocks     - number of buffers in buffer pool returned there
    260260 *
    261261 * RETURNS:
  • cpukit/libblock/include/rtems/blkdev.h

    r714f06c r8b96149  
    1 /* 
     1/*
    22 * blkdev.h - block device driver interface definitions
    33 *
     
    1919
    2020/* Interface with device drivers
    21  * Block device looks, initialized and behaves like traditional RTEMS device 
     21 * Block device looks, initialized and behaves like traditional RTEMS device
    2222 * driver. Heart of the block device driver is in BIOREQUEST ioctl. This call
    2323 * puts I/O request to the block device queue, in priority order, for
     
    4444 *              status != RTEMS_SUCCESSFUL
    4545 */
    46 typedef void (* blkdev_request_cb)(void *arg, 
     46typedef void (* blkdev_request_cb)(void *arg,
    4747                                   rtems_status_code status,
    4848                                   int error);
     
    5757
    5858/* blkdev_request (Block Device Request) structure is
    59  * used to read/write a number of blocks from/to device. 
     59 * used to read/write a number of blocks from/to device.
    6060 */
    6161typedef struct blkdev_request {
     
    6464    void             *done_arg; /* Argument to be passed to callback function*/
    6565    rtems_status_code status;  /* Last I/O operation completion status */
    66     int               error;   /* If status != RTEMS_SUCCESSFUL, this field 
     66    int               error;   /* If status != RTEMS_SUCCESSFUL, this field
    6767                                * contains error code
    6868                                */
    6969    blkdev_bnum       start;    /* Start block number */
    7070    uint32_t    count;    /* Number of blocks to be exchanged */
    71     uint32_t    bufnum;   /* Number of buffers provided */   
     71    uint32_t    bufnum;   /* Number of buffers provided */
    7272
    7373    blkdev_sg_buffer  bufs[0];/* List of scatter/gather buffers */
     
    8181
    8282/* Device driver interface conventions suppose that driver may
    83  * contain initialize/open/close/read/write/ioctl entry points. These 
    84  * primitives (except initialize) can be implemented in generic fashion, 
     83 * contain initialize/open/close/read/write/ioctl entry points. These
     84 * primitives (except initialize) can be implemented in generic fashion,
    8585 * based upon supplied block device driver ioctl handler. Every block
    8686 * device driver should provide initialize entry point, which is register
     
    105105
    106106/* blkdev_generic_write --
    107  *     Generic block device driver write primitive. Implemented using block 
    108  *     device buffer management primitives. 
     107 *     Generic block device driver write primitive. Implemented using block
     108 *     device buffer management primitives.
    109109 */
    110110rtems_device_driver
  • cpukit/libblock/include/rtems/diskdevs.h

    r714f06c r8b96149  
    1 /* 
     1/*
    22 * logdisk.h - Physical and logical block devices (disks) support
    33 *
     
    4949                                             in disk blocks */
    5050    int                 block_size;       /* Size of device block (minimum
    51                                              transfer unit) in bytes 
     51                                             transfer unit) in bytes
    5252                                             (must be power of 2) */
    5353    int                 block_size_log2;  /* log2 of block_size */
     
    9292 *     invoked from application when application-specific splitting are in use,
    9393 *     or from generic code which handle different logical disk organizations.
    94  *     This primitive will register device in rtems (invoke 
     94 *     This primitive will register device in rtems (invoke
    9595 *     rtems_io_register_name).
    9696 *
     
    9898 *     dev   - logical device identifier (major, minor numbers)
    9999 *     phys  - physical device (block device which holds this logical disk)
    100  *             identifier 
     100 *             identifier
    101101 *     start - starting block number on the physical device
    102102 *     size  - logical disk size in blocks
     
    106106 *     RTEMS_SUCCESSFUL if logical device successfully added, or error code
    107107 *     if error occured (device already registered, no physical device
    108  *     exists, logical disk is out of physical disk boundaries, no memory 
     108 *     exists, logical disk is out of physical disk boundaries, no memory
    109109 *     available).
    110110 */
     
    181181 *
    182182 * RETURNS:
    183  *     RTEMS_SUCCESSFUL if library initialized, or error code if error 
     183 *     RTEMS_SUCCESSFUL if library initialized, or error code if error
    184184 *     occured.
    185185 */
     
    194194 *
    195195 * RETURNS:
    196  *     RTEMS_SUCCESSFUL if all resources released, or error code if error 
     196 *     RTEMS_SUCCESSFUL if all resources released, or error code if error
    197197 *     occured.
    198198 */
  • cpukit/libblock/include/rtems/ide_part_table.h

    r714f06c r8b96149  
    7878 *      corresponds to the sector on the device
    7979 */
    80 typedef struct sector_data_s 
     80typedef struct sector_data_s
    8181{
    8282    uint32_t   sector_num; /* sector number on the device */
Note: See TracChangeset for help on using the changeset viewer.