LinuxQuestions.org
Visit Jeremy's Blog.
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 02-08-2011, 05:17 AM   #1
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Rep: Reputation: 0
Question Help in reading pci config space


HI Folks,

greetings, iam vijay shankar working in some corporate company as a part of my work in need some help reg:
1. Acessing PCI config space in Linux(Using system calls)
2. How to interacted controller in a pci device( say vide controller)

please help me how read using system calls

i Know using "lspci" command we can read but i want system call which use BDF(bus,device,fun) to read a device or any other calls which we can use directly in programming

thanks for your time on this

Regards
shankar
 
Old 02-08-2011, 06:02 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Are you trying any programming on Linux System Internals?
 
0 members found this post helpful.
Old 02-08-2011, 11:38 PM   #3
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
Smile

Yes, iam in urgent need of those system calls
 
Old 02-08-2011, 11:47 PM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by shankar.489 View Post
Acessing PCI config space in Linux(Using system calls)
This might help: http://www.gnugeneration.com/books/l...20/kernel-api/
 
Old 02-09-2011, 02:23 AM   #5
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Quote:
Originally Posted by shankar.489 View Post
Yes, iam in urgent need of those system calls
I believe in Post#4 the link which is mentioned would be helpful to you.

Such a wonderful link . Worth exploring it.
 
Old 02-10-2011, 12:09 AM   #6
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
Smile Thank You

HI kaul,
thank you very much Kaul
i will go through those API`s, i guess this may solve my problem


regards
shankar
 
Old 02-10-2011, 02:29 AM   #7
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
can anybody help me which API i have to use in order to enumerate all pci devices?
 
Old 02-10-2011, 03:02 AM   #8
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by shankar.489 View Post
can anybody help me which API i have to use in order to enumerate all pci devices?
Do you mean to say that you looked up that link and couldn't find ANY function for PCI support?
You have to show what have you tried from that link and failed!

Last edited by Aquarius_Girl; 02-10-2011 at 03:17 AM.
 
Old 02-10-2011, 11:33 PM   #9
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
Smile

HI kaul,

well you wrongly understand my words.

what i mean to say is, Currently iam very busy in my schedule and i don't have time go through all pci related commads/syscalls.I Hope you understood my position.

the link what you sent is really helpful to me @ this time and future also..!!

but i want know only about which API`s to use to enumerate all PCI devices.

Thanks dude....

regards,
Shankar.
 
Old 02-11-2011, 01:03 AM   #10
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by shankar.489 View Post
what i mean to say is, Currently iam very busy in my schedule and i don't have time go through all pci related commads/syscalls.I Hope you understood my position.
So because YOU are too busy, you want US to spend our time to search that link by the keyword "PCI" on your behalf???

I AM NOT GOING TO DO THAT, thank you.

Last edited by Aquarius_Girl; 02-11-2011 at 01:04 AM.
 
Old 02-13-2011, 11:06 PM   #11
shankar.489
Member
 
Registered: Jan 2011
Posts: 53

Original Poster
Rep: Reputation: 0
Hi kaul,

i will take care of my things further, Thanks for your reply
 
  


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
About the last page of file reading in the user space kenokanza Linux - Kernel 0 06-07-2009 06:09 PM
Scanning the PCI config space from a C application L2S Programming 1 02-25-2009 09:12 AM
reading and writing to configuration register of PCI device giri_blr Linux - Kernel 0 08-14-2008 12:43 AM
How do you MMAP PCI Configurations Space to User Space jbreaka4lyfe Linux - Kernel 0 03-03-2008 01:15 PM
PCI Driver (How to access info in config space) bramsey123 Programming 1 09-29-2007 03:36 PM

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

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