1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef ASM_X86_IO_H #define ASM_X86_IO_H #include <stdint.h> static inline void outb(uint16_t port, uint8_t data) { asm volatile ( "out %0,%1" : /* no output */ : "a" (data), "d" (port) ); } #endif /* ASM_X86_IO_H */