aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/pipe.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-06-06 01:17:56 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-07 12:10:06 -0400
commitad6f2a8bc53b7cc104f481a648ce357528cc08eb (patch)
tree0893ca357640d80398a138a24af01c278c738034 /drivers/usb/renesas_usbhs/pipe.h
parentcc55687124426e3a6a5301780c4e6bb36bb531fd (diff)
usb: renesas_usbhs: modify pipe direction flags
Current driver had pipe direction flag which came from usb_endpoint_dir_in(). It means "input direction" for HOST, and "out direction" for Gadget. But driver needs "input direction for pipe". This patch adds IS_DIR_HOST flags and care both "input direction for HOST" and "input direction for pipe" Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/pipe.h')
-rw-r--r--drivers/usb/renesas_usbhs/pipe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers/usb/renesas_usbhs/pipe.h
index 1cca9b7fb266..c906eb646d24 100644
--- a/drivers/usb/renesas_usbhs/pipe.h
+++ b/drivers/usb/renesas_usbhs/pipe.h
@@ -30,6 +30,7 @@ struct usbhs_pipe {
30 u32 flags; 30 u32 flags;
31#define USBHS_PIPE_FLAGS_IS_USED (1 << 0) 31#define USBHS_PIPE_FLAGS_IS_USED (1 << 0)
32#define USBHS_PIPE_FLAGS_IS_DIR_IN (1 << 1) 32#define USBHS_PIPE_FLAGS_IS_DIR_IN (1 << 1)
33#define USBHS_PIPE_FLAGS_IS_DIR_HOST (1 << 2)
33 34
34 void *mod_private; 35 void *mod_private;
35}; 36};
@@ -89,6 +90,7 @@ struct usbhs_pipe
89 const struct usb_endpoint_descriptor *desc); 90 const struct usb_endpoint_descriptor *desc);
90 91
91int usbhs_pipe_is_dir_in(struct usbhs_pipe *pipe); 92int usbhs_pipe_is_dir_in(struct usbhs_pipe *pipe);
93int usbhs_pipe_is_dir_host(struct usbhs_pipe *pipe);
92void usbhs_pipe_init(struct usbhs_priv *priv); 94void usbhs_pipe_init(struct usbhs_priv *priv);
93int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe); 95int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe);
94void usbhs_pipe_clear_sequence(struct usbhs_pipe *pipe); 96void usbhs_pipe_clear_sequence(struct usbhs_pipe *pipe);