These routines handle the allocation, deallocation, and setup of TRBs.
◆ dwc_usb3_pcd_trb_alloc()
This routine allocates the TRBs for an EP.
- Parameters
-
| ep | The EP for the allocation. |
| num_trbs | Number of TRBs to allocate. |
| trb_type | Type of the TRB. |
| iso_intvl | bInterval if this is an Isoc EP. |
| link | True if the TRBs should be linked in a circular chain (only supported for Isoc EPs for now). |
| trbs_dma_ret | The DMA address of the allocation is returned through this pointer. |
- Returns
- The address of the allocated memory, or NULL if the allocation fails.
◆ dwc_usb3_pcd_trb_free()
◆ dwc_usb3_pcd_fill_trbs()
This routine assigns and fills in the TRBs for a request.
- Parameters
-
| pcd | Programming view of DWC_usb3 peripheral controller. |
| ep | The EP for the transfer. |
| req | The request that needs the TRBs. |