![]() |
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_def.h>
#include <device/pci_ops.h>
#include <device/pci_ids.h>
#include "chip.h"
#include "i82801gx.h"
Go to the source code of this file.
Data Structures | |
struct | root_port_config |
Macros | |
#define | 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 | pci_init (struct device *dev) |
static int | get_num_ports (void) |
static void | root_port_init_config (struct device *dev) |
static void | ich_pcie_device_set_func (int index, int pci_func) |
static void | root_port_commit_config (struct device *dev) |
static void | ich_pcie_enable (struct device *dev) |
Variables | |
static struct root_port_config | rpc |
static struct device_operations | device_ops |
static const unsigned short | i82801gx_pcie_ids [] |
static const struct pci_driver i82801gx_pcie | __pci_driver |
|
static |
Definition at line 82 of file pcie.c.
References FDVCT, pci_read_config32(), pcidev_on_root(), and PCIE_4_PORTS_MAX.
Referenced by root_port_init_config().
|
static |
Definition at line 112 of file pcie.c.
References BIOS_DEBUG, pci_path::devfn, ICH_PCIE_DEV_SLOT, root_port_config::new_rpfn, device::path, 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 41 of file pcie.c.
References BIOS_DEBUG, pci_and_config16(), PCI_BRIDGE_CONTROL, PCI_BRIDGE_CTL_PARITY, PCI_CACHE_LINE_SIZE, PCI_COMMAND, PCI_COMMAND_MASTER, pci_or_config16(), pci_or_config32(), pci_read_config16(), pci_update_config32(), pci_write_config16(), pci_write_config8(), and printk.
Definition at line 137 of file pcie.c.
References BIOS_DEBUG, BIOS_ERR, BIOS_SPEW, device::chip_info, config, dev_path(), device::enabled, i82801gx_enable(), ich_pcie_device_set_func(), root_port_config::new_rpfn, NULL, root_port_config::num_ports, root_port_config::orig_rpfn, root_port_config::ports, printk, RCBA32, rpc, and RPFN.
Definition at line 91 of file pcie.c.
References BIOS_ERR, get_num_ports(), root_port_config::new_rpfn, root_port_config::num_ports, root_port_config::orig_rpfn, root_port_config::ports, printk, RCBA32, root_port_is_first(), root_port_number(), rpc, and RPFN.
|
inlinestatic |
Definition at line 25 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 30 of file pcie.c.
References pci_path::devfn, root_port_config::num_ports, device::path, device_path::pci, PCI_FUNC, and rpc.
|
inlinestatic |
Definition at line 36 of file pcie.c.
References pci_path::devfn, device::path, device_path::pci, and PCI_FUNC.
Referenced by root_port_init_config().
|
static |
|
static |
|
static |
|
static |
Definition at line 1 of file pcie.c.
Referenced by ich_pcie_device_set_func(), root_port_commit_config(), root_port_init_config(), and root_port_is_last().