No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8006 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
480455d5cc
commit
6cc888e3d8
@ -1,31 +0,0 @@
|
||||
#ifndef _I386_IO_H
|
||||
#define _I386_IO_H
|
||||
|
||||
#define out8(value,port) \
|
||||
__asm__ ("outb %%al,%%dx"::"a" (value),"d" (port))
|
||||
|
||||
#define out16(value,port) \
|
||||
__asm__ ("outw %%ax,%%dx"::"a" (value),"d" (port))
|
||||
|
||||
#define out32(value,port) \
|
||||
__asm__ ("outl %%eax,%%dx"::"a" (value),"d" (port))
|
||||
|
||||
#define in8(port) ({ \
|
||||
unsigned char _v; \
|
||||
__asm__ volatile ("inb %%dx,%%al":"=a" (_v):"d" (port)); \
|
||||
_v; \
|
||||
})
|
||||
|
||||
#define in16(port) ({ \
|
||||
unsigned short _v; \
|
||||
__asm__ volatile ("inw %%dx,%%ax":"=a" (_v):"d" (port)); \
|
||||
_v; \
|
||||
})
|
||||
|
||||
#define in32(port) ({ \
|
||||
unsigned int _v; \
|
||||
__asm__ volatile ("inl %%dx,%%eax":"=a" (_v):"d" (port)); \
|
||||
_v; \
|
||||
})
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user