niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
PCI fundas
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
linux_boy
*nix forums beginner


Joined: 08 Sep 2005
Posts: 8

PostPosted: Mon Jul 17, 2006 7:04 am    Post subject: PCI fundas Reply with quote

Hi all,

I want to know the PCI fundas
1. How the PCI Buses are enumerated while booting linux?
2. How it detects the Vendor ID,Device ID,etc., and make the device
structure for various cards?
3. What Happens if two or more same cards which are having same DEVICE
ID,VENDOR ID,and
SUB-SYSTEM ID connected to the slots.I mean to say,
Are they having same IRQs,same IRQ_FLAGS(SA_INTERRUPT/SA_SHIRQ)?
4.In the prev case, Is kernel allocate any different adderss space for
each (same kind of) cards ?
Please reply me ASAP
Thanks
Rafi.
Back to top
Michael Schnell
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 110

PostPosted: Mon Jul 17, 2006 9:15 pm    Post subject: Re: PCI fundas Reply with quote

I'm not an expert, so maybe I'm wrong...

Quote:
1. How the PCI Buses are enumerated while booting linux?

This is done by the BIOS before Linux is started. The configuration is
stored in the CMOS RAM and if the configuration is changed by
(un)plugging cards, interrupts, IO/Ranges and memory Ranges are
redistributed.

Quote:
2. How it detects the Vendor ID,Device ID,etc., and make the device
structure for various cards?

Linux uses an API to ask the BIOS.

Quote:
3. What Happens if two or more same cards which are having same DEVICE
ID,VENDOR ID,and
SUB-SYSTEM ID connected to the slots.I mean to say,
Are they having same IRQs,same IRQ_FLAGS(SA_INTERRUPT/SA_SHIRQ)?

No IRQs memory and I/O ranges are distributed according to the request
of the cards (they have a serial flash to that contains the requests
(and DEVICE ID, VENDOR ID) ), separately for each card (addressed as
bus-NR / Card NR).

Quote:
4.In the prev case, Is kernel allocate any different adderss space for
each (same kind of) cards ?

The driver _should_ use the memory and I/O addresses assigned by the
BIOS (though technically it _could_ use something else, but I doubt that
this makes any sense).


-Michael
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 11:00 pm | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  


Problem Mortgage | Loans | Nancy Ajram | Home Loan | Mortgages
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0856s ][ Queries: 11 (0.0192s) ][ GZIP on - Debug on ]