Marc Jones | 8ae8c88 | 2007-12-19 01:32:08 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Marc Jones | 8ae8c88 | 2007-12-19 01:32:08 +0000 | [diff] [blame] | 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 | |
Patrick Georgi | 3d5bb23 | 2010-05-09 21:15:13 +0000 | [diff] [blame^] | 23 | #include <cpu/x86/msr.h> |
| 24 | |
Marc Jones | 8ae8c88 | 2007-12-19 01:32:08 +0000 | [diff] [blame] | 25 | #define HWCR_MSR 0xC0010015 |
| 26 | #define NB_CFG_MSR 0xC001001f |
| 27 | #define LS_CFG_MSR 0xC0011020 |
| 28 | #define IC_CFG_MSR 0xC0011021 |
| 29 | #define DC_CFG_MSR 0xC0011022 |
| 30 | #define BU_CFG_MSR 0xC0011023 |
Marco Schmidt | c263b44 | 2009-06-06 11:21:52 +0000 | [diff] [blame] | 31 | #define BU_CFG2_MSR 0xC001102A |
Marc Jones | 8ae8c88 | 2007-12-19 01:32:08 +0000 | [diff] [blame] | 32 | |
| 33 | #define CPU_ID_FEATURES_MSR 0xC0011004 |
| 34 | #define CPU_ID_HYPER_EXT_FEATURES 0xC001100d |
| 35 | #define LOGICAL_CPUS_NUM_MSR 0xC001100d |
| 36 | #define CPU_ID_EXT_FEATURES_MSR 0xC0011005 |
| 37 | |
Myles Watson | 362db61 | 2010-04-08 15:12:18 +0000 | [diff] [blame] | 38 | msr_t rdmsr_amd(u32 index); |
| 39 | void wrmsr_amd(u32 index, msr_t msr); |
| 40 | |
Marc Jones | 8ae8c88 | 2007-12-19 01:32:08 +0000 | [diff] [blame] | 41 | #endif /* CPU_AMD_MODEL_10XXX_MSR_H */ |