]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/vm_types.h
855c1da16c2ecb2161880283f4c579e93efb8bd2
[apple/xnu.git] / osfmk / mach / ppc / vm_types.h
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:19 stephen
35 * nmklinux_1.0b3_shared into pmk1.1
36 * [1996/12/09 10:51:34 stephen]
37 *
38 * Revision 1.1.6.1 1996/04/11 11:20:26 emcmanus
39 * Copied from mainline.ppc.
40 * [1996/04/10 16:57:16 emcmanus]
41 *
42 * Revision 1.1.4.1 1995/11/23 17:37:13 stephen
43 * first powerpc checkin to mainline.ppc
44 * [1995/11/23 16:45:52 stephen]
45 *
46 * Revision 1.1.2.1 1995/08/25 06:50:05 stephen
47 * Initial checkin of files for PowerPC port
48 * [1995/08/23 15:05:11 stephen]
49 *
50 * Revision 1.2.8.2 1995/01/06 19:50:48 devrcs
51 * mk6 CR668 - 1.3b26 merge
52 * 64bit cleanup
53 * [1994/10/14 03:42:42 dwm]
54 *
55 * Revision 1.2.8.1 1994/09/23 02:38:01 ezf
56 * change marker to not FREE
57 * [1994/09/22 21:40:30 ezf]
58 *
59 * Revision 1.2.2.2 1993/06/09 02:41:01 gm
60 * Added to OSF/1 R1.3 from NMK15.0.
61 * [1993/06/02 21:16:38 jeffc]
62 *
63 * Revision 1.2 1993/04/19 16:34:37 devrcs
64 * ansi C conformance changes
65 * [1993/02/02 18:56:34 david]
66 *
67 * Revision 1.1 1992/09/30 02:30:57 robert
68 * Initial revision
69 *
70 * $EndLog$
71 */
72 /* CMU_HIST */
73 /*
74 * Revision 2.4 91/05/14 16:53:00 mrt
75 * Correcting copyright
76 *
77 * Revision 2.3 91/02/05 17:32:34 mrt
78 * Changed to new Mach copyright
79 * [91/02/01 17:10:49 mrt]
80 *
81 * Revision 2.2 90/05/03 15:48:32 dbg
82 * First checkin.
83 *
84 * Revision 1.3 89/03/09 20:20:12 rpd
85 * More cleanup.
86 *
87 * Revision 1.2 89/02/26 13:01:20 gm0w
88 * Changes for cleanup.
89 *
90 * 31-Dec-88 Robert Baron (rvb) at Carnegie-Mellon University
91 * Derived from MACH2.0 vax release.
92 *
93 * 23-Apr-87 Michael Young (mwyoung) at Carnegie-Mellon University
94 * Changed things to "unsigned int" to appease the user community :-).
95 *
96 */
97 /* CMU_ENDHIST */
98 /*
99 * Mach Operating System
100 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
101 * All Rights Reserved.
102 *
103 * Permission to use, copy, modify and distribute this software and its
104 * documentation is hereby granted, provided that both the copyright
105 * notice and this permission notice appear in all copies of the
106 * software, derivative works or modified versions, and any portions
107 * thereof, and that both notices appear in supporting documentation.
108 *
109 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
110 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
111 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
112 *
113 * Carnegie Mellon requests users of this software to return to
114 *
115 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
116 * School of Computer Science
117 * Carnegie Mellon University
118 * Pittsburgh PA 15213-3890
119 *
120 * any improvements or extensions that they make and grant Carnegie Mellon
121 * the rights to redistribute these changes.
122 */
123 /*
124 */
125
126 /*
127 * File: vm_types.h
128 * Author: Avadis Tevanian, Jr.
129 * Date: 1985
130 *
131 * Header file for VM data types. I386 version.
132 */
133
134 #ifndef _MACH_PPC_VM_TYPES_H_
135 #define _MACH_PPC_VM_TYPES_H_
136
137 #ifndef ASSEMBLER
138
139 /*
140 * A natural_t is the type for the native
141 * integer type, e.g. 32 or 64 or.. whatever
142 * register size the machine has. Unsigned, it is
143 * used for entities that might be either
144 * unsigned integers or pointers, and for
145 * type-casting between the two.
146 * For instance, the IPC system represents
147 * a port in user space as an integer and
148 * in kernel space as a pointer.
149 */
150 typedef unsigned int natural_t;
151
152 /*
153 * An integer_t is the signed counterpart
154 * of the natural_t type. Both types are
155 * only supposed to be used to define
156 * other types in a machine-independent
157 * way.
158 */
159 typedef int integer_t;
160
161 #ifdef MACH_KERNEL_PRIVATE
162 /*
163 * An int32 is an integer that is at least 32 bits wide
164 */
165 typedef int int32;
166 typedef unsigned int uint32;
167 #endif
168
169 /*
170 * A vm_offset_t is a type-neutral pointer,
171 * e.g. an offset into a virtual memory space.
172 */
173 typedef natural_t vm_offset_t;
174
175 /*
176 * A vm_size_t is the proper type for e.g.
177 * expressing the difference between two
178 * vm_offset_t entities.
179 */
180 typedef natural_t vm_size_t;
181 typedef unsigned long long vm_double_size_t;
182
183 /*
184 * space_t is used in the pmap system
185 */
186 typedef unsigned int space_t;
187
188 #endif /* ndef ASSEMBLER */
189
190 /*
191 * If composing messages by hand (please dont)
192 */
193
194 #define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
195
196 #endif /* _MACH_PPC_VM_TYPES_H_ */