summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/dma-dummy.c
blob: ebb9755c1eceacbaabb3ed1ae83e37cfb8aa431b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * arch/arm/kernel/dma-dummy.c
 *
 * Copyright (C) 1998 Philip Blundell
 * Copyright (c) 1998 Russell King
 *
 * Dummy DMA functions
 */
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/spinlock.h>

spinlock_t dma_spin_lock = SPIN_LOCK_UNLOCKED;

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

int no_dma(void)
{
	return 0;
}

#define GLOBAL_ALIAS(_a,_b) asm (".set " #_a "," #_b "; .globl " #_a)
GLOBAL_ALIAS(disable_dma, no_dma);
GLOBAL_ALIAS(enable_dma, no_dma);
GLOBAL_ALIAS(free_dma, no_dma);
GLOBAL_ALIAS(get_dma_residue, no_dma);
GLOBAL_ALIAS(get_dma_list, no_dma);
GLOBAL_ALIAS(set_dma_mode, no_dma);
GLOBAL_ALIAS(set_dma_count, no_dma);
GLOBAL_ALIAS(set_dma_addr, no_dma);
GLOBAL_ALIAS(init_dma, no_dma);