blob: 4311ae8bcc03282f1cfd9ffe37605af5ca81ff5f [file] [log] [blame]
Alexandru Gagniuc650cf232011-02-16 17:40:04 +00001/*
2 * This file is part of the coreboot project.
Stefan Reinauer5ff7c132011-10-31 12:56:45 -07003 *
Alexandru Gagniuc650cf232011-02-16 17:40:04 +00004 * 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 Gagniuc7b9bbee2011-03-02 19:56:28 +00008 * the Free Software Foundation, either version 2 of the License, or
Alexandru Gagniuc650cf232011-02-16 17:40:04 +00009 * (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 Gagniuc650cf232011-02-16 17:40:04 +000015 */
16
17#ifndef SOUTHBRIDGE_VIA_K8T890_K8X8XX_H
18#define SOUTHBRIDGE_VIA_K8T890_K8X8XX_H
19
Florian Zumbiehl1e1e8592011-11-01 20:18:30 +010020#include <cpu/x86/msr.h>
21#include <cpu/amd/mtrr.h>
Florian Zumbiehl0802ad92011-11-01 20:19:01 +010022#ifndef __PRE_RAM__
23#include <device/device.h>
24#endif
Alexandru Gagniuc650cf232011-02-16 17:40:04 +000025#include "k8t890.h"
26
Stefan Reinauer2e2b84e2011-11-08 09:58:29 -080027#ifndef __PRE_RAM__
Florian Zumbiehl1e1e8592011-11-01 20:18:30 +010028struct 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 Reinauer2e2b84e2011-11-08 09:58:29 -080038void k8x8xx_vt8237_mirrored_regs_fill(struct k8x8xx_vt8237_mirrored_regs *regs);
Florian Zumbiehl0802ad92011-11-01 20:19:01 +010039void k8x8xx_vt8237r_cfg(struct device *, struct device *);
40#endif
41
Alexandru Gagniuc650cf232011-02-16 17:40:04 +000042#endif /* SOUTHBRIDGE_VIA_K8T890_K8X8XX_H */