Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2000 AG Electronics Ltd. |
| 5 | * Copyright (C) 2003-2004 Linux Networx |
Uwe Hermann | 340fa93 | 2010-11-10 14:53:36 +0000 | [diff] [blame] | 6 | * Copyright (C) 2004 Tyan |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 17 | */ |
| 18 | |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 19 | #ifndef SUPERIO_WINBOND_W83627THG_W83627THG_H |
| 20 | #define SUPERIO_WINBOND_W83627THG_W83627THG_H |
| 21 | |
Arthur Heymans | f7ca225 | 2017-06-01 14:59:30 +0200 | [diff] [blame] | 22 | #include <arch/io.h> |
| 23 | |
Stefan Reinauer | b70d199 | 2008-10-29 04:45:28 +0000 | [diff] [blame] | 24 | #define W83627THG_FDC 0 /* Floppy */ |
Uwe Hermann | 340fa93 | 2010-11-10 14:53:36 +0000 | [diff] [blame] | 25 | #define W83627THG_PP 1 /* Parallel port */ |
Stefan Reinauer | b70d199 | 2008-10-29 04:45:28 +0000 | [diff] [blame] | 26 | #define W83627THG_SP1 2 /* Com1 */ |
| 27 | #define W83627THG_SP2 3 /* Com2 */ |
Uwe Hermann | 340fa93 | 2010-11-10 14:53:36 +0000 | [diff] [blame] | 28 | #define W83627THG_KBC 5 /* PS/2 keyboard & mouse */ |
Stefan Reinauer | b70d199 | 2008-10-29 04:45:28 +0000 | [diff] [blame] | 29 | #define W83627THG_GAME_MIDI_GPIO1 7 |
| 30 | #define W83627THG_GPIO2 8 |
| 31 | #define W83627THG_GPIO3 9 |
| 32 | #define W83627THG_ACPI 10 |
Uwe Hermann | 340fa93 | 2010-11-10 14:53:36 +0000 | [diff] [blame] | 33 | #define W83627THG_HWM 11 /* Hardware monitor */ |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 34 | |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 35 | void pnp_enter_ext_func_mode(pnp_devfn_t dev); |
| 36 | void pnp_exit_ext_func_mode(pnp_devfn_t dev); |
Idwer Vollering | 355092b | 2011-11-07 17:48:33 +0100 | [diff] [blame] | 37 | |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 38 | void w83627thg_set_clksel_48(pnp_devfn_t dev); |
Edward O'Callaghan | 4f5a525 | 2014-04-03 14:40:24 +1100 | [diff] [blame] | 39 | |
| 40 | #endif /* SUPERIO_WINBOND_W83627THG_W83627THG_H */ |