Mondrian nuessle | 21da019 | 2009-04-22 20:30:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2009 University of Heidelberg |
Uwe Hermann | fff87d3 | 2009-06-01 01:38:29 +0000 | [diff] [blame] | 5 | * Written by Mondrian Nuessle <nuessle@uni-heidelberg.de> for Univ. Heidelberg |
Mondrian nuessle | 21da019 | 2009-04-22 20:30:42 +0000 | [diff] [blame] | 6 | * |
| 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 Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 19 | * Foundation, Inc. |
Mondrian nuessle | 21da019 | 2009-04-22 20:30:42 +0000 | [diff] [blame] | 20 | */ |
| 21 | |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 22 | #ifndef SUPERIO_SERVERENGINES_PILOT_PILOT_H |
| 23 | #define SUPERIO_SERVERENGINES_PILOT_PILOT_H |
| 24 | |
Uwe Hermann | fff87d3 | 2009-06-01 01:38:29 +0000 | [diff] [blame] | 25 | /* PILOT Super I/O is only based on LPC observation done on factory system. */ |
Mondrian nuessle | 21da019 | 2009-04-22 20:30:42 +0000 | [diff] [blame] | 26 | |
Uwe Hermann | fff87d3 | 2009-06-01 01:38:29 +0000 | [diff] [blame] | 27 | #define PILOT_LD1 0x01 /* Logical device 1 */ |
Uwe Hermann | 8c02368 | 2010-11-06 23:36:49 +0000 | [diff] [blame] | 28 | #define PILOT_SP1 0x02 /* Com1 */ |
Uwe Hermann | fff87d3 | 2009-06-01 01:38:29 +0000 | [diff] [blame] | 29 | #define PILOT_LD4 0x04 /* Logical device 4 */ |
| 30 | #define PILOT_LD5 0x05 /* Logical device 5 */ |
| 31 | #define PILOT_LD7 0x07 /* Logical device 7 */ |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 32 | |
Edward O'Callaghan | f18abab | 2014-03-31 21:53:32 +1100 | [diff] [blame] | 33 | /* should not expose these however early_init needs love */ |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 34 | void pnp_enter_ext_func_mode(pnp_devfn_t dev); |
| 35 | void pnp_exit_ext_func_mode(pnp_devfn_t dev); |
Edward O'Callaghan | f18abab | 2014-03-31 21:53:32 +1100 | [diff] [blame] | 36 | |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 37 | void pilot_early_init(pnp_devfn_t dev); |
Edward O'Callaghan | f18abab | 2014-03-31 21:53:32 +1100 | [diff] [blame] | 38 | |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 39 | void pilot_enable_serial(pnp_devfn_t dev, u16 iobase); |
| 40 | void pilot_disable_serial(pnp_devfn_t dev); |
Edward O'Callaghan | f18abab | 2014-03-31 21:53:32 +1100 | [diff] [blame] | 41 | |
| 42 | #endif /* SUPERIO_SERVERENGINES_PILOT_PILOT_H */ |