summaryrefslogtreecommitdiff
path: root/src/include/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/cpu')
-rw-r--r--src/include/cpu/x86/smi_deprecated.h12
-rw-r--r--src/include/cpu/x86/smm.h5
2 files changed, 14 insertions, 3 deletions
diff --git a/src/include/cpu/x86/smi_deprecated.h b/src/include/cpu/x86/smi_deprecated.h
index 3eed0fdda5..b5d69dd266 100644
--- a/src/include/cpu/x86/smi_deprecated.h
+++ b/src/include/cpu/x86/smi_deprecated.h
@@ -43,4 +43,16 @@ void northbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_sav
void southbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_save);
#endif
+#if CONFIG(PARALLEL_MP) || !CONFIG(HAVE_SMI_HANDLER)
+/* Empty stubs for platforms without SMI handlers. */
+static inline void smm_init(void) { }
+static inline void smm_init_completion(void) { }
+#else
+void smm_init(void);
+void smm_init_completion(void);
+#endif
+
+/* Entry from smmhandler.S. */
+void smi_handler(u32 smm_revision);
+
#endif
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h
index a9d1ad4d1e..ebe6f76da4 100644
--- a/src/include/cpu/x86/smm.h
+++ b/src/include/cpu/x86/smm.h
@@ -41,9 +41,6 @@
#define APM_CNT_ELOG_GSMI 0xef
#define APM_STS 0xb3
-/* SMI handler function prototypes */
-void smi_handler(u32 smm_revision);
-
void io_trap_handler(int smif);
int southbridge_io_trap_handler(int smif);
int mainboard_io_trap_handler(int smif);
@@ -56,6 +53,8 @@ void northbridge_smi_handler(void);
void southbridge_smi_handler(void);
#endif
+void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
+
void mainboard_smi_gpi(u32 gpi_sts);
int mainboard_smi_apmc(u8 data);
void mainboard_smi_sleep(u8 slp_typ);