xref: /csrg-svn/sys/sparc/include/types.h (revision 68713)
155127Storek /*
263320Sbostic  * Copyright (c) 1992, 1993
363320Sbostic  *	The Regents of the University of California.  All rights reserved.
455127Storek  *
555127Storek  * This software was developed by the Computer Systems Engineering group
655127Storek  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
755127Storek  * contributed to Berkeley.
855127Storek  *
955501Sbostic  * All advertising materials mentioning features or use of this software
1055501Sbostic  * must display the following acknowledgement:
1155501Sbostic  *	This product includes software developed by the University of
1259211Storek  *	California, Lawrence Berkeley Laboratory.
1355501Sbostic  *
1455127Storek  * %sccs.include.redist.c%
1555127Storek  *
16*68713Smckusick  *	@(#)types.h	8.4 (Berkeley) 04/02/95
1755127Storek  *
1859211Storek  * from: $Header: types.h,v 1.5 92/11/26 02:00:07 torek Exp $ (LBL)
1955127Storek  */
2055127Storek 
2155127Storek #ifndef	_MACHTYPES_H_
2255127Storek #define	_MACHTYPES_H_
2355127Storek 
2459592Sbostic #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
2555127Storek typedef struct _physadr {
2655127Storek 	short r[1];
2755127Storek } *physadr;
2855200Sbostic 
2955127Storek typedef struct label_t {
3055127Storek 	int val[2];
3155127Storek } label_t;
3259592Sbostic #endif
3355200Sbostic 
3465413Sbostic typedef	unsigned long	vm_offset_t;
3565413Sbostic typedef	unsigned long	vm_size_t;
3655127Storek 
3759569Sbostic /*
3859569Sbostic  * Basic integral types.  Omit the typedef if
3959569Sbostic  * not possible for a machine/compiler combination.
4059569Sbostic  */
4165529Sbostic typedef	__signed char		   int8_t;
4259592Sbostic typedef	unsigned char		 u_int8_t;
4359592Sbostic typedef	short			  int16_t;
4459592Sbostic typedef	unsigned short		u_int16_t;
4559592Sbostic typedef	int			  int32_t;
4659592Sbostic typedef	unsigned int		u_int32_t;
4759592Sbostic typedef	long long		  int64_t;
4859592Sbostic typedef	unsigned long long	u_int64_t;
4955200Sbostic 
50*68713Smckusick typedef	int32_t			register_t;
51*68713Smckusick 
5255127Storek #endif	/* _MACHTYPES_H_ */
53