nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
port.c File Reference
#include <sys/io.h>
#include <errno.h>
Include dependency graph for port.c:

Go to the source code of this file.

Functions

unsigned char inb (unsigned short port)
 byte 크기의 데이터를 지정된 포트에서 읽는다. More...
 
unsigned long indw (unsigned short port)
 double word 크기의 데이트를 지정된 포트에서 읽는다. More...
 
unsigned short inw (unsigned short port)
 word 크기의 데이터를 지정된 포트에서 읽는다. More...
 
int ioperm (unsigned long from, unsigned long num, int turn_on)
 
int iopl (int level)
 
void outb (unsigned short port, unsigned char byte)
 byte 크기의 데이터를 지정도니 포트에 쓴다. More...
 
void outdw (unsigned short port, unsigned long dword)
 Double word 크기의 데이터를 지정된 포트에 쓴다. More...
 
void outw (unsigned short port, unsigned short word)
 Word 크기의 데이터를 지정된 포트에 쓴다. More...