/openbmc/u-boot/arch/x86/cpu/quark/ |
H A D | acpi.c | 12 void acpi_create_fadt(struct acpi_fadt *fadt, struct acpi_facs *facs, in acpi_create_fadt() argument 15 struct acpi_table_header *header = &(fadt->header); in acpi_create_fadt() 18 memset((void *)fadt, 0, sizeof(struct acpi_fadt)); in acpi_create_fadt() 24 fadt->firmware_ctrl = (u32)facs; in acpi_create_fadt() 25 fadt->dsdt = (u32)dsdt; in acpi_create_fadt() 26 fadt->preferred_pm_profile = ACPI_PM_UNSPECIFIED; in acpi_create_fadt() 27 fadt->sci_int = 9; in acpi_create_fadt() 28 fadt->smi_cmd = 0; in acpi_create_fadt() 29 fadt->acpi_enable = 0; in acpi_create_fadt() 30 fadt->acpi_disable = 0; in acpi_create_fadt() [all …]
|
/openbmc/u-boot/arch/x86/cpu/baytrail/ |
H A D | acpi.c | 17 void acpi_create_fadt(struct acpi_fadt *fadt, struct acpi_facs *facs, in acpi_create_fadt() argument 20 struct acpi_table_header *header = &(fadt->header); in acpi_create_fadt() 23 memset((void *)fadt, 0, sizeof(struct acpi_fadt)); in acpi_create_fadt() 29 fadt->firmware_ctrl = (u32)facs; in acpi_create_fadt() 30 fadt->dsdt = (u32)dsdt; in acpi_create_fadt() 31 fadt->preferred_pm_profile = ACPI_PM_MOBILE; in acpi_create_fadt() 32 fadt->sci_int = 9; in acpi_create_fadt() 33 fadt->smi_cmd = 0; in acpi_create_fadt() 34 fadt->acpi_enable = 0; in acpi_create_fadt() 35 fadt->acpi_disable = 0; in acpi_create_fadt() [all …]
|
/openbmc/u-boot/arch/x86/cpu/tangier/ |
H A D | acpi.c | 18 void acpi_create_fadt(struct acpi_fadt *fadt, struct acpi_facs *facs, in acpi_create_fadt() argument 21 struct acpi_table_header *header = &(fadt->header); in acpi_create_fadt() 23 memset((void *)fadt, 0, sizeof(struct acpi_fadt)); in acpi_create_fadt() 29 fadt->firmware_ctrl = (u32)facs; in acpi_create_fadt() 30 fadt->dsdt = (u32)dsdt; in acpi_create_fadt() 31 fadt->preferred_pm_profile = ACPI_PM_UNSPECIFIED; in acpi_create_fadt() 33 fadt->iapc_boot_arch = ACPI_FADT_VGA_NOT_PRESENT | in acpi_create_fadt() 35 fadt->flags = in acpi_create_fadt() 41 fadt->minor_revision = 2; in acpi_create_fadt() 43 fadt->x_firmware_ctl_l = (u32)facs; in acpi_create_fadt() [all …]
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | acpi.c | 35 struct acpi_fadt *fadt = NULL; in acpi_find_fadt() local 55 fadt = (struct acpi_fadt *)(uintptr_t)rsdt->entry[i]; in acpi_find_fadt() 56 if (strncmp((char *)fadt, "FACP", 4) == 0) in acpi_find_fadt() 58 fadt = NULL; in acpi_find_fadt() 61 if (!fadt) in acpi_find_fadt() 64 debug("FADT found at %p\n", fadt); in acpi_find_fadt() 65 return fadt; in acpi_find_fadt() 68 void *acpi_find_wakeup_vector(struct acpi_fadt *fadt) in acpi_find_wakeup_vector() argument 75 facs = (struct acpi_facs *)(uintptr_t)fadt->firmware_ctrl; in acpi_find_wakeup_vector()
|
H A D | acpi_s3.c | 26 void acpi_resume(struct acpi_fadt *fadt) in acpi_resume() argument 31 enter_acpi_mode(fadt->pm1a_cnt_blk); in acpi_resume() 33 wake_vec = acpi_find_wakeup_vector(fadt); in acpi_resume()
|
H A D | acpi_table.c | 464 struct acpi_fadt *fadt; in write_acpi_tables() local 536 fadt = (struct acpi_fadt *)current; in write_acpi_tables() 539 acpi_create_fadt(fadt, facs, dsdt); in write_acpi_tables() 540 acpi_add_table(rsdp, fadt); in write_acpi_tables()
|
/openbmc/u-boot/arch/x86/cpu/ |
H A D | cpu.c | 182 struct acpi_fadt __maybe_unused *fadt; in last_stage_init() local 187 fadt = acpi_find_fadt(); in last_stage_init() 189 if (fadt && gd->arch.prev_sleep_state == ACPI_S3) in last_stage_init() 190 acpi_resume(fadt); in last_stage_init() 196 fadt = acpi_find_fadt(); in last_stage_init() 199 if (fadt && !(fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)) { in last_stage_init() 204 enter_acpi_mode(fadt->pm1a_cnt_blk); in last_stage_init()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | acpi.c | 62 struct acpi_table_fadt *fadt; in acpi_fadt_sanity_check() local 78 fadt = (struct acpi_table_fadt *)table; in acpi_fadt_sanity_check() 88 if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 5)) in acpi_fadt_sanity_check() 90 table->revision, fadt->minor_revision); in acpi_fadt_sanity_check() 92 if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { in acpi_fadt_sanity_check()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | acpi.c | 125 struct acpi_table_fadt *fadt; in acpi_fadt_sanity_check() local 141 fadt = (struct acpi_table_fadt *)table; in acpi_fadt_sanity_check() 150 (table->revision == 5 && fadt->minor_revision < 1)) { in acpi_fadt_sanity_check() 152 table->revision, fadt->minor_revision); in acpi_fadt_sanity_check() 154 if (!fadt->arm_boot_flags) { in acpi_fadt_sanity_check() 161 if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) { in acpi_fadt_sanity_check()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | tboot.c | 259 static void tboot_copy_fadt(const struct acpi_table_fadt *fadt) in tboot_copy_fadt() argument 268 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_cnt_blk, fadt->xpm1a_control_block); in tboot_copy_fadt() 269 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_cnt_blk, fadt->xpm1b_control_block); in tboot_copy_fadt() 270 TB_COPY_GAS(tboot->acpi_sinfo.pm1a_evt_blk, fadt->xpm1a_event_block); in tboot_copy_fadt() 271 TB_COPY_GAS(tboot->acpi_sinfo.pm1b_evt_blk, fadt->xpm1b_event_block); in tboot_copy_fadt() 278 tboot->acpi_sinfo.wakeup_vector = fadt->facs + in tboot_copy_fadt()
|
/openbmc/u-boot/arch/x86/include/asm/ |
H A D | acpi.h | 29 void *acpi_find_wakeup_vector(struct acpi_fadt *fadt);
|
H A D | acpi_s3.h | 113 void acpi_resume(struct acpi_fadt *fadt);
|
H A D | acpi_table.h | 360 void acpi_create_fadt(struct acpi_fadt *fadt, struct acpi_facs *facs,
|
/openbmc/qemu/hw/i386/ |
H A D | acpi-build.c | 107 AcpiFadtData fadt; member 147 AcpiFadtData fadt = { in init_common_fadt_data() local 189 fadt.iapc_boot_arch = iapc_boot_arch_8042(); in init_common_fadt_data() 191 *data = fadt; in init_common_fadt_data() 207 init_common_fadt_data(machine, obj, &pm->fadt); in acpi_get_pm_info() 210 pm->fadt.rev = 1; in acpi_get_pm_info() 218 pm->fadt.reset_reg = r; in acpi_get_pm_info() 219 pm->fadt.reset_val = 0xf; in acpi_get_pm_info() 220 pm->fadt.flags |= 1 << ACPI_FADT_F_RESET_REG_SUP; in acpi_get_pm_info() 1421 pm->fadt.smi_cmd, in build_dsdt() [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | acpi.c | 560 struct acpi_table_fadt *fadt; in acpi_parse_fadt() local 566 fadt = (struct acpi_table_fadt *)fadt_header; in acpi_parse_fadt() 568 acpi_register_gsi(NULL, fadt->sci_interrupt, ACPI_LEVEL_SENSITIVE, in acpi_parse_fadt()
|
/openbmc/qemu/hw/arm/ |
H A D | virt-acpi-build.c | 777 AcpiFadtData fadt = { in build_fadt_rev6() local 786 fadt.arm_boot_arch = 0; in build_fadt_rev6() 789 fadt.arm_boot_arch = ACPI_FADT_ARM_PSCI_COMPLIANT | in build_fadt_rev6() 793 fadt.arm_boot_arch = ACPI_FADT_ARM_PSCI_COMPLIANT; in build_fadt_rev6() 799 build_fadt(table_data, linker, &fadt, vms->oem_id, vms->oem_table_id); in build_fadt_rev6()
|
/openbmc/qemu/hw/loongarch/ |
H A D | acpi-build.c | 53 AcpiFadtData fadt = { in init_common_fadt_data() local 79 *data = fadt; in init_common_fadt_data()
|
/openbmc/qemu/hw/riscv/ |
H A D | virt-acpi-build.c | 399 AcpiFadtData fadt = { in build_fadt_rev6() local 406 build_fadt(table_data, linker, &fadt, s->oem_id, s->oem_table_id); in build_fadt_rev6()
|