blob: 0c393c53440d277223e0f33e3d8837f506d2f0e1 [file] [log] [blame]
Zheng Bao9db833b2009-12-28 09:59:44 +00001/*
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00002 * Copyright (C) 2000 AG Electronics Ltd.
3 * Copyright (C) 2003-2004 Linux Networx
4 * Copyright (C) 2004 Tyan
Zheng Bao9db833b2009-12-28 09:59:44 +00005 * Copyright (C) 2005 Digital Design Corporation
Uwe Hermannc70e9fc2010-02-15 23:10:19 +00006 * Copyright (C) 2006 Ron Minnich, LANL
Zheng Bao9db833b2009-12-28 09:59:44 +00007 *
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 Bao9db833b2009-12-28 09:59:44 +000017 */
18
Edward O'Callaghanc3e77fc2015-01-04 16:24:14 +110019#ifndef SUPERIO_SMSC_LPC47M10X_H
20#define SUPERIO_SMSC_LPC47M10X_H
Uwe Hermann7fa08192010-11-08 20:55:24 +000021
Kyösti Mälkkibba4ec42019-12-19 06:43:13 +020022#include <device/pnp_type.h>
23#include <stdint.h>
24
Ronald G. Minnich8a02b7d2006-08-17 20:31:09 +000025#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 Hermanna69d9782010-11-15 19:35:14 +000030#define LPC47M10X2_GAME 9 /* GAME */
Ronald G. Minnich8a02b7d2006-08-17 20:31:09 +000031#define LPC47M10X2_PME 10 /* PME reg*/
Kyösti Mälkki19fd2112011-10-16 18:12:59 +030032#define LPC47M10X2_MPU 11 /* MPU-401 MIDI */
Ronald G. Minnich8a02b7d2006-08-17 20:31:09 +000033
34#define LPC47M10X2_MAX_CONFIG_REGISTER 0x5F
Uwe Hermann7fa08192010-11-08 20:55:24 +000035
Edward O'Callaghanc3e77fc2015-01-04 16:24:14 +110036void lpc47m10x_enable_serial(pnp_devfn_t dev, u16 iobase);
37
Kyösti Mälkkibba4ec42019-12-19 06:43:13 +020038void pnp_enter_conf_state(pnp_devfn_t dev);
39void pnp_exit_conf_state(pnp_devfn_t dev);
40
Edward O'Callaghanc3e77fc2015-01-04 16:24:14 +110041#endif /* SUPERIO_SMSC_LPC47M10X_H */