diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-29 04:51:07 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-11-29 04:51:07 -0500 |
commit | 0d2cd91bf7b1a7cc1d638296111fcc2bcf5c0bb4 (patch) | |
tree | d2ca69347816c27f9dc352581f5d0fe76811cd49 /drivers/usb/renesas_usbhs/fifo.h | |
parent | 3d95fd6ad8d3cf582a70ed65660017114b6e4065 (diff) | |
parent | caca6a03d365883564885f2c1da3e88dcf65d139 (diff) |
Merge commit 'v3.2-rc3' into next
Diffstat (limited to 'drivers/usb/renesas_usbhs/fifo.h')
-rw-r--r-- | drivers/usb/renesas_usbhs/fifo.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.h b/drivers/usb/renesas_usbhs/fifo.h index ed6d8e56c13c..32a7b246b28d 100644 --- a/drivers/usb/renesas_usbhs/fifo.h +++ b/drivers/usb/renesas_usbhs/fifo.h | |||
@@ -51,6 +51,8 @@ struct usbhs_pkt { | |||
51 | struct list_head node; | 51 | struct list_head node; |
52 | struct usbhs_pipe *pipe; | 52 | struct usbhs_pipe *pipe; |
53 | struct usbhs_pkt_handle *handler; | 53 | struct usbhs_pkt_handle *handler; |
54 | void (*done)(struct usbhs_priv *priv, | ||
55 | struct usbhs_pkt *pkt); | ||
54 | dma_addr_t dma; | 56 | dma_addr_t dma; |
55 | void *buf; | 57 | void *buf; |
56 | int length; | 58 | int length; |
@@ -76,12 +78,6 @@ void usbhs_fifo_quit(struct usbhs_priv *priv); | |||
76 | /* | 78 | /* |
77 | * packet info | 79 | * packet info |
78 | */ | 80 | */ |
79 | enum { | ||
80 | USBHSF_PKT_PREPARE, | ||
81 | USBHSF_PKT_TRY_RUN, | ||
82 | USBHSF_PKT_DMA_DONE, | ||
83 | }; | ||
84 | |||
85 | extern struct usbhs_pkt_handle usbhs_fifo_pio_push_handler; | 81 | extern struct usbhs_pkt_handle usbhs_fifo_pio_push_handler; |
86 | extern struct usbhs_pkt_handle usbhs_fifo_pio_pop_handler; | 82 | extern struct usbhs_pkt_handle usbhs_fifo_pio_pop_handler; |
87 | extern struct usbhs_pkt_handle usbhs_ctrl_stage_end_handler; | 83 | extern struct usbhs_pkt_handle usbhs_ctrl_stage_end_handler; |
@@ -89,16 +85,18 @@ extern struct usbhs_pkt_handle usbhs_ctrl_stage_end_handler; | |||
89 | extern struct usbhs_pkt_handle usbhs_fifo_dma_push_handler; | 85 | extern struct usbhs_pkt_handle usbhs_fifo_dma_push_handler; |
90 | extern struct usbhs_pkt_handle usbhs_fifo_dma_pop_handler; | 86 | extern struct usbhs_pkt_handle usbhs_fifo_dma_pop_handler; |
91 | 87 | ||
88 | extern struct usbhs_pkt_handle usbhs_dcp_status_stage_in_handler; | ||
89 | extern struct usbhs_pkt_handle usbhs_dcp_status_stage_out_handler; | ||
90 | |||
91 | extern struct usbhs_pkt_handle usbhs_dcp_data_stage_in_handler; | ||
92 | extern struct usbhs_pkt_handle usbhs_dcp_data_stage_out_handler; | ||
92 | 93 | ||
93 | void usbhs_pkt_init(struct usbhs_pkt *pkt); | 94 | void usbhs_pkt_init(struct usbhs_pkt *pkt); |
94 | void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, | 95 | void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, |
95 | struct usbhs_pkt_handle *handler, | 96 | void (*done)(struct usbhs_priv *priv, |
97 | struct usbhs_pkt *pkt), | ||
96 | void *buf, int len, int zero); | 98 | void *buf, int len, int zero); |
97 | struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt); | 99 | struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt); |
98 | int __usbhs_pkt_handler(struct usbhs_pipe *pipe, int type); | 100 | void usbhs_pkt_start(struct usbhs_pipe *pipe); |
99 | |||
100 | #define usbhs_pkt_start(p) __usbhs_pkt_handler(p, USBHSF_PKT_PREPARE) | ||
101 | #define usbhs_pkt_run(p) __usbhs_pkt_handler(p, USBHSF_PKT_TRY_RUN) | ||
102 | #define usbhs_pkt_dmadone(p) __usbhs_pkt_handler(p, USBHSF_PKT_DMA_DONE) | ||
103 | 101 | ||
104 | #endif /* RENESAS_USB_FIFO_H */ | 102 | #endif /* RENESAS_USB_FIFO_H */ |