+ unsigned short pm1_sts = inw(_get_PMBASE() + ICH2_PMBASE_PM1_STS);
+ unsigned short pm1_en = inw(_get_PMBASE() + ICH2_PMBASE_PM1_EN);
+
+ pm1_sts &= pm1_en;
+ if (pm1_sts & ICH2_PM1_STS_RTC_STS)
+ {
+ dolog("Unhandled: PM1_STS: RTC_STS");
+ outw(_get_PMBASE() + ICH2_PMBASE_PM1_STS, ICH2_PM1_STS_RTC_STS);
+ }
+
+ if (pm1_sts & ICH2_PM1_STS_PWRBTN_STS)
+ {
+ dolog("Unhandled: PM1_STS: PWRBTN_STS");
+ outw(_get_PMBASE() + ICH2_PMBASE_PM1_STS, ICH2_PM1_STS_PWRBTN_STS);
+ }
+
+ if (pm1_sts & ICH2_PM1_STS_GBL_STS)
+ {
+ dolog("Unhandled: PM1_STS: GBL_STS");
+ outw(_get_PMBASE() + ICH2_PMBASE_PM1_STS, ICH2_PM1_STS_GBL_STS);
+ }
+
+ if (pm1_sts & ICH2_PM1_STS_TMROF_STS)
+ {
+ dolog("Unhandled: PM1_STS: TMROF_STS");
+ outw(_get_PMBASE() + ICH2_PMBASE_PM1_STS, ICH2_PM1_STS_TMROF_STS);
+ }
+
+ outl(_get_PMBASE() + ICH2_PMBASE_SMI_STS, ICH2_SMI_STS_PM1_STS_REG);