usb: renesas_usbhs: modify packet queue control method
[pandora-kernel.git] / drivers / usb / renesas_usbhs / fifo.h
index 758d85d..c34d1d1 100644 (file)
@@ -20,6 +20,7 @@
 #include "pipe.h"
 
 struct usbhs_pkt {
+       struct list_head node;
        struct usbhs_pipe *pipe;
        int maxp;
        void *buf;
@@ -38,8 +39,10 @@ int usbhs_fifo_prepare_read(struct usbhs_pipe *pipe);
 /*
  * packet info
  */
-void usbhs_pkt_update(struct usbhs_pkt *pkt,
-                     struct usbhs_pipe *pipe,
-                     void *buf, int len);
+void usbhs_pkt_init(struct usbhs_pkt *pkt);
+void usbhs_pkt_update(struct usbhs_pkt *pkt, void *buf, int len);
+void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt);
+void usbhs_pkt_pop(struct usbhs_pkt *pkt);
+struct usbhs_pkt *usbhs_pkt_get(struct usbhs_pipe *pipe);
 
 #endif /* RENESAS_USB_FIFO_H */