]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/dwc3/core.h
musb: Update usb-compat to work with struct usb_device without a parent ptr
[u-boot] / drivers / usb / dwc3 / core.h
index 0d507c106ee38b05577ac8577a010b0df1020ce4..72d2fcdd3f42ff17538004d295d7d6067d73c956 100644 (file)
@@ -392,7 +392,7 @@ struct dwc3_event_buffer {
        unsigned int            count;
        unsigned int            flags;
 
-#define DWC3_EVENT_PENDING     BIT(0)
+#define DWC3_EVENT_PENDING     (1UL << 0)
 
        dma_addr_t              dma;
 
@@ -695,6 +695,8 @@ struct dwc3_scratchpad_array {
  *     1       - -3.5dB de-emphasis
  *     2       - No de-emphasis
  *     3       - Reserved
+ * @index: index of _this_ controller
+ * @list: to maintain the list of dwc3 controllers
  */
 struct dwc3 {
        struct usb_ctrlrequest  *ctrl_req;
@@ -811,6 +813,8 @@ struct dwc3 {
 
        unsigned                tx_de_emphasis_quirk:1;
        unsigned                tx_de_emphasis:2;
+       int                     index;
+       struct list_head        list;
 };
 
 /* -------------------------------------------------------------------------- */
@@ -983,7 +987,6 @@ struct dwc3_gadget_ep_cmd_params {
 #define DWC3_HAS_OTG                   BIT(3)
 
 /* prototypes */
-void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
 int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc);
 
 #ifdef CONFIG_USB_DWC3_HOST