4 static inline void outb(unsigned char v, unsigned short p)
6 asm volatile ("outb %1,%0"::"d" (p), "a"(v));
9 static inline unsigned char inb(unsigned short p)
12 asm volatile ("inb %1,%0":"=a" (v):"d"(p));
16 static inline void outw(unsigned short v, unsigned short p)
18 asm volatile ("outw %1,%0"::"d" (p), "a"(v));
21 static inline unsigned short inw(unsigned short p)
24 asm volatile ("inw %1,%0":"=a" (v):"d"(p));
28 static inline void outl(unsigned int v, unsigned short p)
30 asm volatile ("outl %1,%0"::"d" (p), "a"(v));
33 static inline unsigned int inl(unsigned short p)
36 asm volatile ("inl %1,%0":"=a" (v):"d"(p));