usb: renesas_usbhs: modify packet queue control method
Current renesas_usbhs driver is controlling packet queue on mod_gadget.c. But it has relationship with pipe/fifo, not host/gadget. So, controlling USB packet queue in pipe.c/fifo.c is more convenient than in mod_gadget.c. This patch modify it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4bd0481152
commit
6acb95d4e0
@@ -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 */
|
||||
|
Reference in New Issue
Block a user