Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/rt-thread
/ EnableDma
Function
EnableDma
bsp/x86/drivers/dma.h:74–80 ·
view source on GitHub ↗
* 启用指定的DMA通道 */
Source
from the content-addressed store, hash-verified
72
* 启用指定的DMA通道
73
*/
74
static __inline__ void EnableDma(unsigned int dmanr)
75
{
76
if (dmanr<=3)
77
OUTB(dmanr, DMA1_MASK_REG);
78
else
79
OUTB(dmanr & 3, DMA2_MASK_REG);
80
}
81
82
/*
83
* 禁用指定的DMA通道
Callers
1
floppy_setupDMA
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected