1/*	$NetBSD: types.h,v 1.6 2006/01/14 21:35:26 uwe Exp $	*/
2
3/* Windows CE architecture */
4
5#ifndef	_MACHTYPES_H_
6#define	_MACHTYPES_H_
7
8#include <sys/cdefs.h>
9#include <machine/int_types.h>
10
11/* BSD types. */
12typedef	unsigned char		u_char;
13typedef	unsigned short		u_short;
14typedef	unsigned int		u_int;
15typedef	unsigned long		u_long;
16
17/* 7.18.1.1 Exact-width integer types */
18typedef signed char		int8_t;
19typedef signed short		int16_t;
20typedef signed int		int32_t;
21typedef signed __int64		int64_t;
22
23typedef unsigned char		uint8_t;
24typedef unsigned short		uint16_t;
25typedef unsigned int		uint32_t;
26typedef unsigned __int64	uint64_t;
27
28/* compatibility names */
29typedef uint8_t			u_int8_t;
30typedef uint16_t		u_int16_t;
31typedef uint32_t		u_int32_t;
32typedef uint64_t		u_int64_t;
33
34typedef int32_t			off_t;
35#define	off_t			int32_t
36#ifndef _TIME_T_DEFINED
37#if _WIN32_WCE < 210
38typedef long			time_t;
39#else
40typedef unsigned long		time_t;
41#endif
42#define	_TIME_T_DEFINED
43#endif
44
45typedef unsigned int		size_t;
46
47/* Windows CE virtual address */
48typedef uint32_t		vaddr_t;
49typedef uint32_t		vsize_t;
50/* Physical address */
51typedef uint32_t		paddr_t;
52typedef uint32_t		psize_t;
53
54/* kernel virtual address */
55typedef uint32_t		kaddr_t;
56typedef uint32_t		ksize_t;
57
58#endif /* _MACHTYPES_H_ */
59