Changeset e9e422e in rtems


Ignore:
Timestamp:
Jul 29, 2008, 2:56:20 AM (12 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bafe97f4
Parents:
57df51f
Message:

2008-07-29 Chris Johns <chrisj@…>

  • smc/smc.c: Updated to the libblock changes.
Location:
c/src/lib/libbsp/arm/gp32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/gp32/ChangeLog

    r57df51f re9e422e  
     12008-07-29      Chris Johns <chrisj@rtems.org>
     2
     3        * smc/smc.c: Updated to the libblock changes.
     4
    152008-05-14      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/lib/libbsp/arm/gp32/smc/smc.c

    r57df51f re9e422e  
    542542 * write stub
    543543*/
    544 static int smc_write(blkdev_request *req)
     544static int smc_write(rtems_blkdev_request *req)
    545545{
    546546        req->req_done(req->done_arg, RTEMS_SUCCESSFUL, 0);
     
    557557 */
    558558static int
    559 smc_read(blkdev_request *req)
     559smc_read(rtems_blkdev_request *req)
    560560{
    561561    uint32_t   i;
    562     blkdev_sg_buffer *sg;
     562    rtems_blkdev_sg_buffer *sg;
    563563    uint32_t   remains;
    564564
     
    570570        if (count > remains)
    571571            count = remains;
    572         smc_read_page(req->start,sg->buffer);
     572        smc_read_page(sg->block,sg->buffer);
    573573        remains -= count;
    574574    }
     
    593593    switch (req)
    594594    {
    595         case BLKIO_REQUEST:
     595        case RTEMS_BLKIO_REQUEST:
    596596        {
    597             blkdev_request *r = argp;
     597            rtems_blkdev_request *r = argp;
    598598            switch (r->req)
    599599            {
    600                 case BLKDEV_REQ_READ:
     600                case RTEMS_BLKDEV_REQ_READ:
    601601                    return smc_read(r);
    602                 case BLKDEV_REQ_WRITE:
     602                case RTEMS_BLKDEV_REQ_WRITE:
    603603                    return smc_write(r);
    604604                default:
Note: See TracChangeset for help on using the changeset viewer.