Lines Matching +full:single +full:- +full:channel
1 /* SPDX-License-Identifier: GPL-2.0 */
4 * High DMA channel support & info by Hannu Savolainen
18 ** DMA_CHUNK_SIZE is used by the SCSI mid-layer to break up
32 ** We don't have DMA channels... well V-class does but the
34 ** Note: this is not relevant right now for PA-RISC, but we cannot
36 ** won't compile :-(
39 #define DMA_MODE_READ 0x44 /* I/O to memory, no autoinit, increment, single mode */
40 #define DMA_MODE_WRITE 0x48 /* memory to I/O, no autoinit, increment, single mode */
41 #define DMA_MODE_CASCADE 0xC0 /* pass thru DREQ->HRQ, DACK<-HLDA only */
53 #define DMA1_MASK_REG 0x0A /* single-channel mask (w) */
55 #define DMA1_CLEAR_FF_REG 0x0C /* clear pointer flip-flop (w) */
59 #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */
65 #define DMA2_MASK_REG 0xD4 /* single-channel mask (w) */
67 #define DMA2_CLEAR_FF_REG 0xD8 /* clear pointer flip-flop (w) */
71 #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */
87 * If called before the channel has been used, it may return 1.
90 * Assumes DMA flip-flop is clear.
97 /* using short to get 16-bit wrap around */ in get_dma_residue()
106 /* enable/disable a specific DMA channel */
127 /* reserve a DMA channel */
133 * After that, keep track of it. :-)
134 * --- In order to do that, the DMA routines below should ---
135 * --- only be used while holding the DMA lock ! ---
141 /* set mode (above) for a specific DMA channel */
156 /* Set transfer address & page bits for specific DMA channel.
165 * a specific DMA channel.
169 * Assumes dma flip-flop is clear.
170 * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.