mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Slot Number Question
@ 2001-01-15 19:03 Jack Hammer
  2001-01-15 20:22 ` Richard B. Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Jack Hammer @ 2001-01-15 19:03 UTC (permalink / raw)
  To: linux-kernel

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-16  1:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-15 19:03 Slot Number Question Jack Hammer
2001-01-15 20:22 ` Richard B. Johnson
2001-01-15 23:47   ` Dominik Kubla
2001-01-16  1:15     ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®