Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2008 11:17:24 -0800
From:      Nate Lawson <nate@root.org>
To:        =?ISO-8859-2?Q?Artur_Ba=E6?= <artur@ebasoft.com.pl>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: Need info about ACPI - implementing acer_acpi, amilo 1650g
Message-ID:  <479F7BC4.9000004@root.org>
In-Reply-To: <200801291940.05952.artur@ebasoft.com.pl>
References:  <200801291205.m0TC5gQP052493@sana.init-main.com> <200801291940.05952.artur@ebasoft.com.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Artur Bać wrote:
> Tuesday 29 of January 2008 13:05:42 Takanori Watanabe napisał(a):
>> I have another laptop PC with ACPI WMI device, and try to implement
>> some namespace detection. But leave untouched so long because
>> I could not find how to make them do  useful thing.
>>
>> http://www.init-main.com/a2000/acpi_wmi.c
> 
> One thing that is suspicious in Your code
> 
> 	if(AcpiEvaluateObject(devh, "_WDG", NULL, &wdg_buf)){
> 		device_printf(dev, "Cannot Fetch _WDG");
> 		return ENXIO;
> 	}
> 
> 
> Evaluate is aimed at calling methods As I understand interface, I didn't find 
> any other info for now.
> 
> in my DSDT _WDG is a buffer not method...

"Evaluate" means to run the method and return the value OR return the 
contents of the object if it is not a function.  In your case, Evaluate 
will return an ACPI_BUFFER object.  You can see code for dealing with 
that in many drivers, for instance sys/dev/acpica/acpi_perf.c

-- 
Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?479F7BC4.9000004>