blob: be265d8bbba4b472343cf1802ffa365fe0c1c864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef ASM_H
#define ASM_H
#define outb(port,value) \
asm volatile ("outb %%al, %%dx" :: "a"(value), "d" (port) )
#define outbj(port,value) \
asm volatile ("outb %%al, %%dx;" :: "a" (value), "d"(port) )
#define inb(port,dst) \
asm volatile ("inb %%dx, %%al": "=a" (dst) : "d" (port))
#endif
|