00001 /*header file for src/common/io.cpp*/ 00002 00003 #ifndef _CORE_COMMON_IO_HPP 00004 #define _CORE_COMMON_IO_HPP 00005 00006 namespace IOPorts { 00007 00008 void outb(uint16 port, uint8 ch);/*outs a byte*/ 00009 void outw(uint16 port, uint16 ch); 00010 void outl(uint16 port, uint32 ch); 00011 uint8 inb(uint16 port); /*ins a byte*/ 00012 uint16 inw(uint16 port); 00013 uint32 inl(uint16 port); 00014 00015 }; /*namespace IOPorts*/ 00016 00017 #endif