Make AMD SMM SMP aware
[coreboot.git] / src / include / cpu / amd / model_10xxx_msr.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007 Advanced Micro Devices, Inc.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 #ifndef CPU_AMD_MODEL_10XXX_MSR_H
21 #define CPU_AMD_MODEL_10XXX_MSR_H
22
23 #include <cpu/x86/msr.h>
24
25 #define SMM_BASE_MSR                    0xC0010111
26 #define SMM_ADDR_MSR                    0xC0010112
27 #define SMM_MASK_MSR                    0xC0010113
28
29 #define HWCR_MSR                        0xC0010015
30 #define NB_CFG_MSR                      0xC001001f
31 #define LS_CFG_MSR                      0xC0011020
32 #define IC_CFG_MSR                      0xC0011021
33 #define DC_CFG_MSR                      0xC0011022
34 #define BU_CFG_MSR                      0xC0011023
35 #define BU_CFG2_MSR                     0xC001102A
36
37 #define CPU_ID_FEATURES_MSR             0xC0011004
38 #define CPU_ID_HYPER_EXT_FEATURES       0xC001100d
39 #define LOGICAL_CPUS_NUM_MSR            0xC001100d
40 #define CPU_ID_EXT_FEATURES_MSR 0xC0011005
41
42 msr_t rdmsr_amd(u32 index);
43 void wrmsr_amd(u32 index, msr_t msr);
44
45 #endif /* CPU_AMD_MODEL_10XXX_MSR_H */