22 lines
890 B
C
22 lines
890 B
C
//----------------------------------------------------------------------------//
|
|
// GNU GPL OS/K //
|
|
// //
|
|
// Authors: spectral` //
|
|
// NeoX //
|
|
// //
|
|
// Desc: Ports I/O //
|
|
//----------------------------------------------------------------------------//
|
|
|
|
#ifndef __kaleid_kernel_io_ports_h
|
|
#define __kaleid_kernel_io_ports_h
|
|
|
|
#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
|
|
|