From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Deterimining EFI device number within Linux?
Date: Wed, 28 Mar 2001 17:12:05 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005363@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005359@msgid-missing>
>>>>> On Tue, 27 Mar 2001 17:18:50 -0600, Matt_Domsch@Dell.com said:
Matt> Does anyone know how to determine the EFI Device Number (such
Matt> as 0x80) for a disk known as /dev/sda, under Linux (ideally
Matt> from user-space, but I'd take a kernel-space trick too)?
Matt> There's an equivalent problem in IA-32 which has no known
Matt> solution. I'm hoping there is for EFI<->Linux.
I imagine you'd have to determine the hardware path to do so. I'm not
sure of the format used by EFI (I think it follows some standard, but
I'm not familiar with the details), but I'd expect that you'd need to
know the SCSI id, PCI bus, slot & function number of the controller,
the sequence of PCI bridges from the CPU to the device, etc. Linux
has all this information in one place or another (ioctl(), /proc/pci,
etc.), but it probably won't be pretty.
--david
next prev parent reply other threads:[~2001-03-28 17:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-27 23:18 [Linux-ia64] Deterimining EFI device number within Linux? Matt_Domsch
2001-03-27 23:18 ` Matt_Domsch
2001-03-28 17:12 ` David Mosberger [this message]
2001-03-28 17:59 ` Stephane Eranian
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=marc-linux-ia64-105590693005363@msgid-missing \
--to=davidm@hpl.hp.com \
--cc=linux-ia64@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