summaryrefslogtreecommitdiffstats
path: root/gdb/vx-share/vxTypes.h
blob: c6b8419223301a4fa4b54fe44d0ab7dbbe03b2b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* vxTypes.h - VxWorks type definition header */

/*  Copyright 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1992 Free Software Foundation, Inc.

    This code was donated by Wind River Systems, Inc. */

/*
modification history
--------------------
01c,05oct90,shl  added copyright notice.
                 made #endif ANSI style.
01b,10aug90,dnw  added VOIDFUNCPTR
01a,29may90,del  written.
*/

#ifndef INCvxTypesh
#define INCvxTypesh

/* The following stuff must NOT be included if this include file is used
 * from assembly language.  Just #define ASMLANGUAGE before the include,
 * to get rid of it.
 */

#ifndef ASMLANGUAGE

/* vxWorks types */

typedef	char		INT8;
typedef	short		INT16;
typedef	int		INT32;

typedef	unsigned char	UINT8;
typedef	unsigned short	UINT16;
typedef	unsigned int	UINT32;

typedef	unsigned char	UCHAR;
typedef unsigned short	USHORT;
typedef	unsigned int	UINT;
typedef unsigned long	ULONG;

typedef	int		BOOL;
typedef	int		VOID;
typedef	int		STATUS;	
typedef int 		ARGINT;

typedef int 		(*FUNCPTR) ();	    /* ptr to function returning int */
typedef VOID 		(*VOIDFUNCPTR) ();  /* ptr to function returning VOID */


/* historical definitions - now obsolete */

typedef char		TINY;		/* obsolete */
typedef char		TBOOL;		/* obsolete */
typedef unsigned char	UTINY;		/* obsolete */


/* architecture dependent typedefs */

#ifdef	CPU_FAMILY

#if	CPU_FAMILY==MC680X0
typedef unsigned short INSTR;		/* word-aligned instructions */
#endif	/* CPU_FAMILY==MC680X0 */

#if	CPU_FAMILY==SPARC
typedef unsigned long INSTR;		/* 32 bit word-aligned instructions */
#endif	/* CPU_FAMILY==SPARC */

#endif	

#endif	/* ASMLANGUAGE */
#endif	/* INCvxTypesh */
OpenPOWER on IntegriCloud