![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include "chip.h"
#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>
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 | pcie_init (struct device *dev) |
static void | check_port_enabled (struct device *dev) |
static void | check_device_present (struct device *dev) |
static void | pcie_enable (struct device *dev) |
Variables | |
static int | pll_en_off |
static uint32_t | strpfusecfg |
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 66 of file pcie.c.
References BIOS_DEBUG, device::enabled, is_first_port(), LCTL, LD, MAX_ROOT_PORTS_BSW, no_dev_behind_port, pci_read_config32(), pci_write_config32(), PDS, printk, reg_script_run_on_dev(), SI, SLCTL_SLSTS, southcluster_enable_dev(), and XCAP.
Definition at line 40 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.
|
inlinestatic |
Definition at line 24 of file pcie.c.
References PCIE_PORT1_FUNC, and root_port_offset().
Referenced by check_device_present().
Definition at line 29 of file pcie.c.
Referenced by mainboard_romstage_entry().
|
inlinestatic |
Definition at line 19 of file pcie.c.
References pci_path::devfn, device::path, device_path::pci, and PCI_FUNC.
Referenced by check_port_enabled(), and is_first_port().
|
static |
|
static |
|
static |
Definition at line 29 of file pcie.c.
Referenced by check_device_present().
|
static |
|
static |
Definition at line 17 of file pcie.c.
Referenced by check_port_enabled().