LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-22-2007, 01:10 AM   #1
linuxguy_72
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
DMA driver for linux 2.6.14


Hi everyone,

Actually I am beginner to Linux Enviromnent and presently working on porting my existing DMA device driver to Linux 2.6.14. I am working on this since last 1 month but still could not find the right approach for a jumpstart.
My earlier DMA driver which I tested on ARM926EJS on Non-OS and VxWorks have couple of DMA API's which are exposed to end user application. Just to give you breif snapshot of 1 simple DMA API:
DMA_Copy(DMA_channel Number,Source Address, Dest. Address, Size)

Now End user simply gives DMA channel number(which he already opened using other DMA API), source and destination addres of data buffer(say, placed in DDR) and any data size. My DMA driver internally configures some of the DMA hardware registers and can perform the DMA copy without any problem .

But in Linux, using ioclt calls now I can configure any DMA channel to open in kernel mode but my real problem starts when I need to pass source and destination address to perform any DMA copy from user to kernel mode. Bcoz internally driver is working at kernel mode and needs kernel Virtual address to perform any DMA copy and end user is passing User mode addresses.
So, Could anyone let me know what should be the right way to approach this driver implementation in Linux. I am also following DMA chapter of Linux Device Driver 3rd edition by Rubini but finding it really cumbersome to grasp.So it would be great if I can expect your comments on this driver implementation
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
DMA driver for linux 2.6.14 linuxguy_72 Linux - Newbie 0 03-22-2007 12:18 AM
Help! Xine is killing DMA, I can't make DMA stick! husten SUSE / openSUSE 5 02-27-2007 01:20 AM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM
DMA & Slow hard driver performance Stevetgn Linux - Newbie 5 06-24-2003 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration