LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-03-2008, 01:15 PM   #1
jbreaka4lyfe
LQ Newbie
 
Registered: Feb 2008
Location: San Diego, CA
Posts: 15

Rep: Reputation: 0
Question How do you MMAP PCI Configurations Space to User Space


Hi everyone,
I'm new to writing kernel modules and am staring down an interesting issue. I'm currently writing a PCI module, and one aspect required is to memory map the configuration space. The macros that I've seen, such as pci_iomap, do not help beyond the base address registers. I've tried reading through the kernel source code, such as delving through macros like read_config_byte, but I haven't found what I was looking for. There was some mention of using mmap on /dev/mem to mmap the PCI Configuration Space, but ... how would you know which offset to use? I'm quite lost, and would love to hear suggestions of how to address this issue. Thanks in advance, to everyone who has taken the time to read this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
Mmap and munmap physical address to user space karttik Linux - Software 0 10-28-2007 02:10 AM
How to share data b/w user space and kernel space nandac Linux - Kernel 1 11-28-2006 10:15 PM
Custom PCI driver problems (acess from user-space) - Ubuntu 6.06 / Linux 2.6 kalen Linux - Kernel 0 11-09-2006 06:11 AM
how to assign names to PCI devices, that ioctl() can use from user space? MarkGaleck Linux - Kernel 2 10-23-2006 03:55 PM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration