Linux-kernel mailing list archive 1999-41,: RE: PCI question

# RE: PCI question

Bret Indrelee (bindrelee@sbs-cp.com)
Fri, 15 Oct 1999 13:26:21 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Manfred Spraul: "Re: [PATCH] kanoj-mm17-2.3.21 kswapd vma scanning protection"
- Previous message: Martin Dalecki: "Re: PCI question"

Marcin Dalecki [mailto:dalecki@dacotec.net] wrote:
> Bret Indrelee wrote:
> > Marcin Dalecki [mailto:dalecki@dacotec.net] asked:
> > > Anybody out there with an idea where to get the information
> > > about the PCI slot numbers of the currently present devices
> > > inside the system (in esp the two ether cards?).
> >
> > cat /proc/pci
> >
> > It gives bus, device, and function numbers.
> >
> > If instead you are wondering how to do it from kernel code, look in
> > /usr/src/linux/Documenation/pci.txt
> > for the documentation.
>
> Nahh. What I'm interrested in are the actual physical SLOTS
> (aka A B C D) of the device.

All you can get is bus/device. These are unique to a particular slot.

There is no way for software to know in a generic way how this may match up
to the labelling on the case or motherboard. This tends to be extremely
system specific, and the software never deals with PCI bus that way.

-Bret

-------------------------------------------------------------
SBS Technologies, Connectivity Products
... solutions for real-time connectivity

Bret Indrelee, Engineer
SBS Technologies, Inc., Connectivity Products
1284 Corporate Center Drive, St. Paul MN 55121
Direct: (651) 905-4731
Main: (651) 905-4700 Fax: (651) 905-4701
E-mail: bindrelee@sbs-cp.com http://www.sbs.com
-------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Manfred Spraul: "Re: [PATCH] kanoj-mm17-2.3.21 kswapd vma scanning protection"
- Previous message: Martin Dalecki: "Re: PCI question"