blob: d6eda5027624502000d0e1520740b325749b0728 [file] [log] [blame]
Mondrian nuessle21da0192009-04-22 20:30:42 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2009 University of Heidelberg
Uwe Hermannfff87d32009-06-01 01:38:29 +00005 * Written by Mondrian Nuessle <nuessle@uni-heidelberg.de> for Univ. Heidelberg
Mondrian nuessle21da0192009-04-22 20:30:42 +00006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
Patrick Georgib890a122015-03-26 15:17:45 +010019 * Foundation, Inc.
Mondrian nuessle21da0192009-04-22 20:30:42 +000020 */
21
Uwe Hermann7fa08192010-11-08 20:55:24 +000022#ifndef SUPERIO_SERVERENGINES_PILOT_PILOT_H
23#define SUPERIO_SERVERENGINES_PILOT_PILOT_H
24
Uwe Hermannfff87d32009-06-01 01:38:29 +000025/* PILOT Super I/O is only based on LPC observation done on factory system. */
Mondrian nuessle21da0192009-04-22 20:30:42 +000026
Uwe Hermannfff87d32009-06-01 01:38:29 +000027#define PILOT_LD1 0x01 /* Logical device 1 */
Uwe Hermann8c023682010-11-06 23:36:49 +000028#define PILOT_SP1 0x02 /* Com1 */
Uwe Hermannfff87d32009-06-01 01:38:29 +000029#define PILOT_LD4 0x04 /* Logical device 4 */
30#define PILOT_LD5 0x05 /* Logical device 5 */
31#define PILOT_LD7 0x07 /* Logical device 7 */
Uwe Hermann7fa08192010-11-08 20:55:24 +000032
Edward O'Callaghanf18abab2014-03-31 21:53:32 +110033/* should not expose these however early_init needs love */
Edward O'Callaghan85836c22014-07-09 20:26:25 +100034void pnp_enter_ext_func_mode(pnp_devfn_t dev);
35void pnp_exit_ext_func_mode(pnp_devfn_t dev);
Edward O'Callaghanf18abab2014-03-31 21:53:32 +110036
Edward O'Callaghan85836c22014-07-09 20:26:25 +100037void pilot_early_init(pnp_devfn_t dev);
Edward O'Callaghanf18abab2014-03-31 21:53:32 +110038
Edward O'Callaghan85836c22014-07-09 20:26:25 +100039void pilot_enable_serial(pnp_devfn_t dev, u16 iobase);
40void pilot_disable_serial(pnp_devfn_t dev);
Edward O'Callaghanf18abab2014-03-31 21:53:32 +110041
42#endif /* SUPERIO_SERVERENGINES_PILOT_PILOT_H */