[PATCH 05/27] usb: musb: introduce read_fifo/write_fifo callback in glue ops

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: tom.leiming
Date: Sunday, December 12, 2010 - 10:01 am

From: Ming Lei <tom.leiming@gmail.com>

This patch introduces read_fifo/write_fifo callback in glue ops,
so that we can make musb in one single images working on multiple
boards.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 drivers/usb/musb/musb_core.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index 5843810..bfbd72e 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -262,6 +262,8 @@ enum musb_g_ep0_state {
  * @get_hw_revision: get hardware revision
  * @vbus_status: returns vbus status if possible
  * @set_vbus:	forces vbus status
+ * @read_fifo: read data from musb fifo in PIO
+ * @write_fifo: write data into musb fifo in PIO
  */
 struct musb_platform_ops {
 	int	(*init)(struct musb *musb);
@@ -277,6 +279,8 @@ struct musb_platform_ops {
 
 	int	(*vbus_status)(struct musb *musb);
 	void	(*set_vbus)(struct musb *musb, int on);
+	void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf);
+	void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf);
 };
 
 /*
-- 
1.7.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/28] usb: musb: musb cleanup, tom.leiming, (Sun Dec 12, 10:01 am)
[PATCH 05/27] usb: musb: introduce read_fifo/write_fifo ca ..., tom.leiming, (Sun Dec 12, 10:01 am)
[PATCH 11/28] usb: musb: remove musb_in_tusb, tom.leiming, (Sun Dec 12, 10:01 am)
[PATCH 12/27] usb: musb: remove musb_in_tusb, tom.leiming, (Sun Dec 12, 10:01 am)
[PATCH 21/28] usb: musb: print dma type in runtime way, tom.leiming, (Sun Dec 12, 10:02 am)
[PATCH 22/27] usb: musb: print dma type in runtime way, tom.leiming, (Sun Dec 12, 10:02 am)
RE: [PATCH 0/28] usb: musb: musb cleanup, Gupta, Ajay Kumar, (Mon Dec 13, 12:55 am)
Re: [PATCH 0/28] usb: musb: musb cleanup, Ming Lei, (Mon Dec 13, 3:17 am)
Re: [PATCH 0/28] usb: musb: musb cleanup, Ming Lei, (Mon Dec 13, 3:18 am)