Ignore:
Timestamp:
2017-11-22T13:54:05Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
820d9bc
Parents:
b60eac1
Message:

usbhost: refactor include hiearchy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    rb60eac1 r64fea02  
    3737#define LIBUSBHOST_HOST_USB_TRANSFER_BATCH_H
    3838
     39#include <atomic.h>
     40#include <errno.h>
     41#include <stddef.h>
     42#include <stdint.h>
     43#include <usb/request.h>
    3944#include <usb/usb.h>
    40 #include <usb/request.h>
    41 #include <usb/host/bus.h>
    4245#include <usbhc_iface.h>
    4346
    44 #include <atomic.h>
    45 #include <stddef.h>
    46 #include <errno.h>
    47 #include <stdint.h>
     47#include <usb/host/hcd.h>
     48#include <usb/host/endpoint.h>
     49#include <usb/host/bus.h>
    4850
    4951typedef struct endpoint endpoint_t;
     
    8789} usb_transfer_batch_t;
    8890
    89 /** Printf formatting string for dumping usb_transfer_batch_t. */
     91/**
     92 * Printf formatting string for dumping usb_transfer_batch_t.
     93 *  [address:endpoint speed transfer_type-direction buffer_sizeB/max_packet_size]
     94 * */
    9095#define USB_TRANSFER_BATCH_FMT "[%d:%d %s %s-%s %zuB/%zu]"
    9196
     
    9499 */
    95100#define USB_TRANSFER_BATCH_ARGS(batch) \
    96         (batch).target.address, (batch).target.endpoint, \
     101        ((batch).ep->device->address), ((batch).ep->endpoint), \
    97102        usb_str_speed((batch).ep->device->speed), \
    98103        usb_str_transfer_type_short((batch).ep->transfer_type), \
    99         usb_str_direction((batch).ep->direction), \
     104        usb_str_direction((batch).dir), \
    100105        (batch).buffer_size, (batch).ep->max_packet_size
    101106
Note: See TracChangeset for help on using the changeset viewer.