![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <cpu/intel/haswell/haswell.h>
#include <delay.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pciexp.h>
#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
#include <soc/lpc.h>
#include <soc/pch.h>
#include <soc/pci_devs.h>
#include <soc/rcba.h>
#include <soc/intel/broadwell/pch/chip.h>
#include <southbridge/intel/lynxpoint/iobp.h>
#include <southbridge/intel/lynxpoint/lp_gpio.h>
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | root_port_config |
Macros | |
#define | MAX_NUM_ROOT_PORTS 6 |
Functions | |
static int | root_port_is_first (struct device *dev) |
static int | root_port_is_last (struct device *dev) |
static int | root_port_number (struct device *dev) |
static void | root_port_config_update_gbe_port (void) |
static void | pcie_iosf_port_grant_count (struct device *dev) |
static void | root_port_init_config (struct device *dev) |
static void | pch_pcie_device_set_func (int index, int pci_func) |
static void | pcie_enable_clock_gating (void) |
static void | root_port_commit_config (void) |
static void | root_port_mark_disable (struct device *dev) |
static void | root_port_check_disable (struct device *dev) |
static void | pcie_add_0x0202000_iobp (u32 reg) |
static void | pch_pcie_early (struct device *dev) |
static void | pch_pcie_init (struct device *dev) |
static void | pch_pcie_enable (struct device *dev) |
static void | pcie_get_ltr_max_latencies (u16 *max_snoop, u16 *max_nosnoop) |
Variables | |
static struct root_port_config | rpc |
static struct pci_operations | pcie_ops |
static struct device_operations | device_ops |
static const unsigned short | pcie_device_ids [] |
static const struct pci_driver pch_pcie | __pci_driver |
|
static |
Definition at line 172 of file pcie.c.
References BIOS_DEBUG, pci_path::devfn, root_port_config::new_rpfn, device::path, PCH_DEV_SLOT_PCIE, device_path::pci, PCI_DEVFN, PCI_FUNC, PCI_SLOT, root_port_config::ports, printk, rpc, RPFN_FNMASK, and RPFN_FNSET.
Referenced by root_port_commit_config().
Definition at line 437 of file pcie.c.
References root_port_config::b0d28f0_32c, root_port_config::b0d28f4_32c, root_port_config::b0d28f5_32c, BIOS_DEBUG, config, CONFIG, config_of(), pci_and_config8(), pci_or_config32(), pci_read_config8(), pci_update_config32(), pci_update_config8(), pcie_add_0x0202000_iobp(), root_port_config::pin_ownership, printk, root_port_number(), and rpc.
Referenced by pch_pcie_enable().
Definition at line 593 of file pcie.c.
References device::enabled, pch_pcie_early(), root_port_check_disable(), root_port_commit_config(), root_port_init_config(), and root_port_is_last().
Definition at line 573 of file pcie.c.
References BIOS_DEBUG, pci_and_config16(), PCI_BRIDGE_CONTROL, PCI_BRIDGE_CTL_PARITY, PCI_COMMAND, PCI_COMMAND_MASTER, PCI_COMMAND_SERR, pci_or_config16(), pci_update_config16(), pci_write_config8(), and printk.
Definition at line 428 of file pcie.c.
References pch_iobp_read(), and pch_iobp_write().
Referenced by pch_pcie_early().
Definition at line 197 of file pcie.c.
References BROADWELL_FAMILY_ULT, cpu_family_model(), device::enabled, gpio_is_native(), root_port_config::num_ports, pci_or_config32(), pci_or_config8(), pci_update_config32(), pci_update_config8(), root_port_config::ports, RCBA32_OR, root_port_number(), and rpc.
Referenced by root_port_commit_config().
Definition at line 84 of file pcie.c.
References pci_read_config32(), and RCBA32.
Referenced by root_port_init_config().
Definition at line 357 of file pcie.c.
References device::enabled, root_port_config::gbe_port, root_port_config::pin_ownership, root_port_mark_disable(), root_port_number(), rpc, and root_port_config::strpfusecfg1.
Referenced by pch_pcie_enable().
Definition at line 272 of file pcie.c.
References BIOS_DEBUG, BIOS_ERR, BIOS_SPEW, root_port_config::coalesce, dev_path(), device::enabled, root_port_config::new_rpfn, NULL, root_port_config::num_ports, root_port_config::orig_rpfn, pch_disable_devfn(), pch_pcie_device_set_func(), pci_or_config32(), pci_read_config32(), pcie_enable_clock_gating(), root_port_config::ports, printk, RCBA32, rpc, RPFN, and udelay().
Referenced by pch_pcie_enable().
Definition at line 59 of file pcie.c.
References BIOS_DEBUG, root_port_config::gbe_port, printk, rpc, and root_port_config::strpfusecfg1.
Referenced by root_port_init_config().
Definition at line 105 of file pcie.c.
References root_port_config::b0d28f0_32c, root_port_config::b0d28f4_32c, root_port_config::b0d28f5_32c, BIOS_ERR, root_port_config::coalesce, config, config_of(), root_port_config::gbe_port, IOBP_PCICFG_READ, IOBP_PCICFG_WRITE, MAX_NUM_ROOT_PORTS, root_port_config::new_rpfn, root_port_config::num_ports, root_port_config::orig_rpfn, pch_iobp_exec(), pci_or_config8(), pci_read_config32(), pci_update_config8(), pci_write_config32(), pcie_iosf_port_grant_count(), root_port_config::pin_ownership, root_port_config::ports, printk, RCBA32, root_port_config_update_gbe_port(), root_port_is_first(), root_port_number(), rpc, RPFN, root_port_config::strpfusecfg1, root_port_config::strpfusecfg2, and root_port_config::strpfusecfg3.
Referenced by pch_pcie_enable().
|
inlinestatic |
Definition at line 43 of file pcie.c.
References pci_path::devfn, device::path, device_path::pci, and PCI_FUNC.
Referenced by root_port_init_config().
|
inlinestatic |
Definition at line 48 of file pcie.c.
References pci_path::devfn, root_port_config::num_ports, device::path, device_path::pci, PCI_FUNC, and rpc.
Referenced by pch_pcie_enable().
Definition at line 349 of file pcie.c.
References pci_path::devfn, device::enabled, root_port_config::new_rpfn, device::path, device_path::pci, PCI_FUNC, rpc, and RPFN_HIDE.
Referenced by root_port_check_disable().
|
inlinestatic |
Definition at line 54 of file pcie.c.
References pci_path::devfn, device::path, device_path::pci, and PCI_FUNC.
Referenced by pch_pcie_early(), pcie_enable_clock_gating(), root_port_check_disable(), and root_port_init_config().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 1 of file pcie.c.
Referenced by pch_pcie_device_set_func(), pch_pcie_early(), pcie_enable_clock_gating(), root_port_check_disable(), root_port_commit_config(), root_port_config_update_gbe_port(), root_port_init_config(), root_port_is_last(), and root_port_mark_disable().