Felix Held | 3f3eca9 | 2020-01-23 17:12:32 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* This file is part of the coreboot project. */ |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 3 | |
Edward O'Callaghan | c3e77fc | 2015-01-04 16:24:14 +1100 | [diff] [blame] | 4 | #ifndef SUPERIO_SMSC_LPC47M10X_H |
| 5 | #define SUPERIO_SMSC_LPC47M10X_H |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 6 | |
Kyösti Mälkki | bba4ec4 | 2019-12-19 06:43:13 +0200 | [diff] [blame] | 7 | #include <device/pnp_type.h> |
| 8 | #include <stdint.h> |
| 9 | |
Ronald G. Minnich | 8a02b7d | 2006-08-17 20:31:09 +0000 | [diff] [blame] | 10 | #define LPC47M10X2_FDC 0 /* Floppy */ |
| 11 | #define LPC47M10X2_PP 3 /* Parallel Port */ |
| 12 | #define LPC47M10X2_SP1 4 /* Com1 */ |
| 13 | #define LPC47M10X2_SP2 5 /* Com2 */ |
| 14 | #define LPC47M10X2_KBC 7 /* Keyboard & Mouse */ |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 15 | #define LPC47M10X2_GAME 9 /* GAME */ |
Ronald G. Minnich | 8a02b7d | 2006-08-17 20:31:09 +0000 | [diff] [blame] | 16 | #define LPC47M10X2_PME 10 /* PME reg*/ |
Kyösti Mälkki | 19fd211 | 2011-10-16 18:12:59 +0300 | [diff] [blame] | 17 | #define LPC47M10X2_MPU 11 /* MPU-401 MIDI */ |
Ronald G. Minnich | 8a02b7d | 2006-08-17 20:31:09 +0000 | [diff] [blame] | 18 | |
| 19 | #define LPC47M10X2_MAX_CONFIG_REGISTER 0x5F |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 20 | |
Edward O'Callaghan | c3e77fc | 2015-01-04 16:24:14 +1100 | [diff] [blame] | 21 | void lpc47m10x_enable_serial(pnp_devfn_t dev, u16 iobase); |
| 22 | |
Kyösti Mälkki | bba4ec4 | 2019-12-19 06:43:13 +0200 | [diff] [blame] | 23 | void pnp_enter_conf_state(pnp_devfn_t dev); |
| 24 | void pnp_exit_conf_state(pnp_devfn_t dev); |
| 25 | |
Edward O'Callaghan | c3e77fc | 2015-01-04 16:24:14 +1100 | [diff] [blame] | 26 | #endif /* SUPERIO_SMSC_LPC47M10X_H */ |