Go to the documentation of this file.
17 #ifndef RENESAS_USB_PIPE_H
18 #define RENESAS_USB_PIPE_H
36 #define USBHS_PIPE_FLAGS_IS_USED (1 << 0)
37 #define USBHS_PIPE_FLAGS_IS_DIR_IN (1 << 1)
38 #define USBHS_PIPE_FLAGS_IS_DIR_HOST (1 << 2)
56 #define __usbhs_for_each_pipe(start, pos, info, i) \
57 for (i = start, pos = (info)->pipe + i; \
59 i++, pos = (info)->pipe + i)
61 #define usbhs_for_each_pipe(pos, priv, i) \
62 __usbhs_for_each_pipe(1, pos, &((priv)->pipe_info), i)
64 #define usbhs_for_each_pipe_with_dcp(pos, priv, i) \
65 __usbhs_for_each_pipe(0, pos, &((priv)->pipe_info), i)
70 #define usbhs_priv_to_pipeinfo(pr) (&(pr)->pipe_info)
95 #define usbhs_pipe_sequence_data0(pipe) usbhs_pipe_data_sequence(pipe, 0)
96 #define usbhs_pipe_sequence_data1(pipe) usbhs_pipe_data_sequence(pipe, 1)
99 #define usbhs_pipe_to_priv(p) ((p)->priv)
100 #define usbhs_pipe_number(p) (int)((p) - (p)->priv->pipe_info.pipe)
101 #define usbhs_pipe_is_dcp(p) ((p)->priv->pipe_info.pipe == (p))
102 #define usbhs_pipe_to_fifo(p) ((p)->fifo)
103 #define usbhs_pipe_is_busy(p) usbhs_pipe_to_fifo(p)
105 #define usbhs_pipe_type(p) ((p)->pipe_type)
106 #define usbhs_pipe_type_is(p, t) ((p)->pipe_type == t)