blob: c42328c09bc2bdc4c8986ee1326364bb6a9233ab [file] [log] [blame]
Edward O'Callaghanfdceb482014-06-02 07:58:14 +10001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2014 Edward O'Callaghan <eocallaghan@alterapraxis.com>
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.
Edward O'Callaghanfdceb482014-06-02 07:58:14 +100015 */
16
17#ifndef SUPERIO_SMSC_SMSCSUPERIO_H
18#define SUPERIO_SMSC_SMSCSUPERIO_H
19
Kyösti Mälkki3855c012019-03-03 08:45:19 +020020#include <device/pnp_type.h>
Edward O'Callaghanfdceb482014-06-02 07:58:14 +100021#include <stdint.h>
22
23/* All known/supported SMSC Super I/Os have the same logical device IDs
24 * for the serial ports (COM1, COM2).
25 */
26#define SMSCSUPERIO_SP1 4 /* Com1 */
27#define SMSCSUPERIO_SP2 5 /* Com2 */
28
Edward O'Callaghan85836c22014-07-09 20:26:25 +100029void smscsuperio_enable_serial(pnp_devfn_t dev, u16 iobase);
Edward O'Callaghanfdceb482014-06-02 07:58:14 +100030
31#endif /* SUPERIO_SMSC_SMSCSUPERIO_H */