Changeset 5fe3f954 in mainline for uspace/lib/usb/include


Ignore:
Timestamp:
2018-02-12T10:28:14Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ee820ff
Parents:
1d758fc
git-author:
Ondřej Hlavatý <aearsis@…> (2018-02-12 10:23:51)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-02-12 10:28:14)
Message:

xhci: refactor splitting transfers

Allow nonzero offsets (not yet used bc. of other drivers), usage of
bigger chunks than PAGE_SIZE. The performance is now at 1.3 GB/s, when
using 16MB transfers (the current maximum) and without debug logs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/request.h

    r1d758fc r5fe3f954  
    8585#define SETUP_REQUEST_TYPE_DEVICE_TO_HOST (1 << 7)
    8686#define SETUP_REQUEST_TYPE_HOST_TO_DEVICE (0 << 7)
     87#define SETUP_REQUEST_TYPE_IS_DEVICE_TO_HOST(rt) ((rt) & (1 << 7))
    8788#define SETUP_REQUEST_TYPE_GET_TYPE(rt) ((rt >> 5) & 0x3)
    8889#define SETUP_REQUEST_TYPE_GET_RECIPIENT(rec) (rec & 0x1f)
Note: See TracChangeset for help on using the changeset viewer.