Alexandru Gagniuc | 650cf23 | 2011-02-16 17:40:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
Stefan Reinauer | 5ff7c13 | 2011-10-31 12:56:45 -0700 | [diff] [blame] | 3 | * |
Alexandru Gagniuc | 650cf23 | 2011-02-16 17:40:04 +0000 | [diff] [blame] | 4 | * Copyright (C) 2011 Alexandru Gagniuc <mr.nuke.me@gmail.com> |
| 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 |
Alexandru Gagniuc | 7b9bbee | 2011-03-02 19:56:28 +0000 | [diff] [blame] | 8 | * the Free Software Foundation, either version 2 of the License, or |
Alexandru Gagniuc | 650cf23 | 2011-02-16 17:40:04 +0000 | [diff] [blame] | 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Alexandru Gagniuc | 650cf23 | 2011-02-16 17:40:04 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #ifndef SOUTHBRIDGE_VIA_K8T890_K8X8XX_H |
| 18 | #define SOUTHBRIDGE_VIA_K8T890_K8X8XX_H |
| 19 | |
Florian Zumbiehl | 1e1e859 | 2011-11-01 20:18:30 +0100 | [diff] [blame] | 20 | #include <cpu/x86/msr.h> |
| 21 | #include <cpu/amd/mtrr.h> |
Florian Zumbiehl | 0802ad9 | 2011-11-01 20:19:01 +0100 | [diff] [blame] | 22 | #ifndef __PRE_RAM__ |
| 23 | #include <device/device.h> |
| 24 | #endif |
Alexandru Gagniuc | 650cf23 | 2011-02-16 17:40:04 +0000 | [diff] [blame] | 25 | #include "k8t890.h" |
| 26 | |
Stefan Reinauer | 2e2b84e | 2011-11-08 09:58:29 -0800 | [diff] [blame] | 27 | #ifndef __PRE_RAM__ |
Florian Zumbiehl | 1e1e859 | 2011-11-01 20:18:30 +0100 | [diff] [blame] | 28 | struct k8x8xx_vt8237_mirrored_regs { |
| 29 | u16 low_top_address; |
| 30 | u8 rom_shadow_ctrl_pg_c, |
| 31 | rom_shadow_ctrl_pg_d, |
| 32 | rom_shadow_ctrl_pg_e_memhole_smi_decoding, |
| 33 | rom_shadow_ctrl_pg_f_memhole, |
| 34 | smm_apic_decoding, |
| 35 | shadow_mem_ctrl; |
| 36 | }; |
| 37 | |
Stefan Reinauer | 2e2b84e | 2011-11-08 09:58:29 -0800 | [diff] [blame] | 38 | void k8x8xx_vt8237_mirrored_regs_fill(struct k8x8xx_vt8237_mirrored_regs *regs); |
Florian Zumbiehl | 0802ad9 | 2011-11-01 20:19:01 +0100 | [diff] [blame] | 39 | void k8x8xx_vt8237r_cfg(struct device *, struct device *); |
| 40 | #endif |
| 41 | |
Alexandru Gagniuc | 650cf23 | 2011-02-16 17:40:04 +0000 | [diff] [blame] | 42 | #endif /* SOUTHBRIDGE_VIA_K8T890_K8X8XX_H */ |