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>
This commit is contained in:
Kyösti Mälkki 2019-08-14 03:49:21 +03:00
parent 5ec97cea67
commit f091f4daf7
20 changed files with 34 additions and 28 deletions

View File

@ -24,7 +24,7 @@
#include <cpu/intel/speedstep.h> #include <cpu/intel/speedstep.h>
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/x86/name.h> #include <cpu/x86/name.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <cpu/intel/common/common.h> #include <cpu/intel/common/common.h>
#include "chip.h" #include "chip.h"

View File

@ -19,7 +19,7 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/mp.h> #include <cpu/x86/mp.h>
#include <cpu/intel/microcode.h> #include <cpu/intel/microcode.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <cpu/intel/common/common.h> #include <cpu/intel/common/common.h>
#include <device/device.h> #include <device/device.h>

View File

@ -31,7 +31,7 @@
#include <cpu/x86/name.h> #include <cpu/x86/name.h>
#include "model_2065x.h" #include "model_2065x.h"
#include "chip.h" #include "chip.h"
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <cpu/intel/common/common.h> #include <cpu/intel/common/common.h>
/* /*

View File

@ -32,7 +32,7 @@
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include "model_206ax.h" #include "model_206ax.h"
#include "chip.h" #include "chip.h"
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <cpu/intel/common/common.h> #include <cpu/intel/common/common.h>
/* /*

View File

@ -28,9 +28,9 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <cpu/intel/em64t101_save_state.h> #include <cpu/intel/em64t101_save_state.h>
#include <cpu/intel/smm_reloc.h>
#include <console/console.h> #include <console/console.h>
#include <smp/node.h> #include <smp/node.h>
#include "smi.h"
#define SMRR_SUPPORTED (1 << 11) #define SMRR_SUPPORTED (1 << 11)

View File

@ -11,7 +11,10 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <device/device.h> #ifndef __INTEL_SMM_RELOC_H__
#define __INTEL_SMM_RELOC_H__
#include <types.h>
/* These helpers are for performing SMM relocation. */ /* These helpers are for performing SMM relocation. */
void southbridge_smm_init(void); void southbridge_smm_init(void);
@ -19,14 +22,17 @@ u32 northbridge_get_tseg_base(void);
u32 northbridge_get_tseg_size(void); u32 northbridge_get_tseg_size(void);
void northbridge_write_smram(u8 smram); void northbridge_write_smram(u8 smram);
bool cpu_has_alternative_smrr(void); void smm_lock(void);
void smm_relocate(void);
/* parallel MP helper functions */ /* parallel MP helper functions */
void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
size_t *smm_save_state_size);
void smm_initialize(void);
void southbridge_smm_clear_state(void); void southbridge_smm_clear_state(void);
void smm_relocation_handler(int cpu, uintptr_t curr_smbase,
uintptr_t staggered_smbase); /* To be removed. */
void smm_relocate(void); void smm_initialize(void);
void smm_lock(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

View File

@ -27,7 +27,7 @@
#include <cbmem.h> #include <cbmem.h>
#include <program_loading.h> #include <program_loading.h>
#include <stage_cache.h> #include <stage_cache.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include "gm45.h" #include "gm45.h"
/* /*

View File

@ -23,7 +23,7 @@
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <boot/tables.h> #include <boot/tables.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include "chip.h" #include "chip.h"
#include "gm45.h" #include "gm45.h"

View File

@ -24,7 +24,7 @@
#include <cpu/intel/romstage.h> #include <cpu/intel/romstage.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <program_loading.h> #include <program_loading.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <stdint.h> #include <stdint.h>
#include <stage_cache.h> #include <stage_cache.h>

View File

@ -23,7 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include "i945.h" #include "i945.h"
static int get_pcie_bar(u32 *base) static int get_pcie_bar(u32 *base)

View File

@ -24,7 +24,7 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <program_loading.h> #include <program_loading.h>
#include <stage_cache.h> #include <stage_cache.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include "nehalem.h" #include "nehalem.h"
static uintptr_t smm_region_start(void) static uintptr_t smm_region_start(void)

View File

@ -29,7 +29,7 @@
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include "chip.h" #include "chip.h"
#include "nehalem.h" #include "nehalem.h"
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
static int bridge_revision_id = -1; static int bridge_revision_id = -1;

View File

@ -19,7 +19,7 @@
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include "nehalem.h" #include "nehalem.h"
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
void northbridge_write_smram(u8 smram) void northbridge_write_smram(u8 smram)
{ {

View File

@ -25,7 +25,7 @@
#include <northbridge/intel/pineview/pineview.h> #include <northbridge/intel/pineview/pineview.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <cpu/intel/romstage.h> #include <cpu/intel/romstage.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <stdint.h> #include <stdint.h>
#include <stage_cache.h> #include <stage_cache.h>

View File

@ -25,7 +25,7 @@
#include <boot/tables.h> #include <boot/tables.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <northbridge/intel/pineview/pineview.h> #include <northbridge/intel/pineview/pineview.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
/* Reserve everything between A segment and 1MB: /* Reserve everything between A segment and 1MB:
* *

View File

@ -20,7 +20,7 @@
#include <cbmem.h> #include <cbmem.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/intel/romstage.h> #include <cpu/intel/romstage.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <program_loading.h> #include <program_loading.h>
#include <stage_cache.h> #include <stage_cache.h>

View File

@ -28,7 +28,7 @@
#include <cpu/cpu.h> #include <cpu/cpu.h>
#include "chip.h" #include "chip.h"
#include "sandybridge.h" #include "sandybridge.h"
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
static int bridge_revision_id = -1; static int bridge_revision_id = -1;

View File

@ -28,7 +28,7 @@
#include <cpu/x86/mtrr.h> #include <cpu/x86/mtrr.h>
#include <northbridge/intel/x4x/x4x.h> #include <northbridge/intel/x4x/x4x.h>
#include <program_loading.h> #include <program_loading.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <stage_cache.h> #include <stage_cache.h>
/** Decodes used Graphics Mode Select (GMS) to kilobytes. */ /** Decodes used Graphics Mode Select (GMS) to kilobytes. */

View File

@ -27,7 +27,7 @@
#include <northbridge/intel/x4x/iomap.h> #include <northbridge/intel/x4x/iomap.h>
#include <northbridge/intel/x4x/chip.h> #include <northbridge/intel/x4x/chip.h>
#include <northbridge/intel/x4x/x4x.h> #include <northbridge/intel/x4x/x4x.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
static const int legacy_hole_base_k = 0xa0000 / 1024; static const int legacy_hole_base_k = 0xa0000 / 1024;

View File

@ -21,7 +21,7 @@
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/smm_reloc.h>
#include <southbridge/intel/common/pmbase.h> #include <southbridge/intel/common/pmbase.h>
#include <southbridge/intel/common/pmutil.h> #include <southbridge/intel/common/pmutil.h>