From owner-freebsd-acpi@FreeBSD.ORG Mon Jun 28 21:19:24 2010 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id C37F01065672; Mon, 28 Jun 2010 21:19:23 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-acpi@FreeBSD.org Date: Mon, 28 Jun 2010 17:19:08 -0400 User-Agent: KMail/1.6.2 References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006281719.11341.jkim@FreeBSD.org> Cc: Subject: Re: Return (0x00) Invalid object type for reserved name (found INTEGER, requires Buffer) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 21:19:24 -0000 On Monday 28 June 2010 04:27 pm, Sevan / Venture37 wrote: > I'm trying to debug an asl compilation issue, when iasl is invoked > it spits out: > > my.asl 4440: Return (0x00) > Error 4080 - ^ Invalid object type for > reserved name (found INTEGER, requires Buffer) > > Can anyone point me to a fix? > > Regards > > > Sevan / Venture37 > > Name (FWSO, "FWSO") > Scope (\_SB) > { > OperationRegion (WHE0, SystemIO, 0x00001E00, 0x00000002) > Field (WHE0, AnyAcc, NoLock, Preserve) > { > WHEC, 8 > } > > OperationRegion (WHE1, SystemMemory, 0xCFEF4EBD, > 0x00000090) Field (WHE1, AnyAcc, NoLock, Preserve) > { > WCMD, 8, > WDID, 32, > WINF, 1024 > } > > Field (WHE1, AnyAcc, NoLock, Preserve) > { > AccessAs (ByteAcc, 0x00), > Offset (0x05), > INFW, 8 > } > > Method (_OSC, 4, NotSerialized) > { > If (LEqual (Arg0, Buffer (0x10) > { > /* 0000 */ 0x0C, 0x5E, 0x85, 0xED, 0x90, > 0x6C, 0xBF, 0x47, > /* 0008 */ 0xA6, 0x2A, 0x26, 0xDE, 0x0F, > 0xC5, 0xAD, 0x5C > })) > { > CreateDWordField (Arg3, 0x00, CDW1) > CreateDWordField (Arg3, 0x04, CDW2) > CreateDWordField (Arg3, 0x08, CDW3) > If (And (CDW2, 0x01)) > { > Store (0xEA, WCMD) > Store (0x03, WDID) > Store (Zero, WHEC) > Return (Arg3) > } > } > > Return (0x00) > } > } It has to return Arg3 with some bits set to indicate failures. Please see ACPI Spec. 6.2.10 (on page 225). http://www.acpi.info/spec.htm ASL example in the spec. is pretty thorough. Jung-uk Kim