Edward O'Callaghan | fdceb48 | 2014-06-02 07:58:14 +1000 | [diff] [blame] | 1 | /* |
| 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'Callaghan | fdceb48 | 2014-06-02 07:58:14 +1000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #ifndef SUPERIO_SMSC_SMSCSUPERIO_H |
| 18 | #define SUPERIO_SMSC_SMSCSUPERIO_H |
| 19 | |
| 20 | #include <arch/io.h> |
| 21 | #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'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 29 | void smscsuperio_enable_serial(pnp_devfn_t dev, u16 iobase); |
Edward O'Callaghan | fdceb48 | 2014-06-02 07:58:14 +1000 | [diff] [blame] | 30 | |
| 31 | #endif /* SUPERIO_SMSC_SMSCSUPERIO_H */ |