xref: /original-bsd/sys/sparc/include/types.h (revision 58b1b499)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * All advertising materials mentioning features or use of this software
10  * must display the following acknowledgement:
11  *	This product includes software developed by the University of
12  *	California, Lawrence Berkeley Laboratory.
13  *
14  * %sccs.include.redist.c%
15  *
16  *	@(#)types.h	8.4 (Berkeley) 04/02/95
17  *
18  * from: $Header: types.h,v 1.5 92/11/26 02:00:07 torek Exp $ (LBL)
19  */
20 
21 #ifndef	_MACHTYPES_H_
22 #define	_MACHTYPES_H_
23 
24 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
25 typedef struct _physadr {
26 	short r[1];
27 } *physadr;
28 
29 typedef struct label_t {
30 	int val[2];
31 } label_t;
32 #endif
33 
34 typedef	unsigned long	vm_offset_t;
35 typedef	unsigned long	vm_size_t;
36 
37 /*
38  * Basic integral types.  Omit the typedef if
39  * not possible for a machine/compiler combination.
40  */
41 typedef	__signed char		   int8_t;
42 typedef	unsigned char		 u_int8_t;
43 typedef	short			  int16_t;
44 typedef	unsigned short		u_int16_t;
45 typedef	int			  int32_t;
46 typedef	unsigned int		u_int32_t;
47 typedef	long long		  int64_t;
48 typedef	unsigned long long	u_int64_t;
49 
50 typedef	int32_t			register_t;
51 
52 #endif	/* _MACHTYPES_H_ */
53