patch-2.3.40 linux/include/linux/acpi.h

Next file: linux/include/linux/blkdev.h
Previous file: linux/include/asm-sparc64/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/include/linux/acpi.h linux/include/linux/acpi.h
@@ -356,6 +356,8 @@
 	ACPI_GPE_LEVEL,
 	ACPI_EVENT,
 	ACPI_P_BLK,
+	ACPI_ENTER_LVL2_LAT,
+	ACPI_ENTER_LVL3_LAT,
 	ACPI_P_LVL2_LAT,
 	ACPI_P_LVL3_LAT,
 	ACPI_S0_SLP_TYP,
@@ -400,5 +402,33 @@
 
 #define ACPI_PIIX4_PMREGMISC	0x80
 #define	  ACPI_PIIX4_PMIOSE	0x01
+
+/*
+ * VIA-specific ACPI info (for systems with VT82C586B but no ACPI tables)
+ */
+
+#define ACPI_VIA_INT_MODEL     0x00
+
+#define ACPI_VIA_SMI_CMD       0x002f
+#define ACPI_VIA_ACPI_ENABLE   0xa1
+#define ACPI_VIA_ACPI_DISABLE  0xa0
+
+#define ACPI_VIA_PM1_EVT       0x0000
+#define ACPI_VIA_PM1_CNT       0x0004
+#define ACPI_VIA_PM_TMR	       0x0008
+#define ACPI_VIA_GPE0	       0x0020
+#define ACPI_VIA_P_BLK	       0x0010
+
+#define ACPI_VIA_PM1_EVT_LEN   0x04
+#define ACPI_VIA_PM1_CNT_LEN   0x02
+#define ACPI_VIA_PM_TM_LEN     0x04
+#define ACPI_VIA_GPE0_LEN      0x04
+
+#define ACPI_VIA_DUTY_OFFSET   1
+#define ACPI_VIA_DUTY_WIDTH    3
+
+#define ACPI_VIA_DAY_ALARM     0x7d
+#define ACPI_VIA_MON_ALARM     0x7e
+#define ACPI_VIA_CENTURY       0x7f
 
 #endif /* _LINUX_ACPI_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)