]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/machine_types.defs
59c1c916ec59b4d03f6dc17712f30f2a11341a99
[apple/xnu.git] / osfmk / mach / ppc / machine_types.defs
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * @OSF_COPYRIGHT@
24 */
25 /*
26 * HISTORY
27 *
28 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
29 * Import of Mac OS X kernel (~semeria)
30 *
31 * Revision 1.1.1.1 1998/03/07 02:25:46 wsanchez
32 * Import of OSF Mach kernel (~mburg)
33 *
34 * Revision 1.1.8.1 1996/12/09 16:50:08 stephen
35 * nmklinux_1.0b3_shared into pmk1.1
36 * [1996/12/09 10:51:04 stephen]
37 *
38 * Revision 1.1.6.1 1996/04/11 11:19:58 emcmanus
39 * Copied from mainline.ppc.
40 * [1996/04/10 16:56:50 emcmanus]
41 *
42 * mk6 CR668 - 1.3b26 merge
43 * new file for mk6
44 * [1994/11/02 18:18:29 dwm]
45 *
46 * Revision 1.1.4.1 1995/11/23 17:36:53 stephen
47 * first powerpc checkin to mainline.ppc
48 * [1995/11/23 16:45:00 stephen]
49 *
50 * Revision 1.1.2.1 1995/08/25 06:49:44 stephen
51 * Initial checkin of files for PowerPC port
52 * [1995/08/23 15:04:13 stephen]
53 *
54 * Revision 1.1.2.1 1994/05/06 18:54:50 tmt
55 * New Mig definition file to describe required machine types.
56 * [1994/05/05 21:08:57 tmt]
57 *
58 * $EndLog$
59 */
60 /*
61 * Header file for basic, machine-dependent data types. i386 version.
62 */
63
64 #ifndef _MACHINE_VM_TYPES_DEFS_
65 #define _MACHINE_VM_TYPES_DEFS_ 1
66
67 /*
68 * A natural_t is the type for the native
69 * integer type, e.g. 32 or 64 or.. whatever
70 * register size the machine has. Unsigned, it is
71 * used for entities that might be either
72 * unsigned integers or pointers, and for
73 * type-casting between the two.
74 * For instance, the IPC system represents
75 * a port in user space as an integer and
76 * in kernel space as a pointer.
77 */
78 type natural_t = unsigned32;
79
80 /*
81 * An integer_t is the signed counterpart
82 * of the natural_t type. Both types are
83 * only supposed to be used to define
84 * other types in a machine-independent
85 * way.
86 */
87 type integer_t = int32;
88
89
90 #if MACH_IPC_COMPAT
91 /*
92 * For the old IPC interface
93 */
94 #define MSG_TYPE_PORT_NAME MACH_MSG_TYPE_INTEGER_32
95
96 #endif /* MACH_IPC_COMPAT */
97
98
99 #endif /* _MACHINE_VM_TYPES_DEFS_ */