usb: renesas_usbhs: modify data transfer method
[pandora-kernel.git] / drivers / usb / renesas_usbhs / common.h
index f1a2b62..0aadcb4 100644 (file)
@@ -105,6 +105,7 @@ struct usbhs_priv;
 #define SACKE  (1 << 4)        /* Setup Transaction ACK Interrupt Enable */
 
 /* INTSTS0 */
+#define VBINT  (1 << 15)       /* VBUS0_0 and VBUS1_0 Interrupt Status */
 #define DVST   (1 << 12)       /* Device State Transition Interrupt Status */
 #define CTRT   (1 << 11)       /* Control Stage Interrupt Status */
 #define BEMP   (1 << 10)       /* Buffer Empty Interrupt Status */
@@ -177,11 +178,13 @@ struct usbhs_priv {
        struct renesas_usbhs_platform_callback  *pfunc;
        struct renesas_usbhs_driver_param       *dparam;
 
-       struct work_struct notify_hotplug_work;
+       struct delayed_work notify_hotplug_work;
        struct platform_device *pdev;
 
        spinlock_t              lock;
 
+       u32 flags;
+
        /*
         * module control
         */
@@ -200,6 +203,7 @@ u16 usbhs_read(struct usbhs_priv *priv, u32 reg);
 void usbhs_write(struct usbhs_priv *priv, u32 reg, u16 data);
 void usbhs_bset(struct usbhs_priv *priv, u32 reg, u16 mask, u16 data);
 
+int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev);
 /*
  * sysconfig
  */
@@ -217,6 +221,7 @@ int usbhs_frame_get_num(struct usbhs_priv *priv);
 /*
  * data
  */
+struct usbhs_priv *usbhs_pdev_to_priv(struct platform_device *pdev);
 #define usbhs_get_dparam(priv, param)  (priv->dparam->param)
 #define usbhs_priv_to_pdev(priv)       (priv->pdev)
 #define usbhs_priv_to_dev(priv)                (&priv->pdev->dev)