Lines Matching +full:dma +full:- +full:channel +full:- +full:mask

1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* asm/dma.h: Defines for using and allocating dma channels.
4 * High DMA channel support & info by Hannu Savolainen
20 ** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up
28 /* The maximum address that we can perform a DMA transfer to on this platform
29 ** New dynamic DMA interfaces should obsolete this....
34 ** We don't have DMA channels... well V-class does but the
35 ** Dynamic DMA Mapping interface will support them... right? :^)
36 ** Note: this is not relevant right now for PA-RISC, but we cannot
38 ** won't compile :-(
43 #define DMA_MODE_CASCADE 0xC0 /* pass thru DREQ->HRQ, DACK<-HLDA only */
47 /* 8237 DMA controllers */
48 #define IO_DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */
49 #define IO_DMA2_BASE 0xC0 /* 16 bit master DMA, ch 4(=slave input)..7 */
51 /* DMA controller registers */
55 #define DMA1_MASK_REG 0x0A /* single-channel mask (w) */
57 #define DMA1_CLEAR_FF_REG 0x0C /* clear pointer flip-flop (w) */
60 #define DMA1_CLR_MASK_REG 0x0E /* Clear Mask */
61 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */
67 #define DMA2_MASK_REG 0xD4 /* single-channel mask (w) */
69 #define DMA2_CLEAR_FF_REG 0xD8 /* clear pointer flip-flop (w) */
72 #define DMA2_CLR_MASK_REG 0xDC /* Clear Mask */
73 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */
86 /* Get DMA residue count. After a DMA transfer, this
87 * should return zero. Reading this while a DMA transfer is
89 * If called before the channel has been used, it may return 1.
92 * Assumes DMA flip-flop is clear.
99 /* using short to get 16-bit wrap around */ in get_dma_residue()
108 /* enable/disable a specific DMA channel */
129 /* reserve a DMA channel */
132 /* Clear the 'DMA Pointer Flip Flop'.
135 * After that, keep track of it. :-)
136 * --- In order to do that, the DMA routines below should ---
137 * --- only be used while holding the DMA lock ! ---
143 /* set mode (above) for a specific DMA channel */
150 * the lower 16 bits of the DMA current address register, but a 64k boundary
158 /* Set transfer address & page bits for specific DMA channel.
159 * Assumes dma flipflop is clear.
167 * a specific DMA channel.
171 * Assumes dma flip-flop is clear.
172 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.