Changeset 15d0046 in mainline for uspace/drv/bus/usb/usbmast/main.c


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/main.c

    r8db09e4 r15d0046  
    8585static int usbmast_bd_close(bd_srv_t *);
    8686static int usbmast_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, size_t);
     87static int usbmast_bd_sync_cache(bd_srv_t *, aoff64_t, size_t);
    8788static int usbmast_bd_write_blocks(bd_srv_t *, aoff64_t, size_t, const void *, size_t);
    8889static int usbmast_bd_get_block_size(bd_srv_t *, size_t *);
     
    9394        .close = usbmast_bd_close,
    9495        .read_blocks = usbmast_bd_read_blocks,
     96        .sync_cache = usbmast_bd_sync_cache,
    9597        .write_blocks = usbmast_bd_write_blocks,
    9698        .get_block_size = usbmast_bd_get_block_size,
     
    338340}
    339341
     342/** Synchronize blocks to nonvolatile storage. */
     343static int usbmast_bd_sync_cache(bd_srv_t *bd, uint64_t ba, size_t cnt)
     344{
     345        usbmast_fun_t *mfun = bd_srv_usbmast(bd);
     346
     347        return usbmast_sync_cache(mfun, ba, cnt);
     348}
     349
    340350/** Write blocks to the device. */
    341351static int usbmast_bd_write_blocks(bd_srv_t *bd, uint64_t ba, size_t cnt,
Note: See TracChangeset for help on using the changeset viewer.