Debian Codegraph @

src/northbridge/intel/haswell/registers/host_bridge.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #ifndef HASWELL_REGISTERS_HOST_BRIDGE_H
4 #define HASWELL_REGISTERS_HOST_BRIDGE_H
5
6 #define EPBAR 0x40
7 #define MCHBAR 0x48
8
9 #define GGC 0x50 /* GMCH Graphics Control */
10 #define GGC_DISABLE_VGA_IO_DECODE (1 << 1)
11 #define GGC_IGD_MEM_IN_32MB_UNITS(x) (((x) & 0x1f) << 3)
12 #define GGC_GTT_0MB (0 << 8)
13 #define GGC_GTT_1MB (1 << 8)
14 #define GGC_GTT_2MB (2 << 8)
15
16 #define DEVEN 0x54 /* Device Enable */
17 #define DEVEN_D7EN (1 << 14)
18 #define DEVEN_D4EN (1 << 7)
19 #define DEVEN_D3EN (1 << 5)
20 #define DEVEN_D2EN (1 << 4)
21 #define DEVEN_D1F0EN (1 << 3)
22 #define DEVEN_D1F1EN (1 << 2)
23 #define DEVEN_D1F2EN (1 << 1)
24 #define DEVEN_D0EN (1 << 0)
25
26 #define PAVPC 0x58
27 #define DPR 0x5c
28 #define DPR_EPM (1 << 2)
29 #define DPR_PRS (1 << 1)
30 #define DPR_SIZE_MASK 0xff0
31
32 #define PCIEXBAR 0x60
33 #define DMIBAR 0x68
34
35 #define MESEG_BASE 0x70 /* Management Engine Base */
36 #define MESEG_LIMIT 0x78 /* Management Engine Limit */
37 #define MELCK (1 << 10) /* ME Range Lock */
38 #define ME_STLEN_EN (1 << 11) /* ME Stolen Memory Enable */
39
40 #define PAM0 0x80
41 #define PAM1 0x81
42 #define PAM2 0x82
43 #define PAM3 0x83
44 #define PAM4 0x84
45 #define PAM5 0x85
46 #define PAM6 0x86
47
48 #define LAC 0x87 /* Legacy Access Control */
49 #define SMRAM 0x88 /* System Management RAM Control */
50 #define D_OPEN (1 << 6)
51 #define D_CLS (1 << 5)
52 #define D_LCK (1 << 4)
53 #define G_SMRAME (1 << 3)
54 #define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0))
55
56 #define REMAPBASE 0x90 /* Remap base */
57 #define REMAPLIMIT 0x98 /* Remap limit */
58 #define TOM 0xa0 /* Top of DRAM in memory controller space */
59 #define TOUUD 0xa8 /* Top of Upper Usable DRAM */
60 #define BDSM 0xb0 /* Base Data Stolen Memory */
61 #define BGSM 0xb4 /* Base GTT Stolen Memory */
62 #define TSEG 0xb8 /* TSEG base */
63 #define TOLUD 0xbc /* Top of Low Used Memory */
64
65 #define SKPAD 0xdc /* Scratchpad Data */
66
67 #define CAPID0_A 0xe4
68 #define CAPID_ECCDIS (1 << 25)
69 #define VTD_DISABLE (1 << 23)
70 #define CAPID_DDPCD (1 << 14)
71 #define CAPID_PDCD (1 << 12)
72 #define CAPID_DDRSZ(x) (((x) >> 19) & 0x3)
73
74 #define CAPID0_B 0xe8
75
76 #endif /* HASWELL_REGISTERS_HOST_BRIDGE_H */