Changeset c0e0a928 in rtems for cpukit/libblock/src/blkdev.c


Ignore:
Timestamp:
Nov 12, 2009, 3:32:11 PM (11 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, 5, master
Children:
b27799c
Parents:
8509ec2
Message:

Changed set and get IO controls to use the buffer argument for data exchange.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/blkdev.c

    r8509ec2 rc0e0a928  
    227227    {
    228228        case RTEMS_BLKIO_GETMEDIABLKSIZE:
    229             args->ioctl_return = dd->media_block_size;
     229            *((uint32_t *) args->buffer) = dd->media_block_size;
     230            args->ioctl_return = 0;
    230231            break;
    231232
    232233        case RTEMS_BLKIO_GETBLKSIZE:
    233             args->ioctl_return = dd->block_size;
     234            *((uint32_t *) args->buffer) = dd->block_size;
     235            args->ioctl_return = 0;
    234236            break;
    235237
    236238        case RTEMS_BLKIO_SETBLKSIZE:
    237             dd->block_size = *((size_t*) args->buffer);
     239            dd->block_size = *((uint32_t *) args->buffer);
     240            args->ioctl_return = 0;
    238241            break;
    239242
    240243        case RTEMS_BLKIO_GETSIZE:
    241             args->ioctl_return = dd->size;
     244            *((rtems_blkdev_bnum *) args->buffer) = dd->size;
     245            args->ioctl_return = 0;
    242246            break;
    243247
Note: See TracChangeset for help on using the changeset viewer.