LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-26-2009, 03:12 PM   #1
orback
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Rep: Reputation: 0
PCI express driver, map physical bus address to user-space


Hi,
I am currently writing a PCIe driver as a kernel module. And I want to map the PCI bords memory up too user-space with mmap. Can some one tell me if I first need to ioremap() the physical bus address into kernel virtual memory and then in the mmap function use remap_pfn_range(), or should the ioremap() be skipped and only remap_pfn_range() be used?

Thanks for your help
 
  


Reply

Tags
driver, pci



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
Map kernel physical space to user space zvivered Linux - Embedded & Single-board computer 2 12-11-2009 06:18 AM
mmap to overlay VME bus into kernel space memory over a PCI? IanVaughan Programming 0 07-31-2009 09:17 AM
linux driver how to mmap many kernel address to user space soararing Programming 1 05-22-2008 05:32 AM
Mmap and munmap physical address to user space karttik Linux - Software 0 10-28-2007 02:10 AM
Custom PCI driver problems (acess from user-space) - Ubuntu 6.06 / Linux 2.6 kalen Linux - Kernel 0 11-09-2006 06:11 AM

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

All times are GMT -5. The time now is 06:41 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