blob: 3a723bd056e23367bc0f29d00a924d06e40f2c0c [file] [log] [blame]
Martin Rothbb5953d2016-04-11 20:53:39 -06001/*
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 Roth54cb4932017-07-23 21:09:41 -060014#ifndef __OPROM_IO_H__
15#define __OPROM_IO_H__
16
Nico Huber7b811d52017-05-18 16:04:06 +020017#if IS_ENABLED(CONFIG_ARCH_X86)
Patrick Georgi632d6fe2013-02-07 15:53:54 +010018#include <arch/io.h>
19#else
Stefan Reinauer91f14232012-12-07 16:55:12 -080020void outb(u8 val, u16 port);
21void outw(u16 val, u16 port);
22void outl(u32 val, u16 port);
23
24u8 inb(u16 port);
25u16 inw(u16 port);
26u32 inl(u16 port);
Patrick Georgi632d6fe2013-02-07 15:53:54 +010027#endif
Martin Roth54cb4932017-07-23 21:09:41 -060028#endif /* __OPROM_IO_H__ */