1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef __ARCH_IO_H__ 4 #define __ARCH_IO_H__ 5 6 #include <stdint.h> 7 8 u8 io_read8(u16 reg); 9 void io_write8(u16 reg, u8 value); 10 outb(uint8_t value,uint16_t port)11static inline void outb(uint8_t value, uint16_t port) 12 { 13 io_write8(port, value); 14 } 15 inb(uint16_t port)16static inline uint8_t inb(uint16_t port) 17 { 18 return io_read8(port); 19 } 20 21 #endif 22