X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fmips%2Fau1000%2Fcommon%2Fdma.c;h=c78260d4e837532e3e19b28459f2ced292a06119;hb=refs%2Fheads%2Fvserver;hp=f364091d0d13f2fda9e5e21bc3abc064009cf0d9;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/arch/mips/au1000/common/dma.c b/arch/mips/au1000/common/dma.c index f364091d0..c78260d4e 100644 --- a/arch/mips/au1000/common/dma.c +++ b/arch/mips/au1000/common/dma.c @@ -7,6 +7,7 @@ * Copyright 2000 MontaVista Software Inc. * Author: MontaVista Software, Inc. * stevel@mvista.com or source@mvista.com + * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -29,7 +30,7 @@ * 675 Mass Ave, Cambridge, MA 02139, USA. * */ - +#include #include #include #include @@ -59,7 +60,7 @@ */ -spinlock_t au1000_dma_spin_lock = SPIN_LOCK_UNLOCKED; +DEFINE_SPINLOCK(au1000_dma_spin_lock); struct dma_chan au1000_dma_table[NUM_AU1000_DMA_CHANNELS] = { {.dev_id = -1,}, @@ -71,6 +72,7 @@ struct dma_chan au1000_dma_table[NUM_AU1000_DMA_CHANNELS] = { {.dev_id = -1,}, {.dev_id = -1,} }; +EXPORT_SYMBOL(au1000_dma_table); // Device FIFO addresses and default DMA modes static const struct dma_dev { @@ -158,7 +160,7 @@ void dump_au1000_dma_channel(unsigned int dmanr) * Requests the DMA done IRQ if irqhandler != NULL. */ int request_au1000_dma(int dev_id, const char *dev_str, - irqreturn_t (*irqhandler)(int, void *, struct pt_regs *), + irq_handler_t irqhandler, unsigned long irqflags, void *irq_dev_id) { @@ -171,7 +173,7 @@ int request_au1000_dma(int dev_id, const char *dev_str, return -EINVAL; #else if (dev_id < 0 || dev_id >= DMA_NUM_DEV) - return -EINVAL; + return -EINVAL; #endif for (i = 0; i < NUM_AU1000_DMA_CHANNELS; i++) { @@ -216,6 +218,7 @@ int request_au1000_dma(int dev_id, const char *dev_str, return i; } +EXPORT_SYMBOL(request_au1000_dma); void free_au1000_dma(unsigned int dmanr) { @@ -233,4 +236,6 @@ void free_au1000_dma(unsigned int dmanr) chan->irq_dev = NULL; chan->dev_id = -1; } +EXPORT_SYMBOL(free_au1000_dma); + #endif // AU1000 AU1500 AU1100