]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace MGC_XXX_OFFSET with MUSB_XXX_OFFSET
authorTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 13:50:05 +0000 (06:50 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 15 Aug 2007 13:50:05 +0000 (06:50 -0700)
Search and replace MGC_XXX_OFFSET with MUSB_XXX_OFFSET

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_procfs.c
drivers/usb/musb/musbdefs.h
drivers/usb/musb/musbhdrc.h
drivers/usb/musb/plat_uds.c

index ea6db0239c0fbad509961c2944b2e505a7b348f1..99e3dce7224a3334835ae784d4592defaa02cdbe 100644 (file)
@@ -722,13 +722,13 @@ static void musb_ep_program(struct musb *musb, u8 epnum,
                /* target addr and (for multipoint) hub addr/port */
                if (musb->is_multipoint) {
                        musb_writeb(mbase,
-                               MGC_BUSCTL_OFFSET(epnum, MUSB_TXFUNCADDR),
+                               MUSB_BUSCTL_OFFSET(epnum, MUSB_TXFUNCADDR),
                                qh->addr_reg);
                        musb_writeb(mbase,
-                               MGC_BUSCTL_OFFSET(epnum, MUSB_TXHUBADDR),
+                               MUSB_BUSCTL_OFFSET(epnum, MUSB_TXHUBADDR),
                                qh->h_addr_reg);
                        musb_writeb(mbase,
-                               MGC_BUSCTL_OFFSET(epnum, MUSB_TXHUBPORT),
+                               MUSB_BUSCTL_OFFSET(epnum, MUSB_TXHUBPORT),
                                qh->h_port_reg);
 /* FIXME if !epnum, do the same for RX ... */
                } else
index 1dbacf4b12938c0b9d351c0e31452cd4000411cf..dc774201bd916769c77551145c2d8ab0b72377d7 100644 (file)
@@ -285,13 +285,13 @@ dump_end_info(struct musb *musb, u8 epnum, char *aBuffer, unsigned max)
                                        musb_readb(regs, MUSB_RXTYPE),
                                        /* FIXME:  assumes multipoint */
                                        musb_readb(musb->mregs,
-                                               MGC_BUSCTL_OFFSET(epnum,
+                                               MUSB_BUSCTL_OFFSET(epnum,
                                                MUSB_RXFUNCADDR)),
                                        musb_readb(musb->mregs,
-                                               MGC_BUSCTL_OFFSET(epnum,
+                                               MUSB_BUSCTL_OFFSET(epnum,
                                                MUSB_RXHUBADDR)),
                                        musb_readb(musb->mregs,
-                                               MGC_BUSCTL_OFFSET(epnum,
+                                               MUSB_BUSCTL_OFFSET(epnum,
                                                MUSB_RXHUBPORT))
                                        );
                                if (code <= 0)
@@ -373,13 +373,13 @@ dump_end_info(struct musb *musb, u8 epnum, char *aBuffer, unsigned max)
                                        musb_readb(regs, MUSB_TXTYPE),
                                        /* FIXME:  assumes multipoint */
                                        musb_readb(musb->mregs,
-                                               MGC_BUSCTL_OFFSET(epnum,
+                                               MUSB_BUSCTL_OFFSET(epnum,
                                                MUSB_TXFUNCADDR)),
                                        musb_readb(musb->mregs,
-                                               MGC_BUSCTL_OFFSET(epnum,
+                                               MUSB_BUSCTL_OFFSET(epnum,
                                                MUSB_TXHUBADDR)),
                                        musb_readb(musb->mregs,
-                                               MGC_BUSCTL_OFFSET(epnum,
+                                               MUSB_BUSCTL_OFFSET(epnum,
                                                MUSB_TXHUBPORT))
                                        );
                                if (code <= 0)
index 5ce0505e3b0f66cebf2bbb0045fcd83994c966fa..eb09ea2533da4627759b3978539ca9765a0b5961 100644 (file)
@@ -220,18 +220,18 @@ enum musb_g_ep0_state {
 #if    defined(CONFIG_USB_TUSB6010)
 #define musb_ep_select(_mbase, _epnum) \
        musb_writeb((_mbase), MUSB_INDEX, (_epnum))
-#define        MGC_END_OFFSET                  MGC_TUSB_OFFSET
+#define        MGC_END_OFFSET                  MUSB_TUSB_OFFSET
 
 /* "flat" mapping: each endpoint has its own i/o address */
 #elif  defined(MUSB_FLAT_REG)
 #define musb_ep_select(_mbase, _epnum) (((void)(_mbase)),((void)(_epnum)))
-#define        MGC_END_OFFSET                  MGC_FLAT_OFFSET
+#define        MGC_END_OFFSET                  MUSB_FLAT_OFFSET
 
 /* "indexed" mapping: INDEX register controls register bank select */
 #else
 #define musb_ep_select(_mbase, _epnum) \
        musb_writeb((_mbase), MUSB_INDEX, (_epnum))
-#define        MGC_END_OFFSET                  MGC_INDEXED_OFFSET
+#define        MGC_END_OFFSET                  MUSB_INDEXED_OFFSET
 #endif
 
 /****************************** FUNCTIONS ********************************/
index c862e6502f531c9b26fd0397043124fb2173a626..9646bb6b2168030d735102d17500113f440f7dcb 100644 (file)
 #define MUSB_CONFIGDATA        MUSB_FIFOSIZE   /* re-used for EP0 */
 
 /* offsets to endpoint registers in indexed model (using INDEX register) */
-#define MGC_INDEXED_OFFSET(_epnum, _offset)    \
+#define MUSB_INDEXED_OFFSET(_epnum, _offset)   \
        (0x10                   + (_offset))
 
 /* offsets to endpoint registers in flat models */
-#define MGC_FLAT_OFFSET(_epnum, _offset)       \
+#define MUSB_FLAT_OFFSET(_epnum, _offset)      \
        (0x100 + (0x10*(_epnum)) + (_offset))
 
 #ifdef CONFIG_USB_TUSB6010
 /* TUSB6010 EP0 configuration register is special */
-#define MGC_TUSB_OFFSET(_epnum, _offset)       \
+#define MUSB_TUSB_OFFSET(_epnum, _offset)      \
        (0x10 + _offset)
 #include "tusb6010.h"          /* needed "only" for TUSB_EP0_CONF */
 #endif
 #define MUSB_RXHUBADDR 0x06
 #define MUSB_RXHUBPORT 0x07
 
-#define MGC_BUSCTL_OFFSET(_epnum, _offset) \
+#define MUSB_BUSCTL_OFFSET(_epnum, _offset) \
        (0x80 + (8*(_epnum)) + (_offset))
 
 /*
index 71e89d8fc3215d924230f6d6d13ab4fb66c2b4a1..348c2463302ba6ecb81d217ebd7212156812667f 100644 (file)
@@ -1380,7 +1380,7 @@ static int __init musb_core_init(u16 wType, struct musb *musb)
 
                hw_ep->regs = MGC_END_OFFSET(i, 0) + mbase;
 #ifdef CONFIG_USB_MUSB_HDRC_HCD
-               hw_ep->target_regs = MGC_BUSCTL_OFFSET(i, 0) + mbase;
+               hw_ep->target_regs = MUSB_BUSCTL_OFFSET(i, 0) + mbase;
                hw_ep->rx_reinit = 1;
                hw_ep->tx_reinit = 1;
 #endif