Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame] | 2 | * Copyright (C) 2000 AG Electronics Ltd. |
| 3 | * Copyright (C) 2003-2004 Linux Networx |
| 4 | * Copyright (C) 2004 Tyan |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 5 | * Copyright (C) 2005 Digital Design Corporation |
Uwe Hermann | c70e9fc | 2010-02-15 23:10:19 +0000 | [diff] [blame] | 6 | * Copyright (C) 2006 Ron Minnich, LANL |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 7 | * |
| 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 Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 17 | */ |
| 18 | |
Edward O'Callaghan | c3e77fc | 2015-01-04 16:24:14 +1100 | [diff] [blame] | 19 | #ifndef SUPERIO_SMSC_LPC47M10X_H |
| 20 | #define SUPERIO_SMSC_LPC47M10X_H |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 21 | |
Kyösti Mälkki | bba4ec4 | 2019-12-19 06:43:13 +0200 | [diff] [blame^] | 22 | #include <device/pnp_type.h> |
| 23 | #include <stdint.h> |
| 24 | |
Ronald G. Minnich | 8a02b7d | 2006-08-17 20:31:09 +0000 | [diff] [blame] | 25 | #define LPC47M10X2_FDC 0 /* Floppy */ |
| 26 | #define LPC47M10X2_PP 3 /* Parallel Port */ |
| 27 | #define LPC47M10X2_SP1 4 /* Com1 */ |
| 28 | #define LPC47M10X2_SP2 5 /* Com2 */ |
| 29 | #define LPC47M10X2_KBC 7 /* Keyboard & Mouse */ |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 30 | #define LPC47M10X2_GAME 9 /* GAME */ |
Ronald G. Minnich | 8a02b7d | 2006-08-17 20:31:09 +0000 | [diff] [blame] | 31 | #define LPC47M10X2_PME 10 /* PME reg*/ |
Kyösti Mälkki | 19fd211 | 2011-10-16 18:12:59 +0300 | [diff] [blame] | 32 | #define LPC47M10X2_MPU 11 /* MPU-401 MIDI */ |
Ronald G. Minnich | 8a02b7d | 2006-08-17 20:31:09 +0000 | [diff] [blame] | 33 | |
| 34 | #define LPC47M10X2_MAX_CONFIG_REGISTER 0x5F |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 35 | |
Edward O'Callaghan | c3e77fc | 2015-01-04 16:24:14 +1100 | [diff] [blame] | 36 | void lpc47m10x_enable_serial(pnp_devfn_t dev, u16 iobase); |
| 37 | |
Kyösti Mälkki | bba4ec4 | 2019-12-19 06:43:13 +0200 | [diff] [blame^] | 38 | void pnp_enter_conf_state(pnp_devfn_t dev); |
| 39 | void pnp_exit_conf_state(pnp_devfn_t dev); |
| 40 | |
Edward O'Callaghan | c3e77fc | 2015-01-04 16:24:14 +1100 | [diff] [blame] | 41 | #endif /* SUPERIO_SMSC_LPC47M10X_H */ |