Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h

    r9d58539 r8064c2f6  
    3535#define DRV_UHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
    3636
    37 #include <mem.h>
     37#include <assert.h>
    3838#include <usb/usb.h>
     39#include <stdbool.h>
     40#include <sys/types.h>
    3941
    4042#include "link_pointer.h"
     
    100102
    101103void td_print_status(const td_t *instance);
    102 /*----------------------------------------------------------------------------*/
     104
    103105/** Helper function for parsing actual size out of TD.
    104106 *
     
    113115        return ((s >> TD_STATUS_ACTLEN_POS) + 1) & TD_STATUS_ACTLEN_MASK;
    114116}
    115 /*----------------------------------------------------------------------------*/
     117
    116118/** Check whether less than max data were received on SPD marked transfer.
    117119 *
     
    129131            (instance->status | TD_STATUS_SPD_FLAG) && act_size < max_size;
    130132}
    131 /*----------------------------------------------------------------------------*/
     133
    132134/** Helper function for parsing value of toggle bit.
    133135 *
     
    140142        return (instance->device & TD_DEVICE_DATA_TOGGLE_ONE_FLAG) ? 1 : 0;
    141143}
    142 /*----------------------------------------------------------------------------*/
     144
    143145/** Helper function for parsing value of active bit
    144146 *
     
    151153        return (instance->status & TD_STATUS_ERROR_ACTIVE) != 0;
    152154}
    153 /*----------------------------------------------------------------------------*/
     155
    154156/** Helper function for setting IOC bit.
    155157 *
     
    161163        instance->status |= TD_STATUS_IOC_FLAG;
    162164}
    163 /*----------------------------------------------------------------------------*/
     165
    164166#endif
    165167/**
Note: See TracChangeset for help on using the changeset viewer.