blob: d254e53c095b038fecc54d5bf14989d630f743d0 [file] [log] [blame]
Zheng Bao9db833b2009-12-28 09:59:44 +00001/*
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 Hermann340fa932010-11-10 14:53:36 +00006 * Copyright (C) 2004 Tyan
Zheng Bao9db833b2009-12-28 09:59:44 +00007 *
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 Bao9db833b2009-12-28 09:59:44 +000017 */
18
Uwe Hermann7fa08192010-11-08 20:55:24 +000019#ifndef SUPERIO_WINBOND_W83627THG_W83627THG_H
20#define SUPERIO_WINBOND_W83627THG_W83627THG_H
21
Kyösti Mälkki3855c012019-03-03 08:45:19 +020022#include <device/pnp_type.h>
Arthur Heymansf7ca2252017-06-01 14:59:30 +020023
Stefan Reinauerb70d1992008-10-29 04:45:28 +000024#define W83627THG_FDC 0 /* Floppy */
Uwe Hermann340fa932010-11-10 14:53:36 +000025#define W83627THG_PP 1 /* Parallel port */
Stefan Reinauerb70d1992008-10-29 04:45:28 +000026#define W83627THG_SP1 2 /* Com1 */
27#define W83627THG_SP2 3 /* Com2 */
Uwe Hermann340fa932010-11-10 14:53:36 +000028#define W83627THG_KBC 5 /* PS/2 keyboard & mouse */
Stefan Reinauerb70d1992008-10-29 04:45:28 +000029#define W83627THG_GAME_MIDI_GPIO1 7
30#define W83627THG_GPIO2 8
31#define W83627THG_GPIO3 9
32#define W83627THG_ACPI 10
Uwe Hermann340fa932010-11-10 14:53:36 +000033#define W83627THG_HWM 11 /* Hardware monitor */
Uwe Hermann7fa08192010-11-08 20:55:24 +000034
Edward O'Callaghan85836c22014-07-09 20:26:25 +100035void pnp_enter_ext_func_mode(pnp_devfn_t dev);
36void pnp_exit_ext_func_mode(pnp_devfn_t dev);
Idwer Vollering355092b2011-11-07 17:48:33 +010037
Edward O'Callaghan85836c22014-07-09 20:26:25 +100038void w83627thg_set_clksel_48(pnp_devfn_t dev);
Edward O'Callaghan4f5a5252014-04-03 14:40:24 +110039
40#endif /* SUPERIO_WINBOND_W83627THG_W83627THG_H */