blob: f92195f7b15f30ec1fb96852d3183c5eb539a554 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#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
|