SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows XP
User Name
Password


Reading from CMOS

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 12-20-2005, 02:44 AM
kiddo_23 Offline
Registered User
 
Join Date: Dec 2005
Posts: 1
Reading from CMOS

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
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMOS Settings wrong bookworm Hardware Problems 3 12-19-2007 07:37 AM
ACPI Errors jfactor01 Windows XP 9 12-23-2006 09:00 AM
Low Cmos Battery gideonkelvins Hardware Problems 1 05-21-2005 10:15 PM
CMOS Checksum Error - Defaults Loaded strobo Hardware Problems 4 04-25-2005 09:50 PM
CMOS checksum error skoundrel Windows XP 1 09-17-2004 01:57 PM



All times are GMT -5. The time now is 03:09 AM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.