Changeset 8e7c9fe in mainline for uspace/drv/bus/usb/usbmast/main.c


Ignore:
Timestamp:
2014-09-12T03:45:25Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c53b58e
Parents:
3eb0c85 (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

most usb changes were reverted. blink and usbmass were fixed
known problems:
ehci won't initialize
usbmast asserts on unmount (happens on mainline too)

File:
1 edited

Legend:

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

    r3eb0c85 r8e7c9fe  
    8282static int usbmast_bd_close(bd_srv_t *);
    8383static int usbmast_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, size_t);
     84static int usbmast_bd_sync_cache(bd_srv_t *, aoff64_t, size_t);
    8485static int usbmast_bd_write_blocks(bd_srv_t *, aoff64_t, size_t, const void *, size_t);
    8586static int usbmast_bd_get_block_size(bd_srv_t *, size_t *);
     
    9091        .close = usbmast_bd_close,
    9192        .read_blocks = usbmast_bd_read_blocks,
     93        .sync_cache = usbmast_bd_sync_cache,
    9294        .write_blocks = usbmast_bd_write_blocks,
    9395        .get_block_size = usbmast_bd_get_block_size,
     
    344346}
    345347
     348/** Synchronize blocks to nonvolatile storage. */
     349static int usbmast_bd_sync_cache(bd_srv_t *bd, uint64_t ba, size_t cnt)
     350{
     351        usbmast_fun_t *mfun = bd_srv_usbmast(bd);
     352
     353        return usbmast_sync_cache(mfun, ba, cnt);
     354}
     355
    346356/** Write blocks to the device. */
    347357static 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.