diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-18 00:24:27 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-18 00:24:27 +0000 |
commit | b9558d5f86c471a125abf1fb3a3882fb053b1f8c (patch) | |
tree | 707b53ec64e740a7da87d5f36485e3cd9b1c794e /kernel/dma.c | |
parent | b3ac367c7a3e6047abe74817db27e34e759f279f (diff) |
Merge with Linux 2.3.41.
Diffstat (limited to 'kernel/dma.c')
-rw-r--r-- | kernel/dma.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/kernel/dma.c b/kernel/dma.c index e9f0f7a52..983dedb60 100644 --- a/kernel/dma.c +++ b/kernel/dma.c @@ -16,6 +16,7 @@ #include <asm/dma.h> #include <asm/system.h> + /* A note on resource allocation: * @@ -35,6 +36,12 @@ spinlock_t dma_spin_lock = SPIN_LOCK_UNLOCKED; +/* + * If our port doesn't define this it has no PC like DMA + */ + +#ifdef MAX_DMA_CHANNELS + /* Channel n is busy iff dma_chan_busy[n].lock != 0. * DMA0 used to be reserved for DRAM refresh, but apparently not any more... @@ -100,3 +107,22 @@ void free_dma(unsigned int dmanr) } } /* free_dma */ + +#else + +int request_dma(unsigned int dmanr, const char *device_id) +{ + return -EINVAL; +} + +int free_dma(unsigned int dmanr) +{ + return -EINVAL; +} + +int get_dma_list(char *buf) +{ + strcpy(buf, "No DMA\n"); + return 7; +} +#endif |