Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[safe/jmp/linux-2.6] / drivers / usb / musb / cppi_dma.h
index fc5216b..59bf949 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <linux/slab.h>
 #include <linux/list.h>
-#include <linux/smp_lock.h>
 #include <linux/errno.h>
 #include <linux/dmapool.h>
 
@@ -119,15 +118,17 @@ struct cppi {
        void __iomem                    *mregs;         /* Mentor regs */
        void __iomem                    *tibase;        /* TI/CPPI regs */
 
-       struct cppi_channel             tx[MUSB_C_NUM_EPT - 1];
-       struct cppi_channel             rx[MUSB_C_NUM_EPR - 1];
+       int                             irq;
+
+       struct cppi_channel             tx[4];
+       struct cppi_channel             rx[4];
 
        struct dma_pool                 *pool;
 
        struct list_head                tx_complete;
 };
 
-/* irq handling hook */
-extern void cppi_completion(struct musb *, u32 rx, u32 tx);
+/* CPPI IRQ handler */
+extern irqreturn_t cppi_interrupt(int, void *);
 
 #endif                         /* end of ifndef _CPPI_DMA_H_ */