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

Next file: linux/include/linux/agp_backend.h
Previous file: linux/include/linux/ac97_codec.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/include/linux/acpi.h linux/include/linux/acpi.h
@@ -28,20 +28,24 @@
 #include <linux/wait.h>
 #endif /* __KERNEL__ */
 
-typedef int acpi_sstate_t;
-
 /*
  * Device states
  */
-enum
-{
+typedef enum {
 	ACPI_D0, /* fully-on */
 	ACPI_D1, /* partial-on */
 	ACPI_D2, /* partial-on */
 	ACPI_D3, /* fully-off */
-};
+} acpi_dstate_t;
 
-typedef int acpi_dstate_t;
+typedef enum {
+	ACPI_S0, /* working state */
+	ACPI_S1, /* power-on suspend */
+	ACPI_S2, /* suspend to ram, with devices */
+	ACPI_S3, /* suspend to ram */
+	ACPI_S4, /* suspend to disk */
+	ACPI_S5, /* soft-off */
+} acpi_sstate_t;
 
 /* RSDP location */
 #define ACPI_BIOS_ROM_BASE (0x0e0000)
@@ -159,5 +163,18 @@
 };
 
 #define ACPI_SLP_TYP_DISABLED	(~0UL)
+
+#ifdef __KERNEL__
+
+/* routines for saving/restoring kernel state */
+FASTCALL(extern unsigned long acpi_save_state_mem(unsigned long return_point));
+FASTCALL(extern int acpi_save_state_disk(unsigned long return_point));
+extern void acpi_restore_state(void);
+
+extern unsigned long acpi_wakeup_address;
+
+#endif /* __KERNEL__ */
+
+int acpi_init(void);
 
 #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)