arch: x86: updated acpi config macro
renamed x86 CONFIG_ACPI config macro to CONFIG_x86_ACPI. Signed-off-by: Najumon Ba <najumon.ba@intel.com>
This commit is contained in:
parent
a72271f27f
commit
b3d78de656
12 changed files with 17 additions and 16 deletions
|
@ -227,7 +227,7 @@ choice
|
||||||
Reboot via the RST_CNT register, going back to BIOS.
|
Reboot via the RST_CNT register, going back to BIOS.
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config ACPI
|
config X86_ACPI
|
||||||
bool "ACPI (Advanced Configuration and Power Interface) support"
|
bool "ACPI (Advanced Configuration and Power Interface) support"
|
||||||
depends on X86_PC_COMPATIBLE
|
depends on X86_PC_COMPATIBLE
|
||||||
help
|
help
|
||||||
|
@ -235,14 +235,14 @@ config ACPI
|
||||||
|
|
||||||
config PCIE_MMIO_CFG
|
config PCIE_MMIO_CFG
|
||||||
bool "Use MMIO PCI configuration space access"
|
bool "Use MMIO PCI configuration space access"
|
||||||
select ACPI
|
select X86_ACPI
|
||||||
help
|
help
|
||||||
Selects the use of the memory-mapped PCI Express Extended
|
Selects the use of the memory-mapped PCI Express Extended
|
||||||
Configuration Space instead of the traditional 0xCF8/0xCFC
|
Configuration Space instead of the traditional 0xCF8/0xCFC
|
||||||
IO Port registers.
|
IO Port registers.
|
||||||
|
|
||||||
config KERNEL_VM_SIZE
|
config KERNEL_VM_SIZE
|
||||||
default 0x40000000 if ACPI
|
default 0x40000000 if X86_ACPI
|
||||||
|
|
||||||
config X86_PC_COMPATIBLE
|
config X86_PC_COMPATIBLE
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -15,7 +15,7 @@ zephyr_library_sources_ifdef(CONFIG_PCIE pcie.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_REBOOT_RST_CNT reboot_rst_cnt.c)
|
zephyr_library_sources_ifdef(CONFIG_REBOOT_RST_CNT reboot_rst_cnt.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_MULTIBOOT_INFO multiboot.c)
|
zephyr_library_sources_ifdef(CONFIG_MULTIBOOT_INFO multiboot.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_X86_EFI efi.c)
|
zephyr_library_sources_ifdef(CONFIG_X86_EFI efi.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ACPI acpi.c)
|
zephyr_library_sources_ifdef(CONFIG_X86_ACPI acpi.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_X86_MMU x86_mmu.c)
|
zephyr_library_sources_ifdef(CONFIG_X86_MMU x86_mmu.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.c)
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.c)
|
||||||
zephyr_library_sources_ifdef(CONFIG_ARCH_CACHE cache.c)
|
zephyr_library_sources_ifdef(CONFIG_ARCH_CACHE cache.c)
|
||||||
|
|
|
@ -142,7 +142,7 @@ void arch_start_cpu(int cpu_num, k_thread_stack_t *stack, int sz,
|
||||||
uint8_t vector = ((unsigned long) x86_ap_start) >> 12;
|
uint8_t vector = ((unsigned long) x86_ap_start) >> 12;
|
||||||
uint8_t apic_id;
|
uint8_t apic_id;
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_ACPI)) {
|
if (IS_ENABLED(CONFIG_X86_ACPI)) {
|
||||||
struct acpi_cpu *cpu;
|
struct acpi_cpu *cpu;
|
||||||
|
|
||||||
cpu = z_acpi_get_cpu(cpu_num);
|
cpu = z_acpi_get_cpu(cpu_num);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#include <zephyr/sys/device_mmio.h>
|
#include <zephyr/sys/device_mmio.h>
|
||||||
#include <zephyr/drivers/pcie/pcie.h>
|
#include <zephyr/drivers/pcie/pcie.h>
|
||||||
|
|
||||||
#ifdef CONFIG_ACPI
|
#ifdef CONFIG_X86_ACPI
|
||||||
#include <zephyr/arch/x86/acpi.h>
|
#include <zephyr/arch/x86/acpi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ static bool do_pcie_mmio_cfg;
|
||||||
|
|
||||||
static void pcie_mm_init(void)
|
static void pcie_mm_init(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ACPI
|
#ifdef CONFIG_X86_ACPI
|
||||||
struct acpi_mcfg *m = z_acpi_find_table(ACPI_MCFG_SIGNATURE);
|
struct acpi_mcfg *m = z_acpi_find_table(ACPI_MCFG_SIGNATURE);
|
||||||
|
|
||||||
if (m != NULL) {
|
if (m != NULL) {
|
||||||
|
|
|
@ -66,7 +66,7 @@ set(QEMU_FLAGS_${ARCH}
|
||||||
-nographic
|
-nographic
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT CONFIG_ACPI)
|
if(NOT CONFIG_X86_ACPI)
|
||||||
list(APPEND QEMU_FLAGS_${ARCH} -no-acpi)
|
list(APPEND QEMU_FLAGS_${ARCH} -no-acpi)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -82,4 +82,5 @@ source "drivers/watchdog/Kconfig"
|
||||||
source "drivers/wifi/Kconfig"
|
source "drivers/wifi/Kconfig"
|
||||||
source "drivers/xen/Kconfig"
|
source "drivers/xen/Kconfig"
|
||||||
source "drivers/sip_svc/Kconfig"
|
source "drivers/sip_svc/Kconfig"
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -169,7 +169,7 @@ union acpi_dmar_id {
|
||||||
uint16_t raw;
|
uint16_t raw;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(CONFIG_ACPI)
|
#if defined(CONFIG_X86_ACPI)
|
||||||
|
|
||||||
void *z_acpi_find_table(uint32_t signature);
|
void *z_acpi_find_table(uint32_t signature);
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ z_acpi_get_dev_scope_paths(struct acpi_dmar_dev_scope *dev_scope, int *n);
|
||||||
|
|
||||||
uint16_t z_acpi_get_dev_id_from_dmar(uint8_t dev_scope_type);
|
uint16_t z_acpi_get_dev_id_from_dmar(uint8_t dev_scope_type);
|
||||||
|
|
||||||
#else /* CONFIG_ACPI */
|
#else /* CONFIG_X86_ACPI */
|
||||||
|
|
||||||
#define z_acpi_find_table(...) NULL
|
#define z_acpi_find_table(...) NULL
|
||||||
#define z_acpi_get_cpu(...) NULL
|
#define z_acpi_get_cpu(...) NULL
|
||||||
|
@ -197,7 +197,7 @@ uint16_t z_acpi_get_dev_id_from_dmar(uint8_t dev_scope_type);
|
||||||
#define z_acpi_get_dev_scope_paths(...) NULL
|
#define z_acpi_get_dev_scope_paths(...) NULL
|
||||||
#define z_acpi_get_dev_id_from_dmar(...) USHRT_MAX
|
#define z_acpi_get_dev_id_from_dmar(...) USHRT_MAX
|
||||||
|
|
||||||
#endif /* CONFIG_ACPI */
|
#endif /* CONFIG_X86_ACPI */
|
||||||
|
|
||||||
#endif /* _ASMLANGUAGE */
|
#endif /* _ASMLANGUAGE */
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,6 @@ project(x86_info)
|
||||||
|
|
||||||
target_sources(app PRIVATE src/main.c)
|
target_sources(app PRIVATE src/main.c)
|
||||||
target_sources(app PRIVATE src/timer.c)
|
target_sources(app PRIVATE src/timer.c)
|
||||||
target_sources_ifdef(CONFIG_ACPI app PRIVATE src/acpi.c)
|
target_sources_ifdef(CONFIG_X86_ACPI app PRIVATE src/acpi.c)
|
||||||
target_sources_ifdef(CONFIG_MULTIBOOT app PRIVATE src/multiboot.c)
|
target_sources_ifdef(CONFIG_MULTIBOOT app PRIVATE src/multiboot.c)
|
||||||
target_sources_ifdef(CONFIG_X86_MEMMAP app PRIVATE src/memmap.c)
|
target_sources_ifdef(CONFIG_X86_MEMMAP app PRIVATE src/memmap.c)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_ACPI=y
|
CONFIG_X86_ACPI=y
|
||||||
CONFIG_MULTIBOOT_INFO=y
|
CONFIG_MULTIBOOT_INFO=y
|
||||||
CONFIG_MULTIBOOT_MEMMAP=y
|
CONFIG_MULTIBOOT_MEMMAP=y
|
||||||
CONFIG_COUNTER=y
|
CONFIG_COUNTER=y
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_QEMU_UEFI_BOOT=y
|
CONFIG_QEMU_UEFI_BOOT=y
|
||||||
CONFIG_BUILD_OUTPUT_EFI=y
|
CONFIG_BUILD_OUTPUT_EFI=y
|
||||||
CONFIG_SRAM_SIZE=204800
|
CONFIG_SRAM_SIZE=204800
|
||||||
CONFIG_ACPI=y
|
CONFIG_X86_ACPI=y
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_ACPI=y
|
CONFIG_X86_ACPI=y
|
||||||
CONFIG_PCIE=y
|
CONFIG_PCIE=y
|
||||||
CONFIG_PCIE_MSI=y
|
CONFIG_PCIE_MSI=y
|
||||||
CONFIG_PCIE_MSI_X=y
|
CONFIG_PCIE_MSI_X=y
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
CONFIG_ACPI=y
|
CONFIG_X86_ACPI=y
|
||||||
CONFIG_PCIE=y
|
CONFIG_PCIE=y
|
||||||
CONFIG_PCIE_MSI=y
|
CONFIG_PCIE_MSI=y
|
||||||
CONFIG_PCIE_MSI_X=y
|
CONFIG_PCIE_MSI_X=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue