From owner-acpi-jp@jp.freebsd.org  Fri Mar 17 05:31:03 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id FAA94261;
	Fri, 17 Mar 2000 05:31:03 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (daemon@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id FAA94256
	for <acpi-jp@jp.freebsd.org>; Fri, 17 Mar 2000 05:31:02 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (isdnb51.imasy.or.jp [202.227.24.179])
	by tasogare.imasy.or.jp (8.9.3+3.2W/3.7W-tasogare/smtpfeed 1.01) with ESMTP id FAA28463;
	Fri, 17 Mar 2000 05:30:57 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Message-Id: <200003162030.FAA28463@tasogare.imasy.or.jp>
To: acpi-jp@jp.freebsd.org
Cc: bsd-nomads@clave.gr.jp
In-Reply-To: Your message of "Fri, 17 Mar 2000 03:58:55 +0900"
	<20000317035855J.funa@funa.org>
References: <20000317035855J.funa@funa.org>
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Fri, 17 Mar 2000 05:30:56 +0900
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
X-Dispatcher: imput version 980905(IM100)
Lines: 111
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 275
Subject: [acpi-jp 275] Re: fxp0 on Z505NR (suspend -> resume)
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

$B$$$o$5$-$G$9(B

$B?gL2Cf$J$N$G<jC;$K(B...

funa> # ACPI $B$NOCBj$b4^$^$l$F$$$k$N$G(B acpi-jp $B$KAw$C$?J}$,$$$$$N$G$7$g$&$+(B.

# Reply-To: acpi-jp@jp.freebsd.org $B$K$7$^$7$?!#(B

funa> $B$=$3$G(B http://home.jp.FreeBSD.ORG/cgi-bin/showmail/acpi-jp/40 $B$r(B
funa> $B;29M$K$7$F(B Z505NR $B$N(B DSDT $B$H(B ASL $B$r<h$C$F$_$^$7$?(B.

$B$<$RAw$C$F$/$@$5$$$^$;(B :-)

funa>             Method(_PRW) {
funa>                 If(LEqual(SCMP, \_OS)) {
funa>                     "Microsoft Windows"
funa>                     Zero

# $B$&!<!"(BThinkPad $B7O$@$1$+$H;W$C$?$i:G6a$N(B VAIO $B$N(B BIOS $B$b(B
# Windoze$B7O(BOS$B$7$+A[Dj$7$F$$$J$$46$8(B...

funa> $B$7$+$7(B, ASL $B$N9T$J$C$F$$$k$3$H$,$5$C$Q$j$o$+$i$:(B,
funa> $B6qBNE*$K%3!<%I$K$9$k$3$H$,=PMh$:(B,$B<j5M$j$H$J$C$F$7$^$$$^$7$?(B.

$B$=$&$$$&>l9g$O!"(BACPI/util/acpiconf/ $B$G(B make $B$7$F(B AML $B%$%s%?%W%j%?$N(B
$B%G%P%C%,$G(B DSDT $B$r2r<a$5$;$F$_$k$H2?$r$7$?$i$$$$$+!"(Bhardware spec $B$,L5$/$F$b(B
$B$J$s$H$J$/$o$+$k$G$9!#(BZ505D.dsdt.dat $B$rNc$K%G%P%C%,$r<B9T$5$;$?Nc$G$9!#(B
$BBP>]$N%a%=%C%I$O(B _SB.PCI0.ETHR._PS0 $B$H$7$^$9!#(B

% ./acpiconf -f Z505D.dsdt.dat
	:
      _TSP  Num:0x64
AML>h
s       Single step
n       Step program
c       Continue program being debugged
q       Quit method execution
t       Show local name space tree and variables
i       Toggle region input prompt
o       Toggle region output prompt
m       Show memory management statistics
r       Run specified method
h       Show this messsage
AML>r _SB.PCI0.ETHR._PS0
Method: Arg 0 From 0x280ef21d To 0x280ef23a
==== Running _SB.PCI0.ETHR._PS0. ====
AML>s
[\_SB.PCI0.ETHR._PS0. START]
Store(0x0, Z000)[write(From2, 0x0, 0xe0)]
[acpi_region_write(2, 3, 0x0, 0x0, 0x700, 0x10)]
        [2:0x00@0xe0]->[2:0x00@0xe0]
        [2:0x00@0xe1]->[2:0x00@0xe1]

AML>
Store(0x0, _PSC)[Store number 0x0]
AML>
Store(0x17, ET04)[write(From2, 0x17, 0x4)]
[acpi_region_write(2, 3, 0x17, 0x0, 0x20, 0x8)]
        [2:0x00@0x4]->[2:0x17@0x4]

AML>
Store(0x4208, ET0C)[write(From2, 0x4208, 0xc)]
[acpi_region_write(2, 3, 0x4208, 0x0, 0x60, 0x10)]
        [2:0x00@0xc]->[2:0x08@0xc]
        [2:0x00@0xd]->[2:0x42@0xd]

AML>s
[\_SB.PCI0.ETHR._PS0. END]
_PS0  Method: Arg 0 From 0x280ef21d To 0x280ef23a
NO object
==== _SB.PCI0.ETHR._PS0 finished. ====
AML>

$B$H$$$&$o$1$GNc$($P!"(BStore(0x4208, ET0C) $B$N>l9g$O(B [write(From2, 0x4208, 0xc)]
$B$H$+$K$J$C$F$$$k$N$G!"(Bpci_cfgwrite(config_id, 0xc, 0x4208, 2) $B$0$i$$(B?
$B$3$&$$$&=hM}$r(B resume $B;~$K$d$k$s$@$H;W$$$^$9!#(B
# $B$A$J$_$K(B ET0C $B$O(B flash control$B!"(BET04 $B$O(B scb_general $B$i$7$$$G$9(B (if_fxpreg.h $B$h$j(B)
_PSC $B$K4X$9$k=hM}$O$3$N>l9g!"L5;k$7$F$$$$$H;W$$$^$9!#(B
$B:G6a3+H/:n6HCfCG$7$F$+$i5W$7$$$N$G4V0c$C$F$k$+$b$7$l$^$;$s(B (^^;

funa> $B$I$J$?$+(B Z505NR $B$G(B fxp0 $B$r(B resume $B8e$K$b;H$($F$$$kJ}$O(B
funa> $B$$$i$C$7$c$$$^$;$s$G$7$g$&$+(B.
funa> 
funa> $B$^$?(B,$B!V(B_PS0 $B$N=hM}$O$3$N$h$&$K$J$C$F$$$k!WEy$N>pJs$r65$($F$$$?$@$1$l$P(B
funa> $B$&$l$7$$$G$9(B.

$B@'Hs!"3+H/$K;22C$7$F$/$@$5$$(B!
$B$^$:$O!"(Bhttp://www.teleport.com/~acpi/spec.htm $B$+$i(B Spec $B$r;}$C$F$-$F(B
7.2 Device Power Management Objects $B$"$?$j$+$iFI$`$H$$$$$H;W$$$^$9!#(B

_PS0 Control method that puts the device in the D0 device state (device fully on).
_PS1 Control method that puts the device in the D1 device state.
_PS2 Control method that puts the device in the D2 device state.
_PS3 Control method that puts the device in the D3 device state (device off).

$B$H$+(B

7.3.4 _PS0
This Control Method is used to put the specific device into its D0
state. This Control Method can only access Operation Regions that are
either always available while in a system working state or that are
available when the Power Resources references by the _PR0 object are
all ON.
Arguments:
	None
Result code:
	None

$B$H$+!"$$$m$$$m=q$$$F$"$j$^(B ...zzz....zzz


