Need info about ACPI - implementing acer_acpi, amilo 1650g

Nate Lawson nate at root.org
Tue Jan 29 11:17:30 PST 2008


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


More information about the freebsd-acpi mailing list