Author: attilio
Date: Thu Apr 21 14:39:33 2011
New Revision: 220925
URL: http://svn.freebsd.org/changeset/base/220925

Log:
  Add some more bit definitions:
  - TCO_MESSAGEx: TCO specific regs providing the ability to monitor BIOS
    bootup activity.
  - TCO_NEWCENTURY: reporting RTC year roll over.
  - TCO_NMI2SMI_EN, TCO_NMI_NOW: controlling SMIs conversion to NMIs and
    NMI trigger.
  - SMI_GBL_EN: Enabling SMI delivery for all the northbridge controller.
  
  MFC after:    10 days

Modified:
  head/sys/dev/ichwd/ichwd.h

Modified: head/sys/dev/ichwd/ichwd.h
==============================================================================
--- head/sys/dev/ichwd/ichwd.h  Thu Apr 21 14:17:36 2011        (r220924)
+++ head/sys/dev/ichwd/ichwd.h  Thu Apr 21 14:39:33 2011        (r220925)
@@ -181,15 +181,19 @@ struct ichwd_softc {
 #define TCO2_STS               0x06 /* TCO Status 2 */
 #define TCO1_CNT               0x08 /* TCO Control 1 */
 #define TCO2_CNT               0x08 /* TCO Control 2 */
+#define TCO_MESSAGE1           0x0c /* TCO Message 1 */
+#define TCO_MESSAGE2           0x0d /* TCO Message 2 */
 
 /* bit definitions for SMI_EN and SMI_STS */
 #define SMI_TCO_EN             0x2000
 #define SMI_TCO_STS            0x2000
+#define SMI_GBL_EN             0x0001
 
 /* timer value mask for TCO_RLD and TCO_TMR */
 #define TCO_TIMER_MASK         0x1f
 
 /* status bits for TCO1_STS */
+#define TCO_NEWCENTURY         0x80 /* set for RTC year roll over (99 to 00) */
 #define TCO_TIMEOUT            0x08 /* timed out */
 #define TCO_INT_STS            0x04 /* data out (DO NOT USE) */
 #define TCO_SMI_STS            0x02 /* data in (DO NOT USE) */
@@ -199,8 +203,10 @@ struct ichwd_softc {
 #define TCO_SECOND_TO_STS      0x02 /* ran down twice */
 
 /* control bits for TCO1_CNT */
-#define TCO_TMR_HALT           0x0800 /* clear to enable WDT */
-#define TCO_CNT_PRESERVE       0x0200 /* preserve these bits */
+#define TCO_TMR_HALT           0x0800          /* clear to enable WDT */
+#define TCO_NMI2SMI_EN         0x0200          /* convert NMIs to SMIs */
+#define TCO_CNT_PRESERVE       TCO_NMI2SMI_EN  /* preserve these bits */
+#define TCO_NMI_NOW            0x0100          /* trigger an NMI */
 
 /*
  * Masks for the TCO timer value field in TCO_RLD.
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to