2 * Mach Operating System
3 * Copyright (c) 1990 Carnegie-Mellon University
4 * All rights reserved. The CMU software License Agreement specifies
5 * the terms and conditions for use and redistribution.
7 * from: Mach, unknown, 386BSD patch kit
12 ({ unsigned long _tmp__; \
13 asm volatile("inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \
17 ({ unsigned short _tmp__; \
18 asm volatile(".byte 0x66; inl %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \
22 * only do this if it has not already be defined.. this is a crock for the
23 * patch kit for right now. Need to clean up all the inx, outx stuff for
24 * 0.1.5 to use 1 common header file, that has Bruces fast mode inb/outb
25 * stuff in it. Rgrimes 5/27/93
29 ({ unsigned char _tmp__; \
30 asm volatile("inb %1, %0" : "=a" (_tmp__) : "d" ((unsigned short)(y))); \
36 { asm volatile("outl %0, %1" : : "a" (y) , "d" ((unsigned short)(x))); }
40 {asm volatile(".byte 0x66; outl %0, %1" : : "a" ((unsigned short)(y)) , "d" ((unsigned short)(x))); }
44 { asm volatile("outb %0, %1" : : "a" ((unsigned char)(y)) , "d" ((unsigned short)(x))); }