Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to programm DMA in linux on x86 platform?

Status
Not open for further replies.

shell.albert

Member level 4
Joined
Feb 2, 2011
Messages
78
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,288
Location
Yantai
Activity points
1,724
is there someone know how to program DMA operations in linux on x86 platform?
few days ago ,i got a mission to finish a PCI device driver in linux,the destination board is x86.now,i've already finish the basic PCI register read & write and it works well.i get the BAR0 physical address through APIs pci_resource_get(),pci_resource_end(),mapping it to kernel virtual address with ioremap(),then i can read & write the BAR0 address space.the next step,i should execute DMA data transfer using DMA.but i don't know how to program DMA in linux ?
can experts give some suggestions?
thanks in advance.

- - - Updated - - -

i search the code using google on web,but the materials are not explain clearly.
can someone give me an example code here?
or draw a basic flow-chart to show the call ordering of DMA APIs??
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top