[parisc-linux] How retrieving HPA/SPA with the device node

Bruno Vidal bruno_vidal@hpfrcu03.france.hp.com
Tue, 02 Apr 2002 16:08:16 +0200


This is a multi-part message in MIME format.
--------------9795208170F1B06BC80E7099
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

	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 ?????

	Thanks.

-- 
	Vidal Bruno, (770-4271)
        SSD-HA Team, HP-UX & LINUX Support
	bruno_vidal@admin.france.hp.com
--------------9795208170F1B06BC80E7099
Content-Type: text/x-vcard; charset=iso-8859-1;
 name="bruno_vidal.vcf"
Content-Transfer-Encoding: base64
Content-Description: Card for Bruno Vidal
Content-Disposition: attachment;
 filename="bruno_vidal.vcf"

YmVnaW46dmNhcmQgCm46QnJ1bm87VklEQUwKdGVsO2ZheDowMS02OS04Mi02MC0xNAp0ZWw7
d29yazowMS02OS0yOS00Mi03MQp4LW1vemlsbGEtaHRtbDpUUlVFCnVybDp3d3cuZnJhbmNl
LmhwLmNvbQpvcmc6U29sdXRpb24gQ2VudGVyCnZlcnNpb246Mi4xCmVtYWlsO2ludGVybmV0
OmJydW5vX3ZpZGFsQGhwLmNvbQp0aXRsZTpFeHBlcnQgTG9naWNpZWwgRW52aXJvbm5lbWVu
dCBIYXV0ZSBEaXNwb25pYmlsaXTpCmFkcjtxdW90ZWQtcHJpbnRhYmxlOjs7SFAgRnJhbmNl
PTBEPTBBO1ouQSBkZSBDb3VydGFib2V1ZjsxIEF2LiBkdSBDYW5hZGE7OTE5NDcgTGVzIFVs
aXMgY2VkZXg7RnJhbmNlCngtbW96aWxsYS1jcHQ6OzI2MjA4CmZuOlZJREFMIEJydW5vCmVu
ZDp2Y2FyZAo=
--------------9795208170F1B06BC80E7099--