dma.c (eed34d0fc5e4b89269053ed855ef714edbcf4518) | dma.c (15ad7cdcfd76450d4beebc789ec646664238184d) |
---|---|
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. --- 126 unchanged lines hidden (view full) --- 135} 136#endif /* MAX_DMA_CHANNELS */ 137 138static int proc_dma_open(struct inode *inode, struct file *file) 139{ 140 return single_open(file, proc_dma_show, NULL); 141} 142 | 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. --- 126 unchanged lines hidden (view full) --- 135} 136#endif /* MAX_DMA_CHANNELS */ 137 138static int proc_dma_open(struct inode *inode, struct file *file) 139{ 140 return single_open(file, proc_dma_show, NULL); 141} 142 |
143static struct file_operations proc_dma_operations = { | 143static const struct file_operations proc_dma_operations = { |
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{ --- 15 unchanged lines hidden --- | 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{ --- 15 unchanged lines hidden --- |