1 /* vxTypes.h - VxWorks type definition header */
2 
3 /*  Copyright 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1992 Free Software Foundation, Inc.
4 
5     This code was donated by Wind River Systems, Inc. */
6 
7 /*
8 modification history
9 --------------------
10 01c,05oct90,shl  added copyright notice.
11                  made #endif ANSI style.
12 01b,10aug90,dnw  added VOIDFUNCPTR
13 01a,29may90,del  written.
14 */
15 
16 #ifndef INCvxTypesh
17 #define INCvxTypesh
18 
19 /* The following stuff must NOT be included if this include file is used
20  * from assembly language.  Just #define ASMLANGUAGE before the include,
21  * to get rid of it.
22  */
23 
24 #ifndef ASMLANGUAGE
25 
26 /* vxWorks types */
27 
28 typedef	char		INT8;
29 typedef	short		INT16;
30 typedef	int		INT32;
31 
32 typedef	unsigned char	UINT8;
33 typedef	unsigned short	UINT16;
34 typedef	unsigned int	UINT32;
35 
36 typedef	unsigned char	UCHAR;
37 typedef unsigned short	USHORT;
38 typedef	unsigned int	UINT;
39 typedef unsigned long	ULONG;
40 
41 typedef	int		BOOL;
42 typedef	int		VOID;
43 typedef	int		STATUS;
44 typedef int 		ARGINT;
45 
46 typedef int 		(*FUNCPTR) ();	    /* ptr to function returning int */
47 typedef VOID 		(*VOIDFUNCPTR) ();  /* ptr to function returning VOID */
48 
49 
50 /* historical definitions - now obsolete */
51 
52 typedef char		TINY;		/* obsolete */
53 typedef char		TBOOL;		/* obsolete */
54 typedef unsigned char	UTINY;		/* obsolete */
55 
56 
57 /* architecture dependent typedefs */
58 
59 #ifdef	CPU_FAMILY
60 
61 #if	CPU_FAMILY==MC680X0
62 typedef unsigned short INSTR;		/* word-aligned instructions */
63 #endif	/* CPU_FAMILY==MC680X0 */
64 
65 #if	CPU_FAMILY==SPARC
66 typedef unsigned long INSTR;		/* 32 bit word-aligned instructions */
67 #endif	/* CPU_FAMILY==SPARC */
68 
69 #endif
70 
71 #endif	/* ASMLANGUAGE */
72 #endif	/* INCvxTypesh */
73