new file mode 100644
@@ -0,0 +1,32 @@
+/*
+ * Power state values
+ *
+ * These defines are used by subsystems that are not necessarily
+ * tied in to using ACPI.
+ */
+#define ACPI_STATE_UNKNOWN (u8) 0xFF
+
+#define ACPI_STATE_S0 (u8) 0
+#define ACPI_STATE_S1 (u8) 1
+#define ACPI_STATE_S2 (u8) 2
+#define ACPI_STATE_S3 (u8) 3
+#define ACPI_STATE_S4 (u8) 4
+#define ACPI_STATE_S5 (u8) 5
+#define ACPI_S_STATES_MAX ACPI_STATE_S5
+#define ACPI_S_STATE_COUNT 6
+
+#define ACPI_STATE_D0 (u8) 0
+#define ACPI_STATE_D1 (u8) 1
+#define ACPI_STATE_D2 (u8) 2
+#define ACPI_STATE_D3_HOT (u8) 3
+#define ACPI_STATE_D3 (u8) 4
+#define ACPI_STATE_D3_COLD ACPI_STATE_D3
+#define ACPI_D_STATES_MAX ACPI_STATE_D3
+#define ACPI_D_STATE_COUNT 5
+
+#define ACPI_STATE_C0 (u8) 0
+#define ACPI_STATE_C1 (u8) 1
+#define ACPI_STATE_C2 (u8) 2
+#define ACPI_STATE_C3 (u8) 3
+#define ACPI_C_STATES_MAX ACPI_STATE_C3
+#define ACPI_C_STATE_COUNT 4
@@ -44,6 +44,8 @@
#ifndef __ACTYPES_H__
#define __ACTYPES_H__
+#include "acstates.h"
+
/* acpisrc:struct_defs -- for acpisrc conversion */
/*
@@ -487,36 +489,6 @@ typedef u64 acpi_integer;
#define ACPI_INITIALIZED_OK 0x02
/*
- * Power state values
- */
-#define ACPI_STATE_UNKNOWN (u8) 0xFF
-
-#define ACPI_STATE_S0 (u8) 0
-#define ACPI_STATE_S1 (u8) 1
-#define ACPI_STATE_S2 (u8) 2
-#define ACPI_STATE_S3 (u8) 3
-#define ACPI_STATE_S4 (u8) 4
-#define ACPI_STATE_S5 (u8) 5
-#define ACPI_S_STATES_MAX ACPI_STATE_S5
-#define ACPI_S_STATE_COUNT 6
-
-#define ACPI_STATE_D0 (u8) 0
-#define ACPI_STATE_D1 (u8) 1
-#define ACPI_STATE_D2 (u8) 2
-#define ACPI_STATE_D3_HOT (u8) 3
-#define ACPI_STATE_D3 (u8) 4
-#define ACPI_STATE_D3_COLD ACPI_STATE_D3
-#define ACPI_D_STATES_MAX ACPI_STATE_D3
-#define ACPI_D_STATE_COUNT 5
-
-#define ACPI_STATE_C0 (u8) 0
-#define ACPI_STATE_C1 (u8) 1
-#define ACPI_STATE_C2 (u8) 2
-#define ACPI_STATE_C3 (u8) 3
-#define ACPI_C_STATES_MAX ACPI_STATE_C3
-#define ACPI_C_STATE_COUNT 4
-
-/*
* Sleep type invalid value
*/
#define ACPI_SLEEP_TYPE_MAX 0x7