Main Page | Directories | File List | Globals

ioport.c File Reference

#include <asm/types.h>
#include <asm/irq.h>

Include dependency graph for ioport.c:

Go to the source code of this file.

Defines

#define IN(s, b, r)
#define OUT(s, b, r)

Functions

 IN (b, u8, al)
 IN (w, u16, ax)
 IN (l, u32, eax)
 OUT (b, u8, al)
 OUT (w, u16, ax)
 OUT (l, u32, eax)


Define Documentation

#define IN s,
b,
 ) 
 

Value:

b in##s(u16 port) { \
    b val; \
    __asm__ __volatile__ ("in" #s " %%dx, %%" #r :"=a"(val) :"Nd"(port)); \
    return val; \
}

Definition at line 17 of file ioport.c.

#define OUT s,
b,
 ) 
 

Value:

void out##s(b val, u16 port) \
{ \
    __asm__ __volatile__ ("out" #s " %%" #r ",%%dx" ::"a"(val), "Nd"(port)); \
}

Definition at line 24 of file ioport.c.


Function Documentation

IN ,
u32  ,
eax 
 

IN ,
u16  ,
ax 
 

IN ,
u8  ,
al 
 

OUT ,
u32  ,
eax 
 

OUT ,
u16  ,
ax 
 

OUT ,
u8  ,
al 
 

Dokumentacje wygenerowano programem Doxygen 1.4.2 dla projektu Agnix