]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/x86/include/asm/acpi_s3.h
x86: acpi: Fix Windows S3 resume failure
[people/ms/u-boot.git] / arch / x86 / include / asm / acpi_s3.h
index 1ad20f4fcbbfa4520144f4a0f3bae95e0876d012..86aec0abe0f670e045c68d4284b99d9b98881c53 100644 (file)
@@ -29,6 +29,9 @@
 #define SLP_TYP_S4     6
 #define SLP_TYP_S5     7
 
+/* Memory size reserved for S3 resume */
+#define S3_RESERVE_SIZE        0x1000
+
 #ifndef __ASSEMBLY__
 
 extern char __wakeup[];
@@ -110,6 +113,19 @@ struct acpi_fadt;
  */
 void acpi_resume(struct acpi_fadt *fadt);
 
+/**
+ * acpi_s3_reserve() - Reserve memory for ACPI S3 resume
+ *
+ * This copies memory where real mode interrupt handler stubs reside to the
+ * reserved place on the stack.
+ *
+ * This routine should be called by reserve_arch() before U-Boot is relocated
+ * when ACPI S3 resume is enabled.
+ *
+ * @return:    0 always
+ */
+int acpi_s3_reserve(void);
+
 #endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_ACPI_S3_H__ */