2018-12-20 18:03:39 +01:00
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
// GNU GPL OS/K //
|
|
|
|
// //
|
|
|
|
// Authors: spectral` //
|
|
|
|
// NeoX //
|
|
|
|
// //
|
|
|
|
// Desc: Ports I/O //
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
2018-12-24 18:13:58 +01:00
|
|
|
#ifndef _KALKERN_IO_PORTS_H
|
|
|
|
#define _KALKERN_IO_PORTS_H
|
2018-12-20 18:03:39 +01:00
|
|
|
|
|
|
|
#include "common/common.h"
|
|
|
|
|
|
|
|
#define outb(port,val) asm volatile ("outb %1, %0" : : "dN" (port), "a" (value))
|
|
|
|
|
|
|
|
uchar inb(port_t port);
|
|
|
|
ushort inw(port_t port);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|