From owner-acpi-jp@jp.freebsd.org  Tue Jan 30 11:56:40 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id LAA25000;
	Tue, 30 Jan 2001 11:56:40 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id LAA24995
	for <acpi-jp@jp.freebsd.org>; Tue, 30 Jan 2001 11:56:40 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1])
	by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id LAA14543;
	Tue, 30 Jan 2001 11:58:17 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Message-Id: <200101300258.LAA14543@shidahara1.planet.sci.kobe-u.ac.jp>
To: andrew.grover@intel.com
cc: acpi-jp@jp.freebsd.org
Date: Tue, 30 Jan 2001 11:58:17 +0900
From: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1041
Subject: [acpi-jp 1041] AcpiGetIrqRoutingTable API problem.
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: takawata@shidahara1.planet.sci.kobe-u.ac.jp

Hi, 

I found a problem related to AcpiGetIrqRoutingTable API.
In many machine, the 3rd Subelement of _PRT package element is not 
string but *name string*, represented as object reference internally.

To solve this, there is two ways.
1. Translate INTERNAL_REFERENCE to string by calling AcpiNsHandleToPathname.

2. Translate String to Reference and Change PRT_ENTRY structure Source
element from NATIVE_CHAR array to ACPI_HANDLE and ,if reference,
store Node element of the Reference to Source element of result.


I prefer 2. because this will simplify data structure and , as far as 
I know, most of the element is *name string* not *string*.

Takanori Watanabe
<a href="http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html">
Public Key</a>
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 

