12 #include <linux/export.h>
13 #include <linux/kernel.h>
14 #include <linux/errno.h>
16 #include <linux/string.h>
46 #ifdef MAX_DMA_CHANNELS
60 [4] = { 1,
"cascade" },
74 if (
xchg(&dma_chan_busy[dmanr].lock, 1) != 0)
77 dma_chan_busy[dmanr].device_id =
device_id;
94 if (
xchg(&dma_chan_busy[dmanr].lock, 0) == 0) {
114 #ifdef CONFIG_PROC_FS
116 #ifdef MAX_DMA_CHANNELS
117 static int proc_dma_show(
struct seq_file *
m,
void *
v)
122 if (dma_chan_busy[i].lock) {
124 dma_chan_busy[i].device_id);
130 static int proc_dma_show(
struct seq_file *m,
void *v)
143 .
open = proc_dma_open,
149 static int __init proc_dma_init(
void)
151 proc_create(
"dma", 0,
NULL, &proc_dma_operations);