|
|
|
|
|
|
| Author |
Message |
linux_boy *nix forums beginner
Joined: 08 Sep 2005
Posts: 8
|
Posted: Mon Jul 17, 2006 7:04 am Post subject:
PCI fundas
|
|
|
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
|
Posted: Mon Jul 17, 2006 9:15 pm Post subject:
Re: PCI fundas
|
|
|
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 |
|
 |
|
|
The time now is Mon Dec 01, 2008 11:00 pm | All times are GMT
|
|
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
|
|