From: "Jack Hammer" <jhammer@us.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: Slot Number Question
Date: Mon, 15 Jan 2001 14:03:25 -0500 [thread overview]
Message-ID: <OF164CE1E4.54391C01-ON852569D5.0067049B@raleigh.ibm.com> (raw)
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/
next reply other threads:[~2001-01-15 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-15 19:03 Jack Hammer [this message]
2001-01-15 20:22 ` Richard B. Johnson
2001-01-15 23:47 ` Dominik Kubla
2001-01-16 1:15 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OF164CE1E4.54391C01-ON852569D5.0067049B@raleigh.ibm.com \
--to=jhammer@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®