| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef __OPROM_IO_H__ |
| 4 | #define __OPROM_IO_H__ |
| 5 | |
| 6 | #if ENV_X86 |
| 7 | #include <arch/io.h> |
| 8 | #else |
| 9 | void outb(u8 val, u16 port); |
| 10 | void outw(u16 val, u16 port); |
| 11 | void outl(u32 val, u16 port); |
| 12 | |
| 13 | u8 inb(u16 port); |
| 14 | u16 inw(u16 port); |
| 15 | u32 inl(u16 port); |
| 16 | #endif |
| 17 | #endif /* __OPROM_IO_H__ */ |