Uwe Hermann | 3a66263 | 2007-03-31 19:45:24 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Uwe Hermann | 3a66263 | 2007-03-31 19:45:24 +0000 | [diff] [blame] | 3 | * |
| 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 Hermann | 3a66263 | 2007-03-31 19:45:24 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
Edward O'Callaghan | 32da8d9 | 2014-05-29 14:43:39 +1000 | [diff] [blame] | 17 | #ifndef SUPERIO_NSC_PC87309_H |
| 18 | #define SUPERIO_NSC_PC87309_H |
Uwe Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 19 | |
Uwe Hermann | 3a66263 | 2007-03-31 19:45:24 +0000 | [diff] [blame] | 20 | /* Datasheet: PC87309 SuperI/O Plug and Play Compatible Chip. */ |
Uwe Hermann | 3a66263 | 2007-03-31 19:45:24 +0000 | [diff] [blame] | 21 | |
| 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 Hermann | 7fa0819 | 2010-11-08 20:55:24 +0000 | [diff] [blame] | 29 | |
Edward O'Callaghan | 32da8d9 | 2014-05-29 14:43:39 +1000 | [diff] [blame] | 30 | #include <arch/io.h> |
| 31 | #include <stdint.h> |
| 32 | |
Edward O'Callaghan | 85836c2 | 2014-07-09 20:26:25 +1000 | [diff] [blame] | 33 | void pc87309_enable_serial(pnp_devfn_t dev, u16 iobase); |
Edward O'Callaghan | 32da8d9 | 2014-05-29 14:43:39 +1000 | [diff] [blame] | 34 | |
| 35 | #endif /* SUPERIO_NSC_PC87309_H */ |