LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2004, 04:00 AM   #1
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Rep: Reputation: 15
Accessing PCI memory space


I am programming a x86 micro-processor. I want to access a PCI memory 0xE0004000 for Video Input Port programming.

I would like to know which functions can help me to access.

I already tried to use ioremap + readb + writeb but I couldn't compile it because I had an error "undefined reference to 'ioremap' " I included the functions header file asm/io.h

can I call the address directly?

any direction and suggestions will be very helpful for me.

thanx. HTS.
 
Old 04-28-2004, 10:46 AM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
can u grep it out of /proc/ksyms?
 
Old 04-29-2004, 01:40 AM   #3
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Original Poster
Rep: Reputation: 15
yes, I did : "grep ioremap ksyms" and I got:

c0117930 __ioremap_R9eac042a

What does it mean?
 
Old 04-29-2004, 09:39 AM   #4
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
it means that ioremap is an exported symbol.. i can't see why it is not being resolved correctly?? i know this is stuipd, but did u misspell it in the code or somthin?
 
Old 04-30-2004, 12:52 AM   #5
HTS
LQ Newbie
 
Registered: Apr 2004
Location: Middle East
Distribution: RH9
Posts: 23

Original Poster
Rep: Reputation: 15
I spell it correctly.
Being an external symbol... Does it make any thing that I need to add in my code or in my Makefile or somewhere?
Do I need to #define something except __KERNEL__ or MODULE ?
Do you think by any chance it is the compiler fault?
thank you!!!
 
Old 04-30-2004, 01:24 AM   #6
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
no you dont need to do much...
i assume that you are doing some kernel module programming...
just check that you are compiling for the right kernel version..

if you have two kernel versions then ..you might be compiling it according to one version and insmoding it on some other version...
 
Old 04-30-2004, 01:30 AM   #7
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
This might be of some help to you:

https://mail.rtai.org/pipermail/rtai...er/001437.html

Click the little link after "Next message:" at the bottom of that page for the answer.
 
Old 04-30-2004, 10:55 AM   #8
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
no i dont think that is his problem, he is including correct headers and defines. how about post a simple demo recreating the problem
 
  


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
Gpio Twiddling In Embedded Linux? or How to access PCI memory space regs? jds-linux Programming 1 07-11-2004 02:17 AM
accessing process address space linorg Programming 5 04-15-2004 01:13 PM
accessing folder with 'space' in the name kushalkoolwal Linux - Newbie 2 03-11-2004 02:43 AM
Accessing Video Memory Information...need help! KneeLess Programming 1 08-19-2003 01:38 AM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration