20 # include <arch/x86/ioports.h>
21 # include <libc/stdio.h>
23 pok_ret_t pok_inb (uint16_t port)
25 int32_t ret = (int32_t) pok_syscall2 (POK_SYSCALL_INB,
30 printf(
"pok_inb: error %d, port %x\n", ret, port);
35 pok_ret_t pok_outb (uint16_t port, uint8_t value)
37 int32_t ret = (int32_t) pok_syscall2 (POK_SYSCALL_OUTB,
42 printf(
"pok_outb: error %d, port %x\n", ret, port);