APM Patch - review

Grover, Andrew andrew.grover at intel.com
Tue May 25 15:46:30 PDT 2004


Valid values for remaining battery life are 0xFF, and 0-100.

-1, 255 and 0xFF are the SAME when looking at an 8 bit value. Since this
8 bit value was sign-extended to 32 bits to go into ai_batt_time, if it
was 0xFF, it is now 0xFFFFFFFF, and you will never see 0x000000FF.

I will email you the APM spec privately (it's big). Please take a look
at page 42 especially.

Regards -- Andy



More information about the freebsd-acpi mailing list