1 / $XFree86: xc/programs/Xserver/hw/xfree86/os-support/sunos/sun_inout.s,v 1.1 2001/05/28 02:42:31 tsi Exp $
3 / Copyright 1994-2001 The XFree86 Project, Inc. All Rights Reserved.
5 / Permission is hereby granted, free of charge, to any person obtaining a copy
6 / of this software and associated documentation files (the "Software"), to deal
7 / in the Software without restriction, including without limitation the rights
8 / to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 / copies of the Software, and to permit persons to whom the Software is
10 / furnished to do so, subject to the following conditions:
12 / The above copyright notice and this permission notice shall be included in
13 / all copies or substantial portions of the Software.
15 / THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 / IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 / FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 / XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 / IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 / CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 / Except as contained in this notice, the name of the XFree86 Project shall not
23 / be used in advertising or otherwise to promote the sale, use or other
24 / dealings in this Software without prior written authorization from the
30 / Purpose: Provide inb(), inw(), inl(), outb(), outw(), outl() functions
31 / for Solaris x86 using the ProWorks compiler by SunPro
33 / Author: Installed into XFree86 SuperProbe by Doug Anson (danson@lgc.com)
34 / Portions donated to XFree86 by Steve Dever (Steve.Dever@Eng.Sun.Com)
36 / Synopsis: (c callable external declarations)
37 / extern unsigned char inb(int port);
38 / extern unsigned short inw(int port);
39 / extern unsigned long inl(int port);
40 / extern void outb(int port, unsigned char value);
41 / extern void outw(int port, unsigned short value);
42 / extern void outl(int port, unsigned long value);
56 / unsigned char inb(int port);
68 / unsigned short inw(int port);
80 / unsigned long inl(int port);
91 / void outb(int port, unsigned char value);
103 / void outw(int port, unsigned short value);
115 / void outl(int port, unsigned long value);