Lines Matching full:dmanr
183 static void enable_dma(unsigned int dmanr)
185 if (dmanr <= 3)
186 outb_p(dmanr, DMA1_MASK_REG);
188 outb_p(dmanr & 3, DMA2_MASK_REG);
191 static void disable_dma(unsigned int dmanr)
193 if (dmanr <= 3)
194 outb_p(dmanr | 4, DMA1_MASK_REG);
196 outb_p((dmanr & 3) | 4, DMA2_MASK_REG);
200 static void set_dma_mode(unsigned int dmanr, char mode)
202 if (dmanr <= 3)
203 outb_p(mode | dmanr, DMA1_MODE_REG);
205 outb_p(mode | (dmanr&3), DMA2_MODE_REG);