xref: /illumos-gate/usr/src/compat/bhyve/x86/_types.h (revision 440a8a36792bdf9ef51639066aab0b7771ffcab8)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2013 Pluribus Networks Inc.
14  */
15 
16 #ifndef _FREEBSD_X86__TYPES_H_
17 #define	_FREEBSD_X86__TYPES_H_
18 
19 /*
20  * Basic types upon which most other types are built.
21  */
22 typedef signed char		__int8_t;
23 typedef unsigned char		__uint8_t;
24 typedef short			__int16_t;
25 typedef unsigned short		__uint16_t;
26 typedef int			__int32_t;
27 typedef unsigned int		__uint32_t;
28 #ifdef	_LP64
29 typedef long			__int64_t;
30 typedef unsigned long		__uint64_t;
31 #else
32 typedef long long		__int64_t;
33 typedef unsigned long long	__uint64_t;
34 #endif
35 
36 /*
37  * Standard type definitions.
38  */
39 #ifdef	_LP64
40 typedef __int64_t	__register_t;
41 typedef __uint64_t	__vm_offset_t;
42 typedef __uint64_t	__vm_paddr_t;
43 typedef __int64_t	__vm_ooffset_t;
44 typedef __uint64_t	__vm_size_t;
45 #else
46 typedef __int32_t	__register_t;
47 typedef __uint32_t	__vm_paddr_t;
48 typedef __uint32_t	__vm_size_t;
49 #endif
50 
51 #endif	/* _FREEBSD_X86__TYPES_H_ */
52