summaryrefslogtreecommitdiff
path: root/src/include/cpu/intel
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-14 03:49:21 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-15 06:53:52 +0000
commitf091f4daf7e76cff3cdf9b7a19bb77281fb6af9d (patch)
treef6abac8a52eba4941632cfd89e97cb2c46d80cf1 /src/include/cpu/intel
parent5ec97cea676bd45b151f94b73d486cee0f244213 (diff)
intel/smm/gen1: Rename header file
Change-Id: I258fccc5e1db0bedb641c8af8cb9727954d4d7c1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34869 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/include/cpu/intel')
-rw-r--r--src/include/cpu/intel/smm_reloc.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/cpu/intel/smm_reloc.h b/src/include/cpu/intel/smm_reloc.h
new file mode 100644
index 0000000000..80094e73fc
--- /dev/null
+++ b/src/include/cpu/intel/smm_reloc.h
@@ -0,0 +1,38 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __INTEL_SMM_RELOC_H__
+#define __INTEL_SMM_RELOC_H__
+
+#include <types.h>
+
+/* These helpers are for performing SMM relocation. */
+void southbridge_smm_init(void);
+u32 northbridge_get_tseg_base(void);
+u32 northbridge_get_tseg_size(void);
+void northbridge_write_smram(u8 smram);
+
+void smm_lock(void);
+void smm_relocate(void);
+
+/* parallel MP helper functions */
+void southbridge_smm_clear_state(void);
+
+/* To be removed. */
+void smm_initialize(void);
+void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize, size_t *smm_save_state_size);
+void smm_relocation_handler(int cpu, uintptr_t curr_smbase, uintptr_t staggered_smbase);
+
+bool cpu_has_alternative_smrr(void);
+
+#endif