![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi.h>
#include <acpi/acpi_gnvs.h>
#include <acpi/acpigen.h>
#include <arch/smp/mpspec.h>
#include <cpu/cpu.h>
#include <cpu/x86/smm.h>
#include <string.h>
#include <device/pci.h>
#include <device/pci_ops.h>
#include <cbmem.h>
#include <console/console.h>
#include <intelblocks/acpi.h>
#include <soc/acpi.h>
#include <soc/cpu.h>
#include <soc/nvs.h>
#include <soc/soc_util.h>
#include <soc/pmc.h>
#include <soc/systemagent.h>
#include <soc/pci_devs.h>
Go to the source code of this file.
Macros | |
#define | CSTATE_RES(address_space, width, offset, address) |
Functions | |
void | soc_fill_gnvs (struct global_nvs *gnvs) |
uint32_t | soc_read_sci_irq_select (void) |
const acpi_cstate_t * | soc_get_cstate_map (size_t *entries) |
void | soc_fill_fadt (acpi_fadt_t *fadt) |
acpi_tstate_t * | soc_get_tss_table (int *entries) |
void | soc_power_states_generation (int core_id, int cores_per_package) |
int | soc_madt_sci_irq_polarity (int sci) |
unsigned long | southcluster_write_acpi_tables (const struct device *device, unsigned long current, struct acpi_rsdp *rsdp) |
__weak void | acpi_create_serialio_ssdt (acpi_header_t *ssdt) |
static unsigned long | acpi_fill_dmar (unsigned long current) |
unsigned long | systemagent_write_acpi_tables (const struct device *dev, unsigned long current, struct acpi_rsdp *const rsdp) |
Variables | |
static const acpi_cstate_t | cstate_map [] |
static acpi_tstate_t | denverton_tss_table [] |
__weak void acpi_create_serialio_ssdt | ( | acpi_header_t * | ssdt | ) |
Definition at line 178 of file acpi.c.
References acpi_create_dmar_drhd(), acpi_create_dmar_ds_ioapic(), acpi_create_dmar_ds_msi_hpet(), acpi_create_dmar_ds_pci(), acpi_create_dmar_rmrr(), acpi_dmar_drhd_fixup(), acpi_dmar_rmrr_fixup(), BIOS_DEBUG, DEFAULT_MCHBAR, DRHD_INCLUDE_PCI_ALL, MCH_VTBAR_MASK, MCH_VTBAR_OFFSET, PCH_HPET_PCI_BUS, PCH_HPET_PCI_SLOT, PCH_IOAPIC_PCI_BUS, PCH_IOAPIC_PCI_SLOT, printk, read64(), RMRR_USB_BASE_ADDRESS, RMRR_USB_LIMIT_ADDRESS, XHCI_DEV, and XHCI_FUNC.
Referenced by systemagent_write_acpi_tables().
void soc_fill_fadt | ( | acpi_fadt_t * | fadt | ) |
Definition at line 85 of file acpi.c.
References acpi_gen_regaddr::access_size, ACPI_ACCESS_SIZE_BYTE_ACCESS, ACPI_ACCESS_SIZE_DWORD_ACCESS, ACPI_ADDRESS_SPACE_IO, ACPI_FADT_8042, ACPI_FADT_LEGACY_DEVICES, acpi_gen_regaddr::addrh, acpi_gen_regaddr::addrl, acpi_gen_regaddr::bit_offset, acpi_gen_regaddr::bit_width, get_pmbase(), acpi_fadt::iapc_boot_arch, PM1_TMR, PM2_CNT, acpi_fadt::pm2_cnt_blk, acpi_fadt::pm2_cnt_len, acpi_fadt::pm_tmr_blk, acpi_fadt::pm_tmr_len, pmbase, acpi_gen_regaddr::space_id, acpi_fadt::x_pm2_cnt_blk, and acpi_fadt::x_pm_tmr_blk.
void soc_fill_gnvs | ( | struct global_nvs * | gnvs | ) |
Definition at line 55 of file acpi.c.
References cbmem_top(), cpu_phys_address_size(), get_pciebase(), get_top_of_low_memory(), get_top_of_upper_memory(), get_tseg_memory(), gnvs, global_nvs::mmiob, global_nvs::mmiohb, global_nvs::mmiohl, global_nvs::mmiol, global_nvs::tolm, global_nvs::tsegb, and global_nvs::tsegl.
const acpi_cstate_t* soc_get_cstate_map | ( | size_t * | entries | ) |
Definition at line 79 of file acpi.c.
References ARRAY_SIZE, and cstate_map.
acpi_tstate_t* soc_get_tss_table | ( | int * | entries | ) |
Definition at line 127 of file acpi.c.
References ARRAY_SIZE, and denverton_tss_table.
int soc_madt_sci_irq_polarity | ( | int | sci | ) |
Definition at line 140 of file acpi.c.
References MP_IRQ_POLARITY_HIGH, and MP_IRQ_POLARITY_LOW.
void soc_power_states_generation | ( | int | core_id, |
int | cores_per_package | ||
) |
Definition at line 133 of file acpi.c.
References generate_p_state_entries(), and generate_t_state_entries().
Definition at line 69 of file acpi.c.
References get_pmc_dev(), pci_read_config32(), and PMC_ACPI_CNT.
unsigned long southcluster_write_acpi_tables | ( | const struct device * | device, |
unsigned long | current, | ||
struct acpi_rsdp * | rsdp | ||
) |
Definition at line 148 of file acpi.c.
References acpi_add_table(), acpi_create_serialio_ssdt(), acpi_write_hpet(), ALIGN, BIOS_DEBUG, acpi_table_header::length, memset(), NULL, and printk.
unsigned long systemagent_write_acpi_tables | ( | const struct device * | dev, |
unsigned long | current, | ||
struct acpi_rsdp *const | rsdp | ||
) |
Definition at line 210 of file acpi.c.
References acpi_add_table(), acpi_align_current(), acpi_create_dmar(), acpi_fill_dmar(), BIOS_DEBUG, CAPID0_A, DMAR_INTR_REMAP, acpi_dmar::header, acpi_table_header::length, pci_read_config32(), printk, and VTD_DISABLE.
|
static |
Definition at line 31 of file acpi.c.
Referenced by soc_get_cstate_map().
|
static |
Definition at line 116 of file acpi.c.
Referenced by soc_get_tss_table().