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

Go to the source code of this file.

Functions

static void dnv_ns_uart_read_resources (struct device *dev)
 
static void hide_hsuarts (void)
 
void platform_fsp_notify_status (enum fsp_notify_phase phase)
 

Variables

static struct device_operations uart_ops
 
static const struct pci_driver uart_driver __pci_driver
 

Function Documentation

◆ dnv_ns_uart_read_resources()

static void dnv_ns_uart_read_resources ( struct device dev)
static

Definition at line 19 of file uart.c.

◆ hide_hsuarts()

static void hide_hsuarts ( void  )
static

Definition at line 51 of file uart.c.

References BIOS_DEBUG, DENVERTON_UARTS_TO_INI, HSUART_DEV, NULL, PCI_FUNC_RDCFG_HIDE, pci_or_config32(), pcidev_on_root(), and printk.

Referenced by platform_fsp_notify_status().

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

◆ platform_fsp_notify_status()

void platform_fsp_notify_status ( enum fsp_notify_phase  phase)

Definition at line 67 of file uart.c.

References CONFIG, END_OF_FIRMWARE, and hide_hsuarts().

Here is the call graph for this function:

Variable Documentation

◆ __pci_driver

const struct pci_driver uart_driver __pci_driver
static
Initial value:
= {
.ops = &uart_ops,
.vendor = PCI_VID_INTEL,
}
#define PCI_DID_INTEL_DNV_HSUART
Definition: pci_ids.h:2781
#define PCI_VID_INTEL
Definition: pci_ids.h:2157
static struct device_operations uart_ops
Definition: uart.c:38

Definition at line 19 of file uart.c.

◆ uart_ops

struct device_operations uart_ops
static
Initial value:
= {
.read_resources = dnv_ns_uart_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = pci_dev_init,
}
void pci_dev_init(struct device *dev)
Default handler: only runs the relevant PCI BIOS.
Definition: pci_device.c:873
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
static void dnv_ns_uart_read_resources(struct device *dev)
Definition: uart.c:19

Definition at line 19 of file uart.c.