31 __asm__
volatile(
"outb %0, %1" : :
"a"(val),
"Nd"(port));
42 __asm__
volatile(
"inb %1, %0" :
"=a"(ret) :
"Nd"(port));
53 __asm__
volatile(
"outw %0, %1" : :
"a"(val),
"Nd"(port));
64 __asm__
volatile(
"inw %1, %0" :
"=a"(ret) :
"Nd"(port));
75 __asm__
volatile(
"outl %0, %1" : :
"a"(val),
"Nd"(port));
86 __asm__
volatile(
"inl %1, %0" :
"=a"(ret) :
"Nd"(port));
96inline void Cli() { __asm__
volatile(
"cli"); }
104inline void Sti() { __asm__
volatile(
"sti; nop; nop; nop"); }
void Outb(u16 port, u8 val)
Write a byte to the specified I/O port.
void Outw(u16 port, u16 val)
Write a 16-bit word to the specified I/O port.
u32 Inl(u16 port)
Read a 32-bit value from the specified I/O port.
u8 Inb(u16 port)
Read a byte from the specified I/O port.
u16 Inw(u16 port)
Read a 16-bit word from the specified I/O port.
void Sti()
Enable CPU interrupts (set interrupt flag).
void Outl(u16 port, u32 val)
Write a 32-bit value to the specified I/O port.
void Cli()
Disable CPU interrupts (clear interrupt flag).
unsigned int u32
32-Bit Unsigned Int
unsigned short u16
16-Bit Unsigned Int
unsigned char u8
8-Bit Unsigned Int