Loading...
Searching...
No Matches
Go to the documentation of this file.
12#ifndef __Q35_MCH_ICH9_H__
13#define __Q35_MCH_ICH9_H__
23#define INTEL_Q35_MCH_DEVICE_ID 0x29C0
28#define DRAMC_REGISTER_Q35(Offset) PCI_LIB_ADDRESS (0, 0, 0, (Offset))
30#define MCH_EXT_TSEG_MB 0x50
31#define MCH_EXT_TSEG_MB_QUERY 0xFFFF
34#define MCH_GGC_IVD BIT1
36#define MCH_PCIEXBAR_LOW 0x60
37#define MCH_PCIEXBAR_LOWMASK 0x0FFFFFFF
38#define MCH_PCIEXBAR_BUS_FF 0
39#define MCH_PCIEXBAR_EN BIT0
41#define MCH_PCIEXBAR_HIGH 0x64
42#define MCH_PCIEXBAR_HIGHMASK 0xFFFFFFF0
52#define MCH_DEFAULT_SMBASE_CTL 0x9C
53#define MCH_DEFAULT_SMBASE_QUERY 0xFF
54#define MCH_DEFAULT_SMBASE_IN_RAM 0x01
55#define MCH_DEFAULT_SMBASE_LCK 0x02
56#define MCH_DEFAULT_SMBASE_SIZE SIZE_128KB
59#define MCH_SMRAM_D_LCK BIT4
60#define MCH_SMRAM_G_SMRAME BIT3
62#define MCH_ESMRAMC 0x9E
63#define MCH_ESMRAMC_H_SMRAME BIT7
64#define MCH_ESMRAMC_E_SMERR BIT6
65#define MCH_ESMRAMC_SM_CACHE BIT5
66#define MCH_ESMRAMC_SM_L1 BIT4
67#define MCH_ESMRAMC_SM_L2 BIT3
68#define MCH_ESMRAMC_TSEG_EXT (BIT2 | BIT1)
69#define MCH_ESMRAMC_TSEG_8MB BIT2
70#define MCH_ESMRAMC_TSEG_2MB BIT1
71#define MCH_ESMRAMC_TSEG_1MB 0
72#define MCH_ESMRAMC_TSEG_MASK (BIT2 | BIT1)
73#define MCH_ESMRAMC_T_EN BIT0
76#define MCH_GBSM_MB_SHIFT 20
79#define MCH_BGSM_MB_SHIFT 20
81#define MCH_TSEGMB 0xAC
82#define MCH_TSEGMB_MB_SHIFT 20
85#define MCH_TOLUD_MB_SHIFT 4
90#define POWER_MGMT_REGISTER_Q35(Offset) \
91 PCI_LIB_ADDRESS (0, 0x1f, 0, (Offset))
93#define POWER_MGMT_REGISTER_Q35_EFI_PCI_ADDRESS(Offset) \
94 EFI_PCI_ADDRESS (0, 0x1f, 0, (Offset))
96#define ICH9_PMBASE 0x40
97#define ICH9_PMBASE_MASK (BIT15 | BIT14 | BIT13 | BIT12 | BIT11 | \
98 BIT10 | BIT9 | BIT8 | BIT7)
100#define ICH9_ACPI_CNTL 0x44
101#define ICH9_ACPI_CNTL_ACPI_EN BIT7
103#define ICH9_GEN_PMCON_1 0xA0
104#define ICH9_GEN_PMCON_1_SMI_LOCK BIT4
106#define ICH9_RCBA 0xF0
107#define ICH9_RCBA_EN BIT0
112#define ICH9_APM_CNT 0xB2
113#define ICH9_APM_CNT_CPU_HOTPLUG 0x04
114#define ICH9_APM_STS 0xB3
116#define ICH9_CPU_HOTPLUG_BASE 0x0CD8
121#define ICH9_PMBASE_OFS_SMI_EN 0x30
122#define ICH9_SMI_EN_APMC_EN BIT5
123#define ICH9_SMI_EN_GBL_SMI_EN BIT0
125#define ICH9_ROOT_COMPLEX_BASE 0xFED1C000