Ignore:
File:
1 edited

Legend:

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

    r8064c2f6 r9d58539  
    3535#define DRV_UHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
    3636
    37 #include <assert.h>
     37#include <mem.h>
    3838#include <usb/usb.h>
    39 #include <stdbool.h>
    40 #include <sys/types.h>
    4139
    4240#include "link_pointer.h"
     
    102100
    103101void td_print_status(const td_t *instance);
    104 
     102/*----------------------------------------------------------------------------*/
    105103/** Helper function for parsing actual size out of TD.
    106104 *
     
    115113        return ((s >> TD_STATUS_ACTLEN_POS) + 1) & TD_STATUS_ACTLEN_MASK;
    116114}
    117 
     115/*----------------------------------------------------------------------------*/
    118116/** Check whether less than max data were received on SPD marked transfer.
    119117 *
     
    131129            (instance->status | TD_STATUS_SPD_FLAG) && act_size < max_size;
    132130}
    133 
     131/*----------------------------------------------------------------------------*/
    134132/** Helper function for parsing value of toggle bit.
    135133 *
     
    142140        return (instance->device & TD_DEVICE_DATA_TOGGLE_ONE_FLAG) ? 1 : 0;
    143141}
    144 
     142/*----------------------------------------------------------------------------*/
    145143/** Helper function for parsing value of active bit
    146144 *
     
    153151        return (instance->status & TD_STATUS_ERROR_ACTIVE) != 0;
    154152}
    155 
     153/*----------------------------------------------------------------------------*/
    156154/** Helper function for setting IOC bit.
    157155 *
     
    163161        instance->status |= TD_STATUS_IOC_FLAG;
    164162}
    165 
     163/*----------------------------------------------------------------------------*/
    166164#endif
    167165/**
Note: See TracChangeset for help on using the changeset viewer.