#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) | |
|
|
Value: b in##s(u16 port) { \
b val; \
__asm__ __volatile__ ("in" #s " %%dx, %%" #r :"=a"(val) :"Nd"(port)); \
return val; \
}
|
|
|
Value: void out##s(b val, u16 port) \ { \ __asm__ __volatile__ ("out" #s " %%" #r ",%%dx" ::"a"(val), "Nd"(port)); \ } |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|