LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-30-2002, 11:30 AM   #1
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
PCI programming help needed


Hi,
I have been working with an ISA card for my project so far and now I am given a PCI card. I don't know much abou PCI programming. ( Detecting the io base, irq etc. ). I found a few prototypes in /usr/include/linux/pci.h (RH7.2). But I could not find any of corresponding functions. Can any one tell me if these are to be implemented by driver writer and if so can some one suggest some example for start learning pci programming?. Also can someone tell me if it is possible to read a file on disk from a driver program?

Thanks,
--Sarin.
 
Old 08-30-2002, 05:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Yes, you can see code of the functions. Make sure you have the shole kernel source installed, not only headers. Then enter drivers/pci directory of the kernel source and you can browce the *.c files.
 
Old 09-01-2002, 04:52 AM   #3
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354

Original Poster
Blog Entries: 2

Rep: Reputation: 34
Thanks, I found them.
--Sarin
 
  


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
Good sites to research PCI programming cstrask Linux - Hardware 2 11-04-2005 11:42 PM
Kernel Programming help needed arunka Linux - General 1 03-01-2005 05:53 AM
PCI Serial Expert Needed!!! Help??? Merlin53 Linux - Hardware 0 08-24-2004 01:14 PM
Urgent help needed to install old PCI card under kernel 2.4.20-8smp bcj Linux - Hardware 2 06-15-2004 12:14 AM
c++ file i/o programming help needed rajorshi Linux - Newbie 1 09-13-2003 01:40 PM

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

All times are GMT -5. The time now is 01:18 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
Open Source Consulting | Domain Registration