blob: 3bd1f44b749560dbd86852d139f364e606a11902 [file] [log] [blame]
Sean Nelson3d135e62008-07-21 14:49:04 +00001/*
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 Menzela46a7122013-02-23 18:37:27 +010018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sean Nelson3d135e62008-07-21 14:49:04 +000019 */
20
Edward O'Callaghan9492b9d2014-05-14 01:00:43 +100021#ifndef SUPERIO_WINBOND_W83697HF_H
22#define SUPERIO_WINBOND_W83697HF_H
23
24#include <arch/io.h>
Uwe Hermann7fa08192010-11-08 20:55:24 +000025
Sean Nelson3d135e62008-07-21 14:49:04 +000026#define W83697HF_FDC 0 /* Floppy */
Uwe Hermann340fa932010-11-10 14:53:36 +000027#define W83697HF_PP 1 /* Parallel port */
Sean Nelson3d135e62008-07-21 14:49:04 +000028#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 Hermann340fa932010-11-10 14:53:36 +000035#define W83697HF_HWM 11 /* Hardware monitor */
Uwe Hermann7fa08192010-11-08 20:55:24 +000036
Edward O'Callaghan85836c22014-07-09 20:26:25 +100037void w83697hf_set_clksel_48(pnp_devfn_t);
Edward O'Callaghan9492b9d2014-05-14 01:00:43 +100038
39/* Depreciated, use winbond_enable_serial() */
Edward O'Callaghan85836c22014-07-09 20:26:25 +100040void w83697hf_enable_serial(pnp_devfn_t dev, u16 iobase);
Edward O'Callaghan9492b9d2014-05-14 01:00:43 +100041
42#endif /* SUPERIO_WINBOND_W83697HF_H */