Hi everyone,
I am quite new to ASL programming and i have a question regarding ACPI which i need some help on.
Currently, i am using PheonixBIOS and i have created a CMOS item using CREATE_BITFIELD macro (pls see below).
CREATE_BITFIELD cmosTouch, 1, HAMPSHIRE, HAMPSHIRE, CHKSUM
I would like to read back this CMOS value inside ACPI (pls see code below) but i cannot seems to do it.
Method(_STA)
{
OperationRegion(TOCN, CMOS, 0x11F, 1)
Field(TOCN, ByteAcc, NoLock, Preserve)
{
CONT, 8
}
Store(CONT, local0)
And(Local0, 0x80,local1)
if(LEqual(Local1, 0x80)) {
Store(1, Local0)
Return(Local0)
else
Store(0,Local0)
Return(Local0)
)
I cannot seem to read back the CMOS value. Can anyone advise me if i have written the code correctly. Thanks
