From owner-acpi-jp@jp.freebsd.org  Fri Oct 13 16:56:02 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id QAA19022;
	Fri, 13 Oct 2000 16:56:02 +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 QAA19016
	for <acpi-jp@jp.freebsd.org>; Fri, 13 Oct 2000 16:56:02 +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 QAA89947
	for <acpi-jp@jp.freebsd.org>; Fri, 13 Oct 2000 16:54:28 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Message-Id: <200010130754.QAA89947@shidahara1.planet.sci.kobe-u.ac.jp>
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Thu, 12 Oct 2000 12:57:01 MST."
             <200010121957.e9CJv1h01012@mass.osd.bsdi.com>
Date: Fri, 13 Oct 2000 16:54:28 +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 870
Subject: [acpi-jp 870] Re: Latest ACPI megapatch update 
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

In message <200010121957.e9CJv1h01012@mass.osd.bsdi.com>, Mike Smith $B$5$s$$$o$/(B
:
>> I noticed you only calls acpi_parse_resources() for those connected to 
>> acpi0 at acpi_get_resource(). But where do you think bus_get_resource();
>> is called from?
>
>It should be called from bus_alloc_resource() in acpi_ec_attach().  I may 
>not have this entirely right yet though; I'll look at it today now that 
>the PCI stuff seems to be working OK.

I think,

bus_alloc_resource-> BUS_ALLOC_RESOURCE -> acpi_alloc_resource 
-> resource_list_alloc ->( resource_list_alloc assumes 
struct resource_list is already allocated...)

Isn't it?

I believe bus_get_resource is for static configuration support.
It is used when we want to check the sanity without allocating resource
in probe routines(if bus_alloc_resource is called with no default mode,
most bus code will not record it ), as long as I look 'sio.c' and
 some other files.

http://current.jp.FreeBSD.org/tour/current/cgi-bin/global.cgi?pattern=bus_get_resource&type=reference


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 
