Sean Nelson | 3d135e6 | 2008-07-21 14:49:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2008 Sean Nelson <snelson@nmt.edu> |
| 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 |
Paul Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Sean Nelson | 3d135e6 | 2008-07-21 14:49:04 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
Edward O'Callaghan | 9492b9d | 2014-05-14 01:00:43 +1000 | [diff] [blame] | 21 | #ifndef SUPERIO_WINBOND_W83697HF_H |
| 22 | #define SUPERIO_WINBOND_W83697HF_H |
| 23 | |
| 24 | #include <arch/io.h> |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 25 | |
Sean Nelson | 3d135e6 | 2008-07-21 14:49:04 +0000 | [diff] [blame] | 26 | #define W83697HF_FDC 0 /* Floppy */ |
Uwe Hermann | 340fa93 | 2010-11-10 14:53:36 +0000 | [diff] [blame] | 27 | #define W83697HF_PP 1 /* Parallel port */ |
Sean Nelson | 3d135e6 | 2008-07-21 14:49:04 +0000 | [diff] [blame] | 28 | #define W83697HF_SP1 2 /* Com1 */ |
| 29 | #define W83697HF_SP2 3 /* Com2 */ |
| 30 | #define W83697HF_CIR 6 /* Consumer IR */ |
| 31 | #define W83697HF_GAME_GPIO1 7 /* Game port, GPIO 1 */ |
| 32 | #define W83697HF_MIDI_GPIO5 8 /* MIDI, GPIO 5 */ |
| 33 | #define W83697HF_GPIO234 9 /* GPIO 2, 3, 4 */ |
| 34 | #define W83697HF_ACPI 10 /* ACPI */ |
Uwe Hermann | 340fa93 | 2010-11-10 14:53:36 +0000 | [diff] [blame] | 35 | #define W83697HF_HWM 11 /* Hardware monitor */ |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 36 | |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 37 | void w83697hf_set_clksel_48(pnp_devfn_t); |
Edward O'Callaghan | 9492b9d | 2014-05-14 01:00:43 +1000 | [diff] [blame] | 38 | |
| 39 | /* Depreciated, use winbond_enable_serial() */ |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 40 | void w83697hf_enable_serial(pnp_devfn_t dev, u16 iobase); |
Edward O'Callaghan | 9492b9d | 2014-05-14 01:00:43 +1000 | [diff] [blame] | 41 | |
| 42 | #endif /* SUPERIO_WINBOND_W83697HF_H */ |