coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
systemagent.h File Reference
Include dependency graph for systemagent.h:

Go to the source code of this file.

Macros

#define SA_IGD_OPROM_VENDEV   0x80860406
 
#define EPBAR   0x40
 
#define DMIBAR   0x68
 
#define SMRAM   0x88 /* System Management RAM Control */
 
#define D_OPEN   (1 << 6)
 
#define D_CLS   (1 << 5)
 
#define D_LCK   (1 << 4)
 
#define G_SMRAME   (1 << 3)
 
#define C_BASE_SEG   ((0 << 2) | (1 << 1) | (0 << 0))
 
#define CAPID0_A   0xe4
 
#define VTD_DISABLE   (1 << 23)
 
#define BIOS_RESET_CPL   0x5da8
 
#define GFXVTBAR   0x5400
 
#define EDRAMBAR   0x5408
 
#define VTVC0BAR   0x5410
 
#define GDXCBAR   0x5420
 
#define MCH_PKG_POWER_LIMIT_LO   0x59a0
 
#define MCH_PKG_POWER_LIMIT_HI   0x59a4
 
#define MCH_DDR_POWER_LIMIT_LO   0x58e0
 
#define MCH_DDR_POWER_LIMIT_HI   0x58e4
 
#define V_P2SB_IBDF_BUS   250
 
#define V_P2SB_IBDF_DEV   31
 
#define V_P2SB_IBDF_FUN   0
 
#define V_DEFAULT_IBDF   ((V_P2SB_IBDF_BUS << 8) | PCI_DEVFN(V_P2SB_IBDF_DEV, V_P2SB_IBDF_FUN))
 
#define V_P2SB_HBDF_BUS   250
 
#define V_P2SB_HBDF_DEV   15
 
#define V_P2SB_HBDF_FUN   0
 
#define V_DEFAULT_HBDF   ((V_P2SB_HBDF_BUS << 8) | PCI_DEVFN(V_P2SB_HBDF_DEV, V_P2SB_HBDF_FUN))
 

Functions

bool soc_vtd_enabled (void)
 

Variables

static const struct sa_mmio_descriptor soc_gfxvt_mmio_descriptor
 
static const struct sa_mmio_descriptor soc_vtvc0_mmio_descriptor
 

Macro Definition Documentation

◆ BIOS_RESET_CPL

#define BIOS_RESET_CPL   0x5da8

Definition at line 23 of file systemagent.h.

◆ C_BASE_SEG

#define C_BASE_SEG   ((0 << 2) | (1 << 1) | (0 << 0))

Definition at line 19 of file systemagent.h.

◆ CAPID0_A

#define CAPID0_A   0xe4

Definition at line 20 of file systemagent.h.

◆ D_CLS

#define D_CLS   (1 << 5)

Definition at line 16 of file systemagent.h.

◆ D_LCK

#define D_LCK   (1 << 4)

Definition at line 17 of file systemagent.h.

◆ D_OPEN

#define D_OPEN   (1 << 6)

Definition at line 15 of file systemagent.h.

◆ DMIBAR

#define DMIBAR   0x68

Definition at line 13 of file systemagent.h.

◆ EDRAMBAR

#define EDRAMBAR   0x5408

Definition at line 25 of file systemagent.h.

◆ EPBAR

#define EPBAR   0x40

Definition at line 12 of file systemagent.h.

◆ G_SMRAME

#define G_SMRAME   (1 << 3)

Definition at line 18 of file systemagent.h.

◆ GDXCBAR

#define GDXCBAR   0x5420

Definition at line 27 of file systemagent.h.

◆ GFXVTBAR

#define GFXVTBAR   0x5400

Definition at line 24 of file systemagent.h.

◆ MCH_DDR_POWER_LIMIT_HI

#define MCH_DDR_POWER_LIMIT_HI   0x58e4

Definition at line 32 of file systemagent.h.

◆ MCH_DDR_POWER_LIMIT_LO

#define MCH_DDR_POWER_LIMIT_LO   0x58e0

Definition at line 31 of file systemagent.h.

◆ MCH_PKG_POWER_LIMIT_HI

#define MCH_PKG_POWER_LIMIT_HI   0x59a4

Definition at line 30 of file systemagent.h.

◆ MCH_PKG_POWER_LIMIT_LO

#define MCH_PKG_POWER_LIMIT_LO   0x59a0

Definition at line 29 of file systemagent.h.

◆ SA_IGD_OPROM_VENDEV

#define SA_IGD_OPROM_VENDEV   0x80860406

Definition at line 8 of file systemagent.h.

◆ SMRAM

#define SMRAM   0x88 /* System Management RAM Control */

Definition at line 14 of file systemagent.h.

◆ V_DEFAULT_HBDF

#define V_DEFAULT_HBDF   ((V_P2SB_HBDF_BUS << 8) | PCI_DEVFN(V_P2SB_HBDF_DEV, V_P2SB_HBDF_FUN))

Definition at line 59 of file systemagent.h.

◆ V_DEFAULT_IBDF

#define V_DEFAULT_IBDF   ((V_P2SB_IBDF_BUS << 8) | PCI_DEVFN(V_P2SB_IBDF_DEV, V_P2SB_IBDF_FUN))

Definition at line 54 of file systemagent.h.

◆ V_P2SB_HBDF_BUS

#define V_P2SB_HBDF_BUS   250

Definition at line 56 of file systemagent.h.

◆ V_P2SB_HBDF_DEV

#define V_P2SB_HBDF_DEV   15

Definition at line 57 of file systemagent.h.

◆ V_P2SB_HBDF_FUN

#define V_P2SB_HBDF_FUN   0

Definition at line 58 of file systemagent.h.

◆ V_P2SB_IBDF_BUS

#define V_P2SB_IBDF_BUS   250

Definition at line 51 of file systemagent.h.

◆ V_P2SB_IBDF_DEV

#define V_P2SB_IBDF_DEV   31

Definition at line 52 of file systemagent.h.

◆ V_P2SB_IBDF_FUN

#define V_P2SB_IBDF_FUN   0

Definition at line 53 of file systemagent.h.

◆ VTD_DISABLE

#define VTD_DISABLE   (1 << 23)

Definition at line 21 of file systemagent.h.

◆ VTVC0BAR

#define VTVC0BAR   0x5410

Definition at line 26 of file systemagent.h.

Function Documentation

◆ soc_vtd_enabled()

bool soc_vtd_enabled ( void  )

Definition at line 18 of file systemagent.c.

References CAPID0_A, get_uint_option(), pci_read_config32(), pcidev_path_on_root(), SA_DEVFN_ROOT, and VTD_DISABLE.

Referenced by platform_fsp_silicon_init_params_cb(), sa_write_acpi_tables(), and soc_add_fixed_mmio_resources().

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

Variable Documentation

◆ soc_gfxvt_mmio_descriptor

const struct sa_mmio_descriptor soc_gfxvt_mmio_descriptor
static
Initial value:
= {
"GFXVTBAR"
}
#define GFXVT_BASE_ADDRESS
Definition: memmap.h:18
#define GFXVT_BASE_SIZE
Definition: memmap.h:19
#define GFXVTBAR
Definition: systemagent.h:24

Definition at line 34 of file systemagent.h.

Referenced by soc_add_fixed_mmio_resources(), and systemagent_vtd_init().

◆ soc_vtvc0_mmio_descriptor

const struct sa_mmio_descriptor soc_vtvc0_mmio_descriptor
static
Initial value:
= {
"VTVC0BAR"
}
#define VTVC0_BASE_ADDRESS
Definition: memmap.h:21
#define VTVC0_BASE_SIZE
Definition: memmap.h:22
#define VTVC0BAR
Definition: systemagent.h:26

Definition at line 34 of file systemagent.h.

Referenced by soc_add_fixed_mmio_resources(), and systemagent_vtd_init().