Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2012 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. |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef CPU_AMD_FAM15_H |
| 17 | #define CPU_AMD_FAM15_H |
| 18 | |
| 19 | #include <cpu/x86/msr.h> |
| 20 | |
| 21 | #define MCI_STATUS 0x00000401 |
Alexandru Gagniuc | 53072d8 | 2014-04-12 21:57:18 -0500 | [diff] [blame] | 22 | #define MSR_SMM_BASE 0xC0010111 |
| 23 | #define MSR_SMM_MASK 0xC0010113 |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 24 | #define HWCR_MSR 0xC0010015 |
| 25 | #define NB_CFG_MSR 0xC001001f |
| 26 | |
| 27 | #define LS_CFG_MSR 0xC0011020 |
| 28 | #define IC_CFG_MSR 0xC0011021 |
| 29 | #define DC_CFG_MSR 0xC0011022 |
| 30 | #define CU_CFG_MSR 0xC0011023 |
| 31 | #define CU_CFG2_MSR 0xC001102A |
| 32 | |
| 33 | #define CPU_ID_FEATURES_MSR 0xC0011004 |
| 34 | #define CPU_ID_EXT_FEATURES_MSR 0xC0011005 |
| 35 | |
zbao | 2c08f6a | 2012-07-02 15:32:58 +0800 | [diff] [blame] | 36 | #if defined(__PRE_RAM__) |
| 37 | void wait_all_core0_started(void); |
| 38 | void wait_all_other_cores_started(u32 bsp_apicid); |
| 39 | void wait_all_aps_started(u32 bsp_apicid); |
| 40 | void allow_all_aps_stop(u32 bsp_apicid); |
| 41 | #endif |
| 42 | u32 get_initial_apicid(void); |
| 43 | void get_bus_conf(void); |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 44 | |
| 45 | #endif /* CPU_AMD_FAM15_H */ |