Lines Matching +full:single +full:- +full:channel

1 /* SPDX-License-Identifier: GPL-2.0 */
4 * High DMA channel support & info by Hannu Savolainen
20 ** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up
34 ** We don't have DMA channels... well V-class does but the
36 ** Note: this is not relevant right now for PA-RISC, but we cannot
38 ** won't compile :-(
41 #define DMA_MODE_READ 0x44 /* I/O to memory, no autoinit, increment, single mode */
42 #define DMA_MODE_WRITE 0x48 /* memory to I/O, no autoinit, increment, single mode */
43 #define DMA_MODE_CASCADE 0xC0 /* pass thru DREQ->HRQ, DACK<-HLDA only */
55 #define DMA1_MASK_REG 0x0A /* single-channel mask (w) */
57 #define DMA1_CLEAR_FF_REG 0x0C /* clear pointer flip-flop (w) */
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) */
73 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */
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 */
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 */
158 /* Set transfer address & page bits for specific DMA channel.
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.