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))
|
|
|
|
|
2018-12-24 22:38:14 +01:00
|
|
|
uchar inb(port_t);
|
|
|
|
ushort inw(port_t);
|
2018-12-20 18:03:39 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|