MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / SetDmaMode

Function SetDmaMode

bsp/x86/drivers/dma.h:107–113  ·  view source on GitHub ↗

* 清空DMA 晶体计数器 */

Source from the content-addressed store, hash-verified

105 * 清空DMA 晶体计数器
106 */
107static __inline__ void SetDmaMode(unsigned int dmanr, char mode)
108{
109 if (dmanr<=3)
110 OUTB(mode | dmanr, DMA1_MODE_REG);
111 else
112 OUTB(mode | (dmanr&3), DMA2_MODE_REG);
113}
114
115/*
116 * 设定DMA 页面寄存器

Callers 1

floppy_setupDMAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected