From owner-freebsd-current Fri Nov 22 8:46:44 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D9FA37B401 for ; Fri, 22 Nov 2002 08:46:41 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAD6B43EA9 for ; Fri, 22 Nov 2002 08:46:40 -0800 (PST) (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 ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 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: 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: Date: Fri, 22 Nov 2002 11:44:35 -0500 (EST) From: John Baldwin To: Nate Lawson Subject: Re: recommended VAIO for ACPI hacking (Re: cvs commit: www/en/re Cc: acpi-jp@jp.freebsd.org, current@freebsd.org, Mitsuru IWASAKI Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 >> >> >> >> -=-=-=- >> 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 <>< 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