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 <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to