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

Function DisableDma

bsp/x86/drivers/dma.h:85–91  ·  view source on GitHub ↗

* 禁用指定的DMA通道 */

Source from the content-addressed store, hash-verified

83 * 禁用指定的DMA通道
84 */
85static __inline__ void DisableDma(unsigned int dmanr)
86{
87 if (dmanr<=3)
88 OUTB(dmanr | 4, DMA1_MASK_REG);
89 else
90 OUTB((dmanr & 3) | 4, DMA2_MASK_REG);
91}
92
93/*
94 * 清空DMA 晶体计数器

Callers 1

floppy_setupDMAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected