#ifndef IO_H #define IO_H #include static inline uint8_t inb(uint16_t port) { uint8_t ret; __asm__ volatile ( "inb %w1, %b0" : "=a"(ret) : "Nd"(port) : "memory"); return ret; } #endif