Martin Roth | bb5953d | 2016-04-11 20:53:39 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; version 2 of the License. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
Martin Roth | 54cb493 | 2017-07-23 21:09:41 -0600 | [diff] [blame] | 14 | #ifndef __OPROM_IO_H__ |
| 15 | #define __OPROM_IO_H__ |
| 16 | |
Nico Huber | 7b811d5 | 2017-05-18 16:04:06 +0200 | [diff] [blame] | 17 | #if IS_ENABLED(CONFIG_ARCH_X86) |
Patrick Georgi | 632d6fe | 2013-02-07 15:53:54 +0100 | [diff] [blame] | 18 | #include <arch/io.h> |
| 19 | #else |
Stefan Reinauer | 91f1423 | 2012-12-07 16:55:12 -0800 | [diff] [blame] | 20 | void outb(u8 val, u16 port); |
| 21 | void outw(u16 val, u16 port); |
| 22 | void outl(u32 val, u16 port); |
| 23 | |
| 24 | u8 inb(u16 port); |
| 25 | u16 inw(u16 port); |
| 26 | u32 inl(u16 port); |
Patrick Georgi | 632d6fe | 2013-02-07 15:53:54 +0100 | [diff] [blame] | 27 | #endif |
Martin Roth | 54cb493 | 2017-07-23 21:09:41 -0600 | [diff] [blame] | 28 | #endif /* __OPROM_IO_H__ */ |