coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pch.c File Reference
#include <console/console.h>
#include <device/pci_ops.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include "iobp.h"
#include "pch.h"
Include dependency graph for pch.c:

Go to the source code of this file.

Functions

static struct devicepch_get_lpc_device (void)
 
int pch_silicon_revision (void)
 
int pch_silicon_id (void)
 
enum pch_platform_type get_pch_platform_type (void)
 
u16 get_pmbase (void)
 
u16 get_gpiobase (void)
 
static void pch_enable_d3hot (struct device *dev)
 
void pch_disable_devfn (struct device *dev)
 
void pch_enable (struct device *dev)
 

Variables

struct chip_operations southbridge_intel_lynxpoint_ops
 

Function Documentation

◆ get_gpiobase()

u16 get_gpiobase ( void  )

Definition at line 69 of file pch.c.

References GPIOBASE, pch_get_lpc_device(), and pci_read_config16().

Here is the call graph for this function:

◆ get_pch_platform_type()

enum pch_platform_type get_pch_platform_type ( void  )

Definition at line 33 of file pch.c.

References pch_get_lpc_device(), PCI_DEVICE_ID, and pci_read_config16().

Here is the call graph for this function:

◆ get_pmbase()

u16 get_pmbase ( void  )

◆ pch_disable_devfn()

◆ pch_enable()

◆ pch_enable_d3hot()

static void pch_enable_d3hot ( struct device dev)
static

Definition at line 82 of file pch.c.

References PCH_PCS, PCH_PCS_PS_D3HOT, and pci_or_config32().

Referenced by pch_disable_devfn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pch_get_lpc_device()

static struct device* pch_get_lpc_device ( void  )
static

Definition at line 17 of file pch.c.

References pcidev_on_root().

Referenced by get_gpiobase(), get_pch_platform_type(), get_pmbase(), and pch_silicon_revision().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pch_silicon_id()

int pch_silicon_id ( void  )

Definition at line 33 of file pch.c.

Referenced by max_root_ports().

Here is the caller graph for this function:

◆ pch_silicon_revision()

int pch_silicon_revision ( void  )

Definition at line 23 of file pch.c.

References pch_get_lpc_device(), pci_read_config8(), and PCI_REVISION_ID.

Here is the call graph for this function:

Variable Documentation

◆ southbridge_intel_lynxpoint_ops

struct chip_operations southbridge_intel_lynxpoint_ops
Initial value:
= {
.enable_dev = pch_enable,
}
void pch_enable(struct device *dev)
Definition: pch.c:404

Definition at line 181 of file pch.c.