dma.c (902749cdbd3da8199e57d082f36a6de60591aeb6) dma.c (c33fff0afbef4f0467c99e3f47ee7e98ae78c77e)
1/* $Id: dma.c,v 1.7 1994/12/28 03:35:33 root Exp root $
2 * linux/kernel/dma.c: A DMA channel allocator. Inspired by linux/kernel/irq.c.
3 *
4 * Written by Hennus Bergman, 1992.
5 *
6 * 1994/12/26: Changes by Alex Nash to fix a minor bug in /proc/dma.
7 * In the previous version the reported device could end up being wrong,
8 * if a device requested a DMA channel that was already in use.

--- 135 unchanged lines hidden (view full) ---

144 .open = proc_dma_open,
145 .read = seq_read,
146 .llseek = seq_lseek,
147 .release = single_release,
148};
149
150static int __init proc_dma_init(void)
151{
1/* $Id: dma.c,v 1.7 1994/12/28 03:35:33 root Exp root $
2 * linux/kernel/dma.c: A DMA channel allocator. Inspired by linux/kernel/irq.c.
3 *
4 * Written by Hennus Bergman, 1992.
5 *
6 * 1994/12/26: Changes by Alex Nash to fix a minor bug in /proc/dma.
7 * In the previous version the reported device could end up being wrong,
8 * if a device requested a DMA channel that was already in use.

--- 135 unchanged lines hidden (view full) ---

144 .open = proc_dma_open,
145 .read = seq_read,
146 .llseek = seq_lseek,
147 .release = single_release,
148};
149
150static int __init proc_dma_init(void)
151{
152 struct proc_dir_entry *e;
153
154 e = create_proc_entry("dma", 0, NULL);
155 if (e)
156 e->proc_fops = &proc_dma_operations;
157
152 proc_create("dma", 0, NULL, &proc_dma_operations);
158 return 0;
159}
160
161__initcall(proc_dma_init);
162#endif
163
164EXPORT_SYMBOL(request_dma);
165EXPORT_SYMBOL(free_dma);
166EXPORT_SYMBOL(dma_spin_lock);
153 return 0;
154}
155
156__initcall(proc_dma_init);
157#endif
158
159EXPORT_SYMBOL(request_dma);
160EXPORT_SYMBOL(free_dma);
161EXPORT_SYMBOL(dma_spin_lock);