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

Go to the source code of this file.

Macros

#define MY_PCI_DEV(SEGBUS, DEV, FN)    ((((SEGBUS)&0xFFF) << 20) | (((DEV)&0x1F) << 15) | (((FN)&0x07) << 12))
 

Functions

uintptr_t uart_platform_base (unsigned int idx)
 

Macro Definition Documentation

◆ MY_PCI_DEV

#define MY_PCI_DEV (   SEGBUS,
  DEV,
  FN 
)     ((((SEGBUS)&0xFFF) << 20) | (((DEV)&0x1F) << 15) | (((FN)&0x07) << 12))

Definition at line 9 of file uart_debug.c.

Function Documentation

◆ uart_platform_base()

uintptr_t uart_platform_base ( unsigned int  idx)

Definition at line 12 of file uart_debug.c.

References MY_PCI_DEV, PCI_BASE_ADDRESS_1, pci_io_read_config32(), and SIZE_OF_HSUART_RES.

Here is the call graph for this function: