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

Function ClearDmaFF

bsp/x86/drivers/dma.h:96–102  ·  view source on GitHub ↗

* 清空DMA 晶体计数器 */

Source from the content-addressed store, hash-verified

94 * 清空DMA 晶体计数器
95 */
96static __inline__ void ClearDmaFF(unsigned int dmanr)
97{
98 if (dmanr<=3)
99 OUTB(0, DMA1_CLEAR_FF_REG);
100 else
101 OUTB(0, DMA2_CLEAR_FF_REG);
102}
103
104/*
105 * 清空DMA 晶体计数器

Callers 1

floppy_setupDMAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected