1 /******************************************************************************
2  *
3  *	(C)Copyright 1998,1999 SysKonnect,
4  *	a business unit of Schneider & Koch & Co. Datensysteme GmbH.
5  *
6  *	This program is free software; you can redistribute it and/or modify
7  *	it under the terms of the GNU General Public License as published by
8  *	the Free Software Foundation; either version 2 of the License, or
9  *	(at your option) any later version.
10  *
11  *	The information in this file is provided "AS IS" without warranty.
12  *
13  ******************************************************************************/
14 
15 #include	<linux/types.h>
16 /*
17 	----------------------
18 	Basic SMT system types
19 	----------------------
20 */
21 #ifndef _TYPES_
22 #define	_TYPES_
23 
24 #define _packed
25 #ifndef far
26 #define far
27 #endif
28 #ifndef _far
29 #define _far
30 #endif
31 
32 #ifndef MEM_MAPPED_IO // "normal" IO
33 #define inp(p)  inb(p)
34 #define inpw(p)	inw(p)
35 #define inpd(p) inl(p)
36 #define outp(p,c)  outb(c,p)
37 #define outpw(p,s) outw(s,p)
38 #define outpd(p,l) outl(l,p)
39 #else // memory mapped io
40 #define inp(a)		readb(a)
41 #define inpw(a)		readw(a)
42 #define inpd(a)		readl(a)
43 #define outp(a,v)	writeb(v, a)
44 #define outpw(a,v)	writew(v, a)
45 #define outpd(a,v)	writel(v, a)
46 #endif
47 
48 #endif	/* _TYPES_ */
49