ACPICA: Add support for WDDT - Watchdog Descriptor Table
authorBob Moore <robert.moore@intel.com>
Tue, 6 Jul 2010 01:58:11 +0000 (09:58 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 7 Jul 2010 02:34:27 +0000 (22:34 -0400)
Header file support.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
include/acpi/actbl2.h

index 0a600b8e53f4c9e3326740fda92a34e61b3d8f2d..d4136b28011fd692c4ffb45c78adcc8170e20a4b 100644 (file)
@@ -77,6 +77,7 @@
 #define ACPI_SIG_UEFI           "UEFI" /* Uefi Boot Optimization Table */
 #define ACPI_SIG_WAET           "WAET" /* Windows ACPI Emulated devices Table */
 #define ACPI_SIG_WDAT           "WDAT" /* Watchdog Action Table */
+#define ACPI_SIG_WDDT           "WDDT" /* Watchdog Timer Description Table */
 #define ACPI_SIG_WDRT           "WDRT" /* Watchdog Resource Table */
 
 #ifdef ACPI_UNDEFINED_TABLES
@@ -916,6 +917,44 @@ enum acpi_wdat_instructions {
        ACPI_WDAT_PRESERVE_REGISTER = 0x80      /* Except for this value */
 };
 
+/*******************************************************************************
+ *
+ * WDDT - Watchdog Descriptor Table
+ *        Version 1
+ *
+ * Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)",
+ * Version 001, September 2002
+ *
+ ******************************************************************************/
+
+struct acpi_table_wddt {
+       struct acpi_table_header header;        /* Common ACPI table header */
+       u16 spec_version;
+       u16 table_version;
+       u16 pci_vendor_id;
+       struct acpi_generic_address address;
+       u16 max_count;          /* Maximum counter value supported */
+       u16 min_count;          /* Minimum counter value supported */
+       u16 period;
+       u16 status;
+       u16 capability;
+};
+
+/* Flags for Status field above */
+
+#define ACPI_WDDT_AVAILABLE     (1)
+#define ACPI_WDDT_ACTIVE        (1<<1)
+#define ACPI_WDDT_TCO_OS_OWNED  (1<<2)
+#define ACPI_WDDT_USER_RESET    (1<<11)
+#define ACPI_WDDT_WDT_RESET     (1<<12)
+#define ACPI_WDDT_POWER_FAIL    (1<<13)
+#define ACPI_WDDT_UNKNOWN_RESET (1<<14)
+
+/* Flags for Capability field above */
+
+#define ACPI_WDDT_AUTO_RESET    (1)
+#define ACPI_WDDT_ALERT_SUPPORT (1<<1)
+
 /*******************************************************************************
  *
  * WDRT - Watchdog Resource Table