blob: dfc2de11278db9f80f18574b58bfebcc8fb9a98e [file] [log] [blame]
Uwe Hermann3a662632007-03-31 19:45:24 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Uwe Hermann3a662632007-03-31 19:45:24 +00003 *
4 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Uwe Hermann3a662632007-03-31 19:45:24 +000015 */
16
Edward O'Callaghan32da8d92014-05-29 14:43:39 +100017#ifndef SUPERIO_NSC_PC87309_H
18#define SUPERIO_NSC_PC87309_H
Uwe Hermann7fa08192010-11-08 20:55:24 +000019
Uwe Hermann3a662632007-03-31 19:45:24 +000020/* Datasheet: PC87309 SuperI/O Plug and Play Compatible Chip. */
Uwe Hermann3a662632007-03-31 19:45:24 +000021
22#define PC87309_FDC 0x00 /* Floppy */
23#define PC87309_PP 0x01 /* Parallel port */
24#define PC87309_SP2 0x02 /* Com2 / IR */
25#define PC87309_SP1 0x03 /* Com1 */
26#define PC87309_PM 0x04 /* Power management */
27#define PC87309_KBCM 0x05 /* Mouse */
28#define PC87309_KBCK 0x06 /* Keyboard */
Uwe Hermann7fa08192010-11-08 20:55:24 +000029
Edward O'Callaghan32da8d92014-05-29 14:43:39 +100030#include <arch/io.h>
31#include <stdint.h>
32
Edward O'Callaghan85836c22014-07-09 20:26:25 +100033void pc87309_enable_serial(pnp_devfn_t dev, u16 iobase);
Edward O'Callaghan32da8d92014-05-29 14:43:39 +100034
35#endif /* SUPERIO_NSC_PC87309_H */