Add #include guards to all Super I/O header files (trivial).
[coreboot.git] / src / superio / ite / it8716f / it8716f.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2006 Uwe Hermann <uwe@hermann-uwe.de>
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; either version 2 of the License, or
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.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20
21 #ifndef SUPERIO_ITE_IT8716F_IT8716F_H
22 #define SUPERIO_ITE_IT8716F_IT8716F_H
23
24 /* Datasheet: http://www.ite.com.tw/product_info/PC/Brief-IT8716_2.asp */
25
26 /* Logical device numbers (LDNs). */
27 #define IT8716F_FDC  0x00 /* Floppy */
28 #define IT8716F_SP1  0x01 /* Com1 */
29 #define IT8716F_SP2  0x02 /* Com2 */
30 #define IT8716F_PP   0x03 /* Parallel port */
31 #define IT8716F_EC   0x04 /* Environment controller */
32 #define IT8716F_KBCK 0x05 /* PS/2 keyboard */
33 #define IT8716F_KBCM 0x06 /* PS/2 mouse */
34 #define IT8716F_GPIO 0x07 /* GPIO */
35 #define IT8716F_MIDI 0x08 /* MIDI port */
36 #define IT8716F_GAME 0x09 /* GAME port */
37 #define IT8716F_IR   0x0a /* Consumer IR */
38
39 #if defined(CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL) && CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL
40 /* Provided by mainboard, called by IT8716F superio.c. */
41 void init_ec(u16 base);
42 #endif
43
44 #if defined(__PRE_RAM__) && !defined(__ROMCC__)
45 void it8716f_disable_dev(device_t dev);
46 void it8716f_enable_dev(device_t dev, u16 iobase);
47 void it8716f_enable_serial(device_t dev, u16 iobase);
48 #endif
49
50 #endif