Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: Bruno Vidal <bruno_vidal@hpfrcu03.france.hp.com>
Cc: "parisc-linux@lists.parisc-linux.org"
	<parisc-linux@lists.parisc-linux.org>
Subject: Re: [parisc-linux] How retrieving HPA/SPA with the device node
Date: Tue, 2 Apr 2002 15:23:36 +0100	[thread overview]
Message-ID: <20020402152336.D31497@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <3CA9BB50.1FCEBDF4@admin.france.hp.com>; from bruno_vidal@hpfrcu03.france.hp.com on Tue, Apr 02, 2002 at 04:08:16PM +0200

On Tue, Apr 02, 2002 at 04:08:16PM +0200, Bruno Vidal wrote:
> 	Hi all.
> I'm still looking for the HPA/SPA of the SCSI/IDE controler of a disk.
> I've found, and able to write the system tree (like ioscan). The starting
> point is "root". Now my problem is to find which controler for which disk.
> The pointer of the disk (/dev/sd??) is the node. Example:
> /dev/sda2 ->> sda2 -> 0x802 -> major:0x8 -> driver "sd" with minor:0x02
> Now how can I link 0x802 to hardware path "2/0/1"
> So where is the link between both ????? Do you have any idea ?????

Hmm.  If you can get to the pci_dev or parisc_device for a scsi disc,
we have functions for returning the hwpath:

print_pci_hwpath
get_pci_node_path
print_pa_hwpath
get_node_path

I'm not sure how to get from `sda2' to the pci_dev of the controlling device.

-- 
Revolutions do not require corporate support.

  reply	other threads:[~2002-04-02 14:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02 14:08 [parisc-linux] How retrieving HPA/SPA with the device node Bruno Vidal
2002-04-02 14:23 ` Matthew Wilcox [this message]
2002-04-02 14:36   ` Bruno Vidal
2002-04-02 16:44 ` Grant Grundler
2002-04-02 16:50   ` Grant Grundler
2002-04-03  7:00     ` Bruno Vidal
2002-05-17 14:11   ` Bruno Vidal
2002-05-17 15:36     ` Grant Grundler
2002-06-03 11:04   ` Bruno Vidal
2002-06-03 12:26     ` Matthew Wilcox
2002-06-03 20:38     ` Grant Grundler
2002-06-04  7:57       ` Bruno Vidal

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=20020402152336.D31497@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=bruno_vidal@hpfrcu03.france.hp.com \
    --cc=parisc-linux@lists.parisc-linux.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