Various license header consistency fixes (trivial).
[coreboot.git] / src / southbridge / via / vt8237r / chip.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007 Rudolf Marek <r.marek@assembler.cz>
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 SOUTHBRIDGE_VIA_VT8237R_CHIP_H
21 #define SOUTHBRIDGE_VIA_VT8237R_CHIP_H
22
23 #include <stdint.h>
24
25 extern struct chip_operations southbridge_via_vt8237r_ops;
26
27 struct southbridge_via_vt8237r_config {
28         /**
29          * Function disable. 1 = disabled.
30          * 7 Dev 17 fn 6 MC97
31          * 6 Dev 17 fn 5 AC97
32          * 5 Dev 16 fn 1 USB 1.1 UHCI Ports 2-3
33          * 4 Dev 16 fn 0 USB 1.1 UHCI Ports 0-1
34          * 3 Dev 15 fn 0 Serial ATA
35          * 2 Dev 16 fn 2 USB 1.1 UHCI Ports 4-5
36          * 1 Dev 16 fn 4 USB 2.0 EHCI
37          * 0 Dev 16 fn 3 USB 1.1 UHCI Ports 6-7
38          */
39         u16 fn_ctrl_lo;
40
41         /**
42          * 7 USB Device Mode 1=dis
43          * 6 Reserved
44          * 5 Internal LAN Controller Clock Gating 1=gated
45          * 4 Internal LAN Controller 1=di
46          * 3 Internal RTC 1=en
47          * 2 Internal PS2 Mouse 1=en
48          * 1 Internal KBC Configuration 0=dis ports 0x2e/0x2f off 0xe0-0xef
49          * 0 Internal Keyboard Controller 1=en
50          */
51         u16 fn_ctrl_hi;
52
53         int ide0_enable:1;
54         int ide1_enable:1;
55
56         /* 1 = 80-pin cable, 0 = 40-pin cable */
57         int ide0_80pin_cable:1;
58         int ide1_80pin_cable:1;
59 };
60
61 #endif /* SOUTHBRIDGE_VIA_VT8237R_CHIP_H */