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

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

uint64_t ecam0_get_bar_val (pci_devfn_t dev, u8 bar)
 Get PCI BAR address from cavium specific extended capability. More...
 

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

Definition at line 7 of file ecam.c.

Function Documentation

◆ ecam0_get_bar_val()

uint64_t ecam0_get_bar_val ( pci_devfn_t  dev,
u8  bar 
)

Get PCI BAR address from cavium specific extended capability.

Use regular BAR if not found in extended capability space.

Returns
The physical address of the BAR, zero on error

Definition at line 21 of file ecam.c.

References PCI_BASE_ADDRESS_0, pci_read_config32(), pci_read_config8(), and pci_s_find_capability().

Referenced by ecam0_pci_enable_msix().

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