diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2014-11-10 06:02:44 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-12 10:09:39 -0500 |
commit | c907e423530f40132f258cafb0ec709b30a6bd29 (patch) | |
tree | 77afef6a754d23cf313e9d48c02133969d6ba732 /drivers/usb/renesas_usbhs | |
parent | f509fee81fa205c664ea4e446b6d8a8caae38c35 (diff) |
usb: renesas_usbhs: change d{0,1}fifo to dfifo array
To extend DnFIFOs in the future, this patch changes d{0,1}fifo of
usbhs_fifo_info to dfifo array.
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/fifo.c | 4 | ||||
-rw-r--r-- | drivers/usb/renesas_usbhs/fifo.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c index 9b48384c95a7..341508a54c87 100644 --- a/drivers/usb/renesas_usbhs/fifo.c +++ b/drivers/usb/renesas_usbhs/fifo.c | |||
@@ -21,8 +21,8 @@ | |||
21 | #include "pipe.h" | 21 | #include "pipe.h" |
22 | 22 | ||
23 | #define usbhsf_get_cfifo(p) (&((p)->fifo_info.cfifo)) | 23 | #define usbhsf_get_cfifo(p) (&((p)->fifo_info.cfifo)) |
24 | #define usbhsf_get_d0fifo(p) (&((p)->fifo_info.d0fifo)) | 24 | #define usbhsf_get_d0fifo(p) (&((p)->fifo_info.dfifo[0])) |
25 | #define usbhsf_get_d1fifo(p) (&((p)->fifo_info.d1fifo)) | 25 | #define usbhsf_get_d1fifo(p) (&((p)->fifo_info.dfifo[1])) |
26 | #define usbhsf_is_cfifo(p, f) (usbhsf_get_cfifo(p) == f) | 26 | #define usbhsf_is_cfifo(p, f) (usbhsf_get_cfifo(p) == f) |
27 | 27 | ||
28 | #define usbhsf_fifo_is_busy(f) ((f)->pipe) /* see usbhs_pipe_select_fifo */ | 28 | #define usbhsf_fifo_is_busy(f) ((f)->pipe) /* see usbhs_pipe_select_fifo */ |
diff --git a/drivers/usb/renesas_usbhs/fifo.h b/drivers/usb/renesas_usbhs/fifo.h index 79ad5f971035..e1e51c631729 100644 --- a/drivers/usb/renesas_usbhs/fifo.h +++ b/drivers/usb/renesas_usbhs/fifo.h | |||
@@ -38,10 +38,10 @@ struct usbhs_fifo { | |||
38 | struct sh_dmae_slave rx_slave; | 38 | struct sh_dmae_slave rx_slave; |
39 | }; | 39 | }; |
40 | 40 | ||
41 | #define USBHS_MAX_NUM_DFIFO 2 | ||
41 | struct usbhs_fifo_info { | 42 | struct usbhs_fifo_info { |
42 | struct usbhs_fifo cfifo; | 43 | struct usbhs_fifo cfifo; |
43 | struct usbhs_fifo d0fifo; | 44 | struct usbhs_fifo dfifo[USBHS_MAX_NUM_DFIFO]; |
44 | struct usbhs_fifo d1fifo; | ||
45 | }; | 45 | }; |
46 | 46 | ||
47 | struct usbhs_pkt_handle; | 47 | struct usbhs_pkt_handle; |