Skip to content

Commit

Permalink
Dummy ISA DMA functions for systems that don't have ISA but share
Browse files Browse the repository at this point in the history
drivers with ISA such as legacy free PCI.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent b188ffe commit 8c93650
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions arch/mips/kernel/dma-no-isa.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2004 by Ralf Baechle
*
* Dummy ISA DMA functions for systems that don't have ISA but share drivers
* with ISA such as legacy free PCI.
*/
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/spinlock.h>

DEFINE_SPINLOCK(dma_spin_lock);

int request_dma(unsigned int dmanr, const char * device_id)
{
return -EINVAL;
}

void free_dma(unsigned int dmanr)
{
}

EXPORT_SYMBOL(dma_spin_lock);
EXPORT_SYMBOL(request_dma);
EXPORT_SYMBOL(free_dma);

0 comments on commit 8c93650

Please sign in to comment.