Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2002 11:44:35 -0500 (EST)
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>
Subject:   Re: recommended VAIO for ACPI hacking (Re: cvs commit: www/en/re
Message-ID:  <XFMail.20021122114435.jhb@FreeBSD.org>
In-Reply-To: <Pine.BSF.4.21.0211211616590.69305-100000@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021122114435.jhb>