![]() |
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_ops.h>
#include <device/pciexp.h>
#include <device/pci_ids.h>
#include <reg_script.h>
#include <soc/pci_devs.h>
#include <soc/pcie.h>
#include <soc/ramstage.h>
#include <soc/smm.h>
#include "chip.h"
Go to the source code of this file.
Functions | |
static int | root_port_offset (struct device *dev) |
static int | is_first_port (struct device *dev) |
static void | byt_pcie_init (struct device *dev) |
static void | check_port_enabled (struct device *dev) |
static u8 | all_ports_no_dev_present (struct device *dev) |
static void | check_device_present (struct device *dev) |
static void | byt_pcie_enable (struct device *dev) |
static void | byt_pciexp_scan_bridge (struct device *dev) |
Variables | |
static int | pll_en_off |
static uint32_t | strpfusecfg |
static const struct reg_script | init_static_before_exit_latency [] |
static const struct reg_script | init_static_after_exit_latency [] |
static const struct reg_script | no_dev_behind_port [] |
static struct device_operations | device_ops |
static const unsigned short | pci_device_ids [] |
static const struct pci_driver pcie_root_ports | __pci_driver |
Definition at line 142 of file pcie.c.
References reg_script::dev, pci_path::devfn, device::path, device_path::pci, pci_read_config32(), pci_read_config8(), pci_write_config8(), PCIE_ROOT_PORT_COUNT, PDS, SI, SLCTL_SLSTS, and XCAP.
Referenced by check_device_present().
Definition at line 195 of file pcie.c.
References check_device_present(), check_port_enabled(), config, config_of(), reg_script::dev, is_first_port(), pci_read_config32(), PHYCTL2_IOSFBCTL, pll_en_off, PLL_OFF_EN, SMM_SAVE_PARAM_PCIE_WAKE_ENABLE, smm_southcluster_save_param(), southcluster_enable_dev(), STRPFUSECFG, and strpfusecfg.
Definition at line 75 of file pcie.c.
References BBCLKREQEN, config, config_of(), reg_script::dev, HPC, HPS, init_static_after_exit_latency, init_static_before_exit_latency, is_first_port(), L1EXIT_MASK, L1EXIT_SHIFT, LCAP, LCLKREQEN, pci_read_config32(), pci_write_config32(), PCIEDBG, pll_en_off, PWRCTL, REG_PCI_OR32, REG_PCI_RMW32, REG_SCRIPT_END, REG_SCRIPT_NEXT, reg_script_run_on_dev(), root_port_offset(), RPDBCGEN, RPDLCGEN, RPDTSQPOL, RPL1SQPOL, RPPGEN, RPSCGEN, SLCAP, SLN_SHIFT, SLS_SHIFT, SLV_SHIFT, SPCE, SRDBCGEN, and SRDLCGEN.
Definition at line 217 of file pcie.c.
References reg_script::dev, do_pci_scan_bridge(), LCTL, pciexp_scan_bus(), REG_PCI_POLL32, REG_SCRIPT_END, and reg_script_run_on_dev().
Definition at line 171 of file pcie.c.
References all_ports_no_dev_present(), BIOS_DEBUG, reg_script::dev, device::enabled, is_first_port(), LCTL, LD, no_dev_behind_port, pci_read_config32(), pci_write_config32(), PDS, printk, reg_script_run_on_dev(), SI, SLCTL_SLSTS, and XCAP.
Referenced by byt_pcie_enable().
Definition at line 116 of file pcie.c.
References reg_script::dev, device::enabled, LANECFG_MASK, LANECFG_SHIFT, PCIE_PORT1_FUNC, PCIE_PORT2_FUNC, PCIE_PORT3_FUNC, PCIE_PORT4_FUNC, root_port_offset(), and strpfusecfg.
Referenced by byt_pcie_enable().
|
inlinestatic |
Definition at line 26 of file pcie.c.
Referenced by byt_pcie_enable(), byt_pcie_init(), and check_device_present().
|
inlinestatic |
Definition at line 21 of file pcie.c.
References pci_path::devfn, device::path, device_path::pci, and PCI_FUNC.
Referenced by byt_pcie_init(), and check_port_enabled().
|
static |
|
static |
|
static |
Definition at line 26 of file pcie.c.
Referenced by byt_pcie_init().
|
static |
|
static |
Definition at line 75 of file pcie.c.
Referenced by check_device_present().
|
static |
|
static |
Definition at line 18 of file pcie.c.
Referenced by byt_pcie_enable(), and byt_pcie_init().
|
static |
Definition at line 19 of file pcie.c.
Referenced by byt_pcie_enable(), and check_port_enabled().