lkml.org 
[lkml]   [2001]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectSlot Number Question
From
Date
My adapter configuration utility needs to instruct the user which physical
adapter needs attention ( when there may be multiple adapters in the system
). My question is : How do I determine the ( machine ) slot number of a
PCI adapter ?

In BIOS and other OS's this may be doneby examining the system's PCI
Routing Tables. I don't think I can get to those from Linux.

PCI Devices are defined by BUS, DEVICE, and FUNCTION. In Linux there
is a function ( defined in pci.h near the end of the file ) called "
PCI_SLOT( devfn ) " but from what I can see this returns what PCI calls
the device. PCI device is not the machine's slot number. This function
even uses the encoded byte which is named devfn ( I assume from PCI
device and PCI function ) , but this function treats it as slot and
function.

Any help is appreciated. Thanks in advance.

Jack L. Hammer
RAID Client/Server Development
IBM Personal Systems Group
(919)-254-8665

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

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.065 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site