soc/amd/*/smi.h: Move the pm_acpi_smi_cmd_port function declaration

This prototype will be used outside of soc/amd.

Change-Id: Icc69cf8a910764b27edf64f0f527b8f6a9013121
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45813
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans 2020-09-29 11:51:34 +02:00 committed by Patrick Georgi
parent 3967cf931b
commit 3428027267
5 changed files with 5 additions and 2 deletions

View File

@ -197,5 +197,8 @@ void smm_list_regions(void);
/* Return the SMM save state revision. The revision can be fetched from the smm savestate
which is always at the same offset downward from the top of the save state. */
uint32_t smm_revision(void);
/* Returns the PM ACPI SMI port. On Intel systems this typically not configurable (APM_CNT, 0xb2).
On AMD systems it is sometimes configurable. */
uint16_t pm_acpi_smi_cmd_port(void);
#endif /* CPU_X86_SMM_H */

View File

@ -214,7 +214,6 @@ struct sci_source {
uint8_t level; /* Edge or Level, smi_sci_dir */
};
uint16_t pm_acpi_smi_cmd_port(void);
void configure_smi(uint8_t smi_num, uint8_t mode);
void configure_gevent_smi(uint8_t gevent, uint8_t mode, uint8_t level);
void configure_scimap(const struct sci_source *sci);

View File

@ -5,6 +5,7 @@
*/
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <soc/southbridge.h>
#include <soc/smi.h>
#include <amdblocks/acpimmio.h>

View File

@ -211,7 +211,6 @@ struct sci_source {
uint8_t level; /* Edge or Level, smi_sci_dir */
};
uint16_t pm_acpi_smi_cmd_port(void);
void configure_smi(uint8_t smi_num, uint8_t mode);
void configure_gevent_smi(uint8_t gevent, uint8_t mode, uint8_t level);
void configure_scimap(const struct sci_source *sci);

View File

@ -5,6 +5,7 @@
*/
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <soc/southbridge.h>
#include <soc/smi.h>
#include <amdblocks/acpimmio.h>