Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (diff), 0bbd13e (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

Trivial conflicts.

File:
1 edited

Legend:

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

    rba72f2b r6843a9c  
    8282         */
    8383        uint8_t request_type;
     84#define SETUP_REQUEST_TYPE_DEVICE_TO_HOST (1 << 7)
     85#define SETUP_REQUEST_TYPE_GET_TYPE(rt) ((rt >> 5) & 0x3)
     86#define SETUP_REQUEST_TYPE_GET_RECIPIENT(rec) (rec & 0x1f)
     87#define SETUP_REQUEST_TO_HOST(type, recipient) \
     88    (uint8_t)((1 << 7) | ((type & 0x3) << 5) | (recipient & 0x1f))
     89#define SETUP_REQUEST_TO_DEVICE(type, recipient) \
     90    (uint8_t)(((type & 0x3) << 5) | (recipient & 0x1f))
     91
    8492        /** Request identification. */
    8593        uint8_t request;
     
    115123int usb_request_set_feature(usb_pipe_t *, usb_request_type_t,
    116124    usb_request_recipient_t, uint16_t, uint16_t);
    117 int usb_request_set_address(usb_pipe_t *, usb_address_t);
    118125int usb_request_get_descriptor(usb_pipe_t *, usb_request_type_t,
    119     usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t, 
     126    usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t,
    120127    size_t *);
    121128int usb_request_get_descriptor_alloc(usb_pipe_t *, usb_request_type_t,
     
    131138int usb_request_set_descriptor(usb_pipe_t *, usb_request_type_t,
    132139    usb_request_recipient_t, uint8_t, uint8_t, uint16_t, void *, size_t);
     140
    133141int usb_request_get_configuration(usb_pipe_t *, uint8_t *);
    134142int usb_request_set_configuration(usb_pipe_t *, uint8_t);
Note: See TracChangeset for help on using the changeset viewer.