From owner-acpi-jp@jp.FreeBSD.org Sat Nov 23 01:46:43 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id gAMGkhc93689;
	Sat, 23 Nov 2002 01:46:43 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id gAMGkd293481
	for <acpi-jp@jp.freebsd.org>; Sat, 23 Nov 2002 01:46:39 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: (qmail 22543 invoked from network); 22 Nov 2002 16:44:36 -0000
Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63])
          (envelope-sender <jhb@FreeBSD.org>)
          by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <iwasaki@jp.FreeBSD.org>; 22 Nov 2002 16:44:36 -0000
Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1])
	by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gAMGiV2D042889;
	Fri, 22 Nov 2002 11:44:31 -0500 (EST)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.20021122114435.jhb@FreeBSD.org>
X-Mailer: XFMail 1.5.2 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <Pine.BSF.4.21.0211211616590.69305-100000@root.org>
From: John Baldwin <jhb@freebsd.org>
To: Nate Lawson <nate@root.org>
Cc: acpi-jp@jp.FreeBSD.org, current@freebsd.org,
   Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 22 Nov 2002 11:44:35 -0500
X-Sequence: acpi-jp 1973
Subject: [acpi-jp 1973] Re: recommended VAIO for ACPI hacking (Re: cvs commit: www/en/re
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: jhb@FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+021111


On 22-Nov-2002 Nate Lawson wrote:
> On Fri, 22 Nov 2002, Ollivier Robert wrote:
>> According to Mitsuru IWASAKI:
>> > Thanks.
>> 
>> Here is the result. The first check is there and there are several others
>> in acpidump output. Full dump at
>> 
>> <http://www.keltia.net/download/acpidump-z600tek>
>> 
>> -=-=-=-
>> Method(_PTS, 1) {
>>     If(LNot(LLess(Arg0, 0x2))) {
>>         Store(0x1, \_SB_.PCI0.CRST)
>>     }
>>     Else {
>>         Store(0x0, \_SB_.PCI0.CRST)
>>     }
>>     If(LEqual(Arg0, 0x4)) {
>>         Store(\_SB_.PCI0.ISA_.SPIC._CRS(), \_SB_.PCI0.ISA_.SPIC.SSRC)
>>         If(LEqual(SCMP(\_OS_, "Microsoft Windows NT"), Zero)) {
>>             PHS_(0xe3)
>>             PHS_(0xe5)
>>         }
>>         Else {
>>             If(LNot(LEqual(SCMP(\_OS_, "Microsoft Windows"), Zero))) {
>>                 PHS_(0xe3)
>>                 PHS_(0xe5)
>>             }
>>         }
>>     }
>>     Return(0x0)
>> }

This first one is fine as the second case is for non-Windows systems.

> I also have similar problems in my ASL from the IBM T23.
> http://www.root.org/~nate/acpi/ibm.asl
> 
> Scope(\_SB_) {
>     Method(_INI) {
>         If(LEqual(\SCMP(\_OS_, "Microsoft Windows"), Zero)) {
>             Store(0x1, \W98F)
>         }
>         Else {
>             If(CondRefOf(_OSI, Local0)) {
>                 If(\_OSI) {
>                     "Windows 2001"
>                     Store(0x2, \WNTF)
>                 }
>             }
>             Else {
>                 If(LEqual(\SCMP(\_OS_, "Microsoft Windows NT"), Zero)) {
>                     Store(0x1, \WNTF)
>                 }
>                 Else {
>                     If(LEqual(\SCMP(\_OS_, "Microsoft WindowsME: Millennium Edition"), Zero)) {
>                         Store(0x1, \WMEF)
>                         Store(0x1, \W98F)
>                     }
>                 }
>             }
>         }
>         If(LNot(LLess(\_REV, 0x2))) {
>             Store(0x1, \H8DR)
>         }
>         Store(0x1, \OSIF)
>     }
> 
> -Nate

Well, it would depend on how the \W98F, \WNTF, and \WMEF values are
used in the actual AML.  If the cases where all of these flags are
zero are handled, then this is ok.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
