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

Go to the source code of this file.

Functions

int pci_early_device_probe (u8 bus, u8 dev, u32 mmio_base)
 
static int oxpcie_uart_active (void)
 
uintptr_t uart_platform_base (unsigned int idx)
 
void oxford_remap (u32 new_base)
 
unsigned int uart_platform_refclk (void)
 

Variables

static unsigned int oxpcie_present
 
static DEVTREE_CONST u32 uart0_base = CONFIG_EARLY_PCI_MMIO_BASE + 0x1000
 

Function Documentation

◆ oxford_remap()

void oxford_remap ( u32  new_base)

Definition at line 65 of file oxpcie_early.c.

References uart0_base.

◆ oxpcie_uart_active()

static int oxpcie_uart_active ( void  )
static

Definition at line 53 of file oxpcie_early.c.

References oxpcie_present.

Referenced by uart_platform_base().

Here is the caller graph for this function:

◆ pci_early_device_probe()

int pci_early_device_probe ( u8  bus,
u8  dev,
u32  mmio_base 
)

◆ uart_platform_base()

uintptr_t uart_platform_base ( unsigned int  idx)

Definition at line 58 of file oxpcie_early.c.

References oxpcie_uart_active(), and uart0_base.

Referenced by platform_fsp_memory_init_params_cb(), and uart_fill_lb().

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

◆ uart_platform_refclk()

unsigned int uart_platform_refclk ( void  )

Definition at line 72 of file oxpcie_early.c.

Referenced by dt_platform_fixup(), platform_fsp_memory_init_params_cb(), uart_fill_lb(), and uart_init().

Here is the caller graph for this function:

Variable Documentation

◆ oxpcie_present

unsigned int oxpcie_present
static

Definition at line 10 of file oxpcie_early.c.

Referenced by oxpcie_uart_active(), and pci_early_device_probe().

◆ uart0_base

DEVTREE_CONST u32 uart0_base = CONFIG_EARLY_PCI_MMIO_BASE + 0x1000
static

Definition at line 11 of file oxpcie_early.c.

Referenced by oxford_remap(), and uart_platform_base().