Changeset 8b96149 in rtems


Ignore:
Timestamp:
Apr 17, 2004, 8:15:17 AM (18 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
Files:
9 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 */
  • cpukit/libblock/src/bdbuf.c

    r714f06c r8b96149  
    6262
    6363    Chain_Control  mod;          /* Modified buffers list */
    64     rtems_id       flush_sema;   /* Buffer flush semaphore; counting 
     64    rtems_id       flush_sema;   /* Buffer flush semaphore; counting
    6565                                    semaphore; incremented when buffer
    66                                     flushed to the disk; decremented when 
     66                                    flushed to the disk; decremented when
    6767                                    buffer modified */
    6868    rtems_id       swapout_task; /* Swapout task ID */
     
    463463        r = q->avl.left;
    464464        if (r != NULL)
    465         {   
     465        {
    466466            r->avl.bal = 0;
    467467        }
     
    763763
    764764/* rtems_bdbuf_init --
    765  *     Prepare buffering layer to work - initialize buffer descritors 
     765 *     Prepare buffering layer to work - initialize buffer descritors
    766766 *     and (if it is neccessary)buffers. Buffers will be allocated accoriding
    767  *     to the configuration table, each entry describes kind of block and 
     767 *     to the configuration table, each entry describes kind of block and
    768768 *     amount requested. After initialization all blocks is placed into
    769769 *     free elements lists.
     
    832832        rtems_build_name('B', 'S', 'W', 'P'),
    833833        SWAPOUT_PRIORITY,
    834         SWAPOUT_STACK_SIZE, 
     834        SWAPOUT_STACK_SIZE,
    835835        RTEMS_DEFAULT_MODES | RTEMS_NO_PREEMPT,
    836836        RTEMS_DEFAULT_ATTRIBUTES,
     
    863863 *     obtain block buffer. If specified block already cached (i.e. there's
    864864 *     block in the _modified_, or _recently_used_), return address
    865  *     of appropriate buffer descriptor and increment reference counter to 1. 
    866  *     If block is not cached, allocate new buffer and return it. Data 
    867  *     shouldn't be read to the buffer from media; buffer contains arbitrary 
    868  *     data. This primitive may be blocked if there are no free buffer 
    869  *     descriptors available and there are no unused non-modified (or 
     865 *     of appropriate buffer descriptor and increment reference counter to 1.
     866 *     If block is not cached, allocate new buffer and return it. Data
     867 *     shouldn't be read to the buffer from media; buffer contains arbitrary
     868 *     data. This primitive may be blocked if there are no free buffer
     869 *     descriptors available and there are no unused non-modified (or
    870870 *     synchronized with media) buffers available.
    871871 *
     
    887887static rtems_status_code
    888888find_or_assign_buffer(disk_device *dd,
    889                       blkdev_bnum block, 
     889                      blkdev_bnum block,
    890890                      bdbuf_buffer **ret_buf)
    891891{
     
    909909    {
    910910        /* Try to obtain semaphore without waiting first. It is the most
    911            frequent case when reasonable number of buffers configured. If 
    912            it is failed, obtain semaphore blocking on it. In this case 
    913            it should be checked that appropriate buffer hasn't been loaded 
     911           frequent case when reasonable number of buffers configured. If
     912           it is failed, obtain semaphore blocking on it. In this case
     913           it should be checked that appropriate buffer hasn't been loaded
    914914           by another thread, because this thread is preempted */
    915915        rc = rtems_semaphore_obtain(bd_pool->bufget_sema, RTEMS_NO_WAIT, 0);
     
    932932            if (bd_buf != NULL)
    933933            {
    934                 int avl_result; 
     934                int avl_result;
    935935                avl_result = avl_remove(&bd_pool->tree, bd_buf);
    936936                if (avl_result != 0)
     
    987987            if (bd_buf->modified)
    988988            {
    989                 rc = rtems_semaphore_obtain(bd_ctx.flush_sema, 
     989                rc = rtems_semaphore_obtain(bd_ctx.flush_sema,
    990990                                            RTEMS_NO_WAIT, 0);
    991991            }
    992992            else
    993993            {
    994                 rc = rtems_semaphore_obtain(bd_pool->bufget_sema, 
     994                rc = rtems_semaphore_obtain(bd_pool->bufget_sema,
    995995                                            RTEMS_NO_WAIT, 0);
    996996            }
    997             /* It is possible that we couldn't obtain flush or bufget sema 
     997            /* It is possible that we couldn't obtain flush or bufget sema
    998998             * although buffer in the appropriate chain is available:
    999              * semaphore may be released to swapout task, but this task 
     999             * semaphore may be released to swapout task, but this task
    10001000             * actually did not start to process it. */
    10011001            if (rc == RTEMS_UNSATISFIED)
     
    10271027 *     Obtain block buffer. If specified block already cached (i.e. there's
    10281028 *     block in the _modified_, or _recently_used_), return address
    1029  *     of appropriate buffer descriptor and increment reference counter to 1. 
    1030  *     If block is not cached, allocate new buffer and return it. Data 
    1031  *     shouldn't be read to the buffer from media; buffer may contains 
    1032  *     arbitrary data. This primitive may be blocked if there are no free 
    1033  *     buffer descriptors available and there are no unused non-modified 
     1029 *     of appropriate buffer descriptor and increment reference counter to 1.
     1030 *     If block is not cached, allocate new buffer and return it. Data
     1031 *     shouldn't be read to the buffer from media; buffer may contains
     1032 *     arbitrary data. This primitive may be blocked if there are no free
     1033 *     buffer descriptors available and there are no unused non-modified
    10341034 *     (or synchronized with media) buffers available.
    10351035 *
     
    10941094    mutex_attr.priority_ceiling = 0;
    10951095
    1096     _CORE_mutex_Initialize(&bd_buf->transfer_sema, 
     1096    _CORE_mutex_Initialize(&bd_buf->transfer_sema,
    10971097                           &mutex_attr, CORE_MUTEX_LOCKED);
    10981098}
     
    11211121    bd_buf->in_progress = bd_buf->modified = FALSE;
    11221122    _CORE_mutex_Surrender(&bd_buf->transfer_sema, 0, NULL);
    1123     _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL, 
     1123    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL,
    11241124                      CORE_MUTEX_STATUS_SUCCESSFUL);
    11251125}
     
    11471147    bd_buf->error = RTEMS_IO_ERROR;
    11481148    _CORE_mutex_Surrender(&bd_buf->transfer_sema, 0, NULL);
    1149     _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL, 
     1149    _CORE_mutex_Flush(&bd_buf->transfer_sema, NULL,
    11501150                      CORE_MUTEX_STATUS_SUCCESSFUL);
    11511151}
     
    11731173 */
    11741174rtems_status_code
    1175 rtems_bdbuf_read(dev_t device, 
     1175rtems_bdbuf_read(dev_t device,
    11761176                 blkdev_bnum block,
    11771177                 bdbuf_buffer **bd)
     
    12951295        else
    12961296        {
    1297             /* Buffer was not modified. Add this descriptor to the 
     1297            /* Buffer was not modified. Add this descriptor to the
    12981298             * end of lru chain and make it available for reuse. */
    12991299            Chain_Append(&bd_pool->lru, &bd_buf->link);
     
    13151315 * PARAMETERS:
    13161316 *     bd_buf - pointer to the bdbuf_buffer structure previously obtained using
    1317  *              get/read primitive. 
     1317 *              get/read primitive.
    13181318 *
    13191319 * RETURNS:
     
    13441344/* rtems_bdbuf_release_modified --
    13451345 *     Release buffer allocated before, assuming that it is _modified_ by
    1346  *     it's owner. This primitive decrease usage counter for buffer, mark 
     1346 *     it's owner. This primitive decrease usage counter for buffer, mark
    13471347 *     buffer descriptor as modified. If usage counter is 0, insert it at
    13481348 *     end of mod chain and release flush_sema semaphore to activate the
     
    13771377    bd_buf->modified = TRUE;
    13781378    bd_buf->actual = TRUE;
    1379     rc = bdbuf_release(bd_buf);   
     1379    rc = bdbuf_release(bd_buf);
    13801380
    13811381    ENABLE_PREEMPTION(key);
     
    14801480 *     disk.
    14811481 */
    1482 static rtems_task 
     1482static rtems_task
    14831483bdbuf_swapout_task(rtems_task_argument unused)
    14841484{
     
    15221522        req.req.bufs[0].buffer = bd_buf->buffer;
    15231523
    1524         /* transfer_sema initialized when bd_buf inserted in the mod chain 
     1524        /* transfer_sema initialized when bd_buf inserted in the mod chain
    15251525           first time */
    15261526        result = dd->ioctl(dd->phys_dev->dev, BLKIO_REQUEST, &req);
     
    15761576 * RETURNS:
    15771577 *     RTEMS status code: RTEMS_SUCCESSFUL if operation completed successfully,
    1578  *     RTEMS_INVALID_SIZE if specified block size is invalid (not a power 
     1578 *     RTEMS_INVALID_SIZE if specified block size is invalid (not a power
    15791579 *     of 2), RTEMS_NOT_DEFINED if buffer pool for this or greater block size
    15801580 *     is not configured.
     
    16241624 *     block_size - block size for which buffer pool is configured returned
    16251625 *                  there
    1626  *     blocks     - number of buffers in buffer pool returned there 
     1626 *     blocks     - number of buffers in buffer pool returned there
    16271627 *
    16281628 * RETURNS:
  • cpukit/libblock/src/blkdev.c

    r714f06c r8b96149  
    1 /* 
    2  * blkdev.h - block device driver generic support 
     1/*
     2 * blkdev.h - block device driver generic support
    33 *
    44 * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
     
    8383/* rtems_blkdev_generic_write --
    8484 *     Generic block device write primitive. Implemented using block device
    85  *     buffer management primitives. 
     85 *     buffer management primitives.
    8686 */
    8787rtems_device_driver
     
    234234            blkdev_request *req = args->buffer;
    235235            req->start += dd->start;
    236             args->ioctl_return = dd->ioctl(dd->phys_dev->dev, args->command, 
     236            args->ioctl_return = dd->ioctl(dd->phys_dev->dev, args->command,
    237237                                           req);
    238238            break;
     
    240240
    241241        default:
    242             args->ioctl_return = dd->ioctl(dd->phys_dev->dev, args->command, 
     242            args->ioctl_return = dd->ioctl(dd->phys_dev->dev, args->command,
    243243                                           args->buffer);
    244244            break;
  • cpukit/libblock/src/diskdevs.c

    r714f06c r8b96149  
    1 /* 
     1/*
    22 * diskdevs.c - Physical and logical block devices (disks) support
    33 *
     
    298298 *     invoked from application when application-specific splitting are in use,
    299299 *     or from generic code which handle different logical disk organizations.
    300  *     This primitive will register device in rtems (invoke 
     300 *     This primitive will register device in rtems (invoke
    301301 *     rtems_io_register_name).
    302302 *
     
    304304 *     dev   - logical device identifier (major, minor numbers)
    305305 *     phys  - physical device (block device which holds this logical disk)
    306  *             identifier 
     306 *             identifier
    307307 *     start - starting block number on the physical device
    308308 *     size  - logical disk size in blocks
     
    312312 *     RTEMS_SUCCESSFUL if logical device successfully added, or error code
    313313 *     if error occured (device already registered, no physical device
    314  *     exists, logical disk is out of physical disk boundaries, no memory 
     314 *     exists, logical disk is out of physical disk boundaries, no memory
    315315 *     available).
    316316 */
     
    459459    {
    460460        rtems_interrupt_enable(level);
    461         rc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, 
     461        rc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT,
    462462                                    RTEMS_NO_TIMEOUT);
    463463        if (rc != RTEMS_SUCCESSFUL)
     
    525525
    526526    dtab = disktab + major;
    527     while (TRUE) 
     527    while (TRUE)
    528528    {
    529529        if ((dtab == NULL) || (minor > dtab->size))
     
    551551 *
    552552 * RETURNS:
    553  *     RTEMS_SUCCESSFUL if library initialized, or error code if error 
     553 *     RTEMS_SUCCESSFUL if library initialized, or error code if error
    554554 *     occured.
    555555 */
     
    570570    rc = rtems_semaphore_create(
    571571        rtems_build_name('D', 'D', 'E', 'V'), 1,
    572         RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY | 
     572        RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY |
    573573        RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL, 0, &diskdevs_mutex);
    574574
     
    600600 *
    601601 * RETURNS:
    602  *     RTEMS_SUCCESSFUL if all resources released, or error code if error 
     602 *     RTEMS_SUCCESSFUL if all resources released, or error code if error
    603603 *     occured.
    604604 */
     
    610610    rtems_status_code rc;
    611611
    612     /* Free data structures */   
     612    /* Free data structures */
    613613    for (maj = 0; maj < disktab_size; maj++)
    614614    {
  • cpukit/libblock/src/ide_part_table.c

    r714f06c r8b96149  
    4747 */
    4848static rtems_status_code
    49 get_sector(dev_t dev, uint32_t sector_num, sector_data_t **sector) 
     49get_sector(dev_t dev, uint32_t sector_num, sector_data_t **sector)
    5050{
    5151    sector_data_t      *s;
     
    9393 */
    9494static rtems_boolean
    95 msdos_signature_check (sector_data_t *sector) 
     95msdos_signature_check (sector_data_t *sector)
    9696{
    9797    uint8_t *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
     
    113113 */
    114114static rtems_boolean
    115 is_extended(uint8_t type) 
     115is_extended(uint8_t type)
    116116{
    117117    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
     
    129129 */
    130130static rtems_boolean
    131 is_fat_partition(uint8_t type) 
     131is_fat_partition(uint8_t type)
    132132{
    133133  static const uint8_t fat_part_types[] = {
     
    187187
    188188    /*
    189      * use partitions that are 
     189     * use partitions that are
    190190     * - extended
    191191     * or
     
    196196      *new_part_desc = part_desc;
    197197    }
    198     else { 
     198    else {
    199199      /* empty partition */
    200200      free(part_desc);
     
    210210 *
    211211 * PARAMETERS:
    212  *      start    - start sector of primary extended partition, used for 
     212 *      start    - start sector of primary extended partition, used for
    213213 *                 calculation of absolute partition sector address
    214214 *      ext_part - description of extended partition to process
     
    220220 */
    221221static rtems_status_code
    222 read_extended_partition(uint32_t start, part_desc_t *ext_part) 
     222read_extended_partition(uint32_t start, part_desc_t *ext_part)
    223223{
    224224    int                 i;
     
    257257    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;
    258258
    259     for (i = 0; i < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; i++) 
     259    for (i = 0; i < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; i++)
    260260    {
    261261        /* if data_to_part_desc fails skip this partition
     
    279279        new_part_desc->disk_desc = ext_part->disk_desc;
    280280
    281         if (is_extended(new_part_desc->sys_type)) 
     281        if (is_extended(new_part_desc->sys_type))
    282282        {
    283283            new_part_desc->log_id = EMPTY_PARTITION;
    284284            new_part_desc->start += start;
    285             read_extended_partition(start, new_part_desc); 
    286         }
    287         else 
     285            read_extended_partition(start, new_part_desc);
     286        }
     287        else
    288288        {
    289289            disk_desc_t *disk_desc = new_part_desc->disk_desc;
     
    315315 */
    316316static rtems_status_code
    317 read_mbr(disk_desc_t *disk_desc) 
     317read_mbr(disk_desc_t *disk_desc)
    318318{
    319319    int                 part_num;
     
    352352        }
    353353
    354         if (part_desc != NULL) 
     354        if (part_desc != NULL)
    355355        {
    356356            part_desc->log_id = part_num + 1;
     
    358358            part_desc->end = part_desc->start + part_desc->size - 1;
    359359            disk_desc->partitions[part_num] = part_desc;
    360         } 
     360        }
    361361        else
    362362        {
  • cpukit/libblock/src/ramdisk.c

    r714f06c r8b96149  
    3030    void         *area;       /* RAM disk memory area */
    3131    rtems_boolean initialized;/* RAM disk is initialized */
    32     rtems_boolean malloced;   /* != 0, if memory allocated by malloc for this 
     32    rtems_boolean malloced;   /* != 0, if memory allocated by malloc for this
    3333                                 RAM disk */
    3434};
     
    4141 *     disk to supplied buffer and invoke the callout function to inform
    4242 *     upper layer that reading is completed.
    43  * 
     43 *
    4444 * PARAMETERS:
    4545 *     req - pointer to the READ block device request info
     
    7676 *     supplied buffer to RAM disk and invoke the callout function to inform
    7777 *     upper layer that writing is completed.
    78  * 
     78 *
    7979 * PARAMETERS:
    8080 *     req - pointer to the WRITE block device request info
     
    160160
    161161/* ramdisk_initialize --
    162  *     RAM disk device driver initialization. Run through RAM disk 
     162 *     RAM disk device driver initialization. Run through RAM disk
    163163 *     configuration information and configure appropriate RAM disks.
    164164 *
     
    186186        return rc;
    187187
    188     r = ramdisk = calloc(rtems_ramdisk_configuration_size, 
     188    r = ramdisk = calloc(rtems_ramdisk_configuration_size,
    189189                         sizeof(struct ramdisk));
    190190
Note: See TracChangeset for help on using the changeset viewer.