![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <arch/ioapic.h>
#include <acpi/acpi.h>
#include <cpu/x86/smm.h>
#include <bootstate.h>
#include <soc/lpc.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include <soc/iomap.h>
#include <soc/pcr.h>
#include <soc/p2sb.h>
#include <soc/acpi.h>
#include "chip.h"
Go to the source code of this file.
Data Structures | |
struct | dnv_ir_lut |
Macros | |
#define | PCH_REDIR_ETR 120 |
#define | DEVFN(dev, fn) ((dev << 3) | (fn)) |
Variables | |
static const struct dnv_ir_lut | dnv_ir_lut [] |
static struct device_operations | device_ops |
static const struct pci_driver lpc_driver | __pci_driver |
BOOT_STATE_INIT_ENTRY | ( | BS_OS_RESUME | , |
BS_ON_ENTRY | , | ||
finalize_chipset | , | ||
NULL | |||
) |
BOOT_STATE_INIT_ENTRY | ( | BS_PAYLOAD_LOAD | , |
BS_ON_EXIT | , | ||
finalize_chipset | , | ||
NULL | |||
) |
Definition at line 249 of file lpc.c.
References BIOS_DEBUG, BIOS_ERR, device::bus, device::chip_info, config, dev_path(), pci_path::devfn, DEVICE_PATH_PCI, dnv_get_ir(), dnv_get_swizzled_pin(), device::enabled, get_pci_irq_pins(), is_dnv_swizzled_rp(), NULL, device::path, device_path::pci, PCI_INTERRUPT_PIN, pci_read_config8(), printk, bus::secondary, and device_path::type.
Referenced by pch_pirq_init().
Definition at line 137 of file lpc.c.
References ARRAY_SIZE, BIOS_ERR, BIOS_WARNING, config, dnv_ir_lut::devfn, dnv_ir_lut::ir, and printk.
Referenced by dnv_get_int_line().
Definition at line 114 of file lpc.c.
References dnv_ir_lut::devfn.
Referenced by dnv_get_int_line().
Definition at line 541 of file lpc.c.
References APM_CNT_FINALIZE, and apm_control().
|
static |
Definition at line 90 of file lpc.c.
References DEVFN.
Referenced by dnv_get_int_line().
Definition at line 492 of file lpc.c.
References pch_decode_init(), and pci_dev_enable_resources().
Definition at line 433 of file lpc.c.
References BIOS_DEBUG, pch_enable_ioapic(), pch_enable_serial_irqs(), pch_pirq_init(), PCI_COMMAND, PCI_COMMAND_IO, PCI_COMMAND_MASTER, PCI_COMMAND_MEMORY, PCI_COMMAND_SPECIAL, pci_write_config16(), and printk.
Definition at line 475 of file lpc.c.
References pch_lpc_add_io_resources(), pch_lpc_add_mmio_resources(), pci_dev_read_resources(), and pci_p2sb_read_resources().
Definition at line 490 of file lpc.c.
Referenced by lpc_enable_resources().
Set miscellaneous static southbridge features.
dev | PCI device with I/O APIC control registers |
Definition at line 32 of file lpc.c.
Referenced by lpc_init().
Definition at line 422 of file lpc.c.
References pci_write_config8(), and SERIRQ_CNTL.
Referenced by lpc_init().
Definition at line 456 of file lpc.c.
References resource::base, resource::flags, IOINDEX_SUBTRACTIVE, IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_IO, IORESOURCE_MEM, IORESOURCE_SUBTRACTIVE, new_resource(), and resource::size.
Referenced by lpc_read_resources().
Definition at line 454 of file lpc.c.
Referenced by lpc_read_resources().
Definition at line 316 of file lpc.c.
References all_devices, BIOS_DEBUG, device::bus, config, config_of(), pci_path::devfn, DEVICE_PATH_PCI, dnv_get_int_line(), device::enabled, device::next, device::path, PCH_PCR_ADDRESS, PCH_PCR_ITSS_IPC0, PCH_PCR_ITSS_IPC1, PCH_PCR_ITSS_IPC2, PCH_PCR_ITSS_IPC3, device_path::pci, PCI_INTERRUPT_LINE, PCI_INTERRUPT_PIN, pci_read_config8(), pci_write_config8(), PCR_ITSS_PIR00, PCR_ITSS_PIR01, PCR_ITSS_PIR02, PCR_ITSS_PIR03, PCR_ITSS_PIR04, PCR_ITSS_PIR05, PCR_ITSS_PIR06, PCR_ITSS_PIR07, PCR_ITSS_PIR08, PCR_ITSS_PIR09, PCR_ITSS_PIR10, PCR_ITSS_PIR11, PCR_ITSS_PIR12, PCR_ITSS_PIRQA_ROUT, PCR_ITSS_PIRQB_ROUT, PCR_ITSS_PIRQC_ROUT, PCR_ITSS_PIRQD_ROUT, PCR_ITSS_PIRQE_ROUT, PCR_ITSS_PIRQF_ROUT, PCR_ITSS_PIRQG_ROUT, PCR_ITSS_PIRQH_ROUT, PID_ITSS, printk, bus::secondary, device_path::type, write16(), write32(), and write8().
Referenced by lpc_init().
Definition at line 396 of file lpc.c.
References resource::base, BIOS_DEBUG, DEFAULT_PCR_BASE, resource::flags, IO_APIC_ADDR, IORESOURCE_ASSIGNED, IORESOURCE_FIXED, IORESOURCE_MEM, IORESOURCE_STORED, new_resource(), printk, and resource::size.
Referenced by lpc_read_resources().
Definition at line 501 of file lpc.c.
Referenced by byt_pcie_enable(), check_device_present(), enable_dev(), and sata_enable().
|
static |
|
static |
|
static |