Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-03-2008, 02:15 PM   #1
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.


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

All times are GMT -5. The time now is 12:20 AM.

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