coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
systemagent.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_CANNONLAKE_SYSTEMAGENT_H
4 #define SOC_CANNONLAKE_SYSTEMAGENT_H
5 
7 
8 /* Device 0:0.0 PCI configuration space */
9 
10 #define EPBAR 0x40
11 #define DMIBAR 0x68
12 #define SMRAM 0x88 /* System Management RAM Control */
13 #define D_OPEN (1 << 6)
14 #define D_CLS (1 << 5)
15 #define D_LCK (1 << 4)
16 #define G_SMRAME (1 << 3)
17 #define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0))
18 #define CAPID0_A 0xe4
19 #define VTD_DISABLE (1 << 23)
20 
21 #define BIOS_RESET_CPL 0x5da8
22 #define GFXVTBAR 0x5400
23 #define EDRAMBAR 0x5408
24 #define IPUVTBAR 0x7880
25 #define VTVC0BAR 0x5410
26 #define REGBAR 0x5420
27 #define VTBAR_ENABLED 0x01
28 #define VTBAR_MASK 0x7ffffff000ull
29 
30 #define MCH_PKG_POWER_LIMIT_LO 0x59a0
31 #define MCH_PKG_POWER_LIMIT_HI 0x59a4
32 #define MCH_DDR_POWER_LIMIT_LO 0x58e0
33 #define MCH_DDR_POWER_LIMIT_HI 0x58e4
34 
35 #define IMRBASE 0x6A40
36 #define IMRLIMIT 0x6A48
37 
38 static const struct sa_mmio_descriptor soc_vtd_resources[] = {
41 };
42 
43 #define V_P2SB_CFG_IBDF_BUS 0
44 #define V_P2SB_CFG_IBDF_DEV 30
45 #define V_P2SB_CFG_IBDF_FUNC 7
46 #define V_P2SB_CFG_HBDF_BUS 0
47 #define V_P2SB_CFG_HBDF_DEV 30
48 #define V_P2SB_CFG_HBDF_FUNC 6
49 #endif
#define VTVC0BAR
Definition: systemagent.h:25
#define GFXVTBAR
Definition: systemagent.h:22
static const struct sa_mmio_descriptor soc_vtd_resources[]
Definition: systemagent.h:38
#define GFXVT_BASE_ADDRESS
Definition: memmap.h:18
#define GFXVT_BASE_SIZE
Definition: memmap.h:19
#define VTVC0_BASE_ADDRESS
Definition: memmap.h:21
#define VTVC0_BASE_SIZE
Definition: memmap.h:22