Merge git://www.denx.de/git/u-boot-marvell
[oweals/u-boot.git] / drivers / usb / gadget / ci_udc.h
index 23cff56d7ec92d7653ece4611db27cfa8c5ce7a7..95cc07992b412ae92495dfab3252059ed64c0c64 100644 (file)
@@ -86,6 +86,7 @@ struct ci_req {
        /* Buffer for the current transfer. Either req.buf/len or b_buf/len */
        uint8_t *hw_buf;
        uint32_t hw_len;
+       uint32_t dtd_count;
 };
 
 struct ci_ep {
@@ -97,10 +98,11 @@ struct ci_ep {
 
 struct ci_drv {
        struct usb_gadget               gadget;
+       struct ci_req                   *ep0_req;
+       bool                            ep0_data_phase;
        struct usb_gadget_driver        *driver;
        struct ehci_ctrl                *ctrl;
        struct ept_queue_head           *epts;
-       struct ept_queue_item           *items[2 * NUM_ENDPOINTS];
        uint8_t                         *items_mem;
        struct ci_ep                    ep[NUM_ENDPOINTS];
 };