]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace MGC_END_OFFSET with MUSB_EP_OFFSET
authorTony Lindgren <tony@atomide.com>
Fri, 17 Aug 2007 08:41:46 +0000 (01:41 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 17 Aug 2007 08:41:46 +0000 (01:41 -0700)
Search and replace MGC_END_OFFSET with MUSB_EP_OFFSET

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

index 8a18c1840e86759b87dc2c68d42f34292a6e41d4..27b5957a4b436c0cc18a37a733a7780f26ae2888 100644 (file)
@@ -221,18 +221,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                  MUSB_TUSB_OFFSET
+#define        MUSB_EP_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                  MUSB_FLAT_OFFSET
+#define        MUSB_EP_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                  MUSB_INDEXED_OFFSET
+#define        MUSB_EP_OFFSET                  MUSB_INDEXED_OFFSET
 #endif
 
 /****************************** FUNCTIONS ********************************/
index 653addb4d4b1b7b90076b8d7d94ff638f3bffb05..48e5531888d4088386f6a8b9768b307c202d742b 100644 (file)
@@ -263,22 +263,22 @@ static int dma_channel_abort(struct dma_channel *pChannel)
                if (pImplChannel->transmit) {
 
                        csr = musb_readw(mbase,
-                               MGC_END_OFFSET(pImplChannel->epnum,MUSB_TXCSR));
+                               MUSB_EP_OFFSET(pImplChannel->epnum,MUSB_TXCSR));
                        csr &= ~(MUSB_TXCSR_AUTOSET |
                                 MUSB_TXCSR_DMAENAB |
                                 MUSB_TXCSR_DMAMODE);
                        musb_writew(mbase,
-                                       MGC_END_OFFSET(pImplChannel->epnum,MUSB_TXCSR),
+                                       MUSB_EP_OFFSET(pImplChannel->epnum,MUSB_TXCSR),
                                        csr);
                }
                else {
                        csr = musb_readw(mbase,
-                               MGC_END_OFFSET(pImplChannel->epnum,MUSB_RXCSR));
+                               MUSB_EP_OFFSET(pImplChannel->epnum,MUSB_RXCSR));
                        csr &= ~(MUSB_RXCSR_AUTOCLEAR |
                                 MUSB_RXCSR_DMAENAB |
                                 MUSB_RXCSR_DMAMODE);
                        musb_writew(mbase,
-                                       MGC_END_OFFSET(pImplChannel->epnum,MUSB_RXCSR),
+                                       MUSB_EP_OFFSET(pImplChannel->epnum,MUSB_RXCSR),
                                        csr);
                }
 
@@ -356,7 +356,7 @@ static irqreturn_t dma_controller_irq(int irq, void *private_data)
                                        musb_ep_select(mbase,
                                                pImplChannel->epnum);
                                        musb_writew(mbase,
-                                               MGC_END_OFFSET(pImplChannel->epnum,MUSB_TXCSR),
+                                               MUSB_EP_OFFSET(pImplChannel->epnum,MUSB_TXCSR),
                                                MUSB_TXCSR_TXPKTRDY);
                                } else
                                        musb_dma_completion(
index 6e7a973f9cfca5c2280dfec6b41922bbee4940f5..8a2bb3eabbbe6fd1dcc8e6c706ff97b1f7019bb1 100644 (file)
@@ -1380,7 +1380,7 @@ static int __init musb_core_init(u16 musb_type, struct musb *musb)
                        hw_ep->conf = mbase + 0x400 + (((i - 1) & 0xf) << 2);
 #endif
 
-               hw_ep->regs = MGC_END_OFFSET(i, 0) + mbase;
+               hw_ep->regs = MUSB_EP_OFFSET(i, 0) + mbase;
 #ifdef CONFIG_USB_MUSB_HDRC_HCD
                hw_ep->target_regs = MUSB_BUSCTL_OFFSET(i, 0) + mbase;
                hw_ep->rx_reinit = 1;