Kyösti Mälkki | 7b73e852 | 2022-11-08 04:43:41 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef SUPERIO_SMSC_LPC47M10X_H |
| 4 | #define SUPERIO_SMSC_LPC47M10X_H |
| 5 | |
| 6 | #include <device/pnp_type.h> |
| 7 | #include <stdint.h> |
| 8 | |
| 9 | #define LPC47M10X2_FDC 0 /* Floppy */ |
| 10 | #define LPC47M10X2_PP 3 /* Parallel Port */ |
| 11 | #define LPC47M10X2_SP1 4 /* Com1 */ |
| 12 | #define LPC47M10X2_SP2 5 /* Com2 */ |
| 13 | #define LPC47M10X2_KBC 7 /* Keyboard & Mouse */ |
| 14 | #define LPC47M10X2_GAME 9 /* GAME */ |
| 15 | #define LPC47M10X2_PME 10 /* PME reg*/ |
| 16 | #define LPC47M10X2_MPU 11 /* MPU-401 MIDI */ |
| 17 | |
| 18 | #define LPC47M10X2_MAX_CONFIG_REGISTER 0x5F |
| 19 | |
| 20 | void lpc47m10x_enable_serial(pnp_devfn_t dev, u16 iobase); |
| 21 | |
| 22 | void pnp_enter_conf_state(pnp_devfn_t dev); |
| 23 | void pnp_exit_conf_state(pnp_devfn_t dev); |
| 24 | |
| 25 | #endif /* SUPERIO_SMSC_LPC47M10X_H */ |