]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/vm_types.h
157684e16c1bdd73ac31d3a75609e204f53b4d11
[apple/xnu.git] / osfmk / mach / ppc / vm_types.h
1 /*
2 * Copyright (c) 2002,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 * Mach Operating System
27 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
28 * All Rights Reserved.
29 *
30 * Permission to use, copy, modify and distribute this software and its
31 * documentation is hereby granted, provided that both the copyright
32 * notice and this permission notice appear in all copies of the
33 * software, derivative works or modified versions, and any portions
34 * thereof, and that both notices appear in supporting documentation.
35 *
36 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
39 *
40 * Carnegie Mellon requests users of this software to return to
41 *
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
46 *
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
49 */
50 /*
51 */
52
53 /*
54 * File: vm_types.h
55 * Author: Avadis Tevanian, Jr.
56 * Date: 1985
57 *
58 * Header file for VM data types. I386 version.
59 */
60
61 #ifndef _MACH_PPC_VM_TYPES_H_
62 #define _MACH_PPC_VM_TYPES_H_
63
64 #ifndef ASSEMBLER
65
66 /*
67 * A natural_t is the type for the native
68 * integer type, e.g. 32 or 64 or.. whatever
69 * register size the machine has. Unsigned, it is
70 * used for entities that might be either
71 * unsigned integers or pointers, and for
72 * type-casting between the two.
73 * For instance, the IPC system represents
74 * a port in user space as an integer and
75 * in kernel space as a pointer.
76 */
77 typedef unsigned int natural_t;
78
79 /*
80 * An integer_t is the signed counterpart
81 * of the natural_t type. Both types are
82 * only supposed to be used to define
83 * other types in a machine-independent
84 * way.
85 */
86 typedef int integer_t;
87
88 /*
89 * A vm_offset_t is a type-neutral pointer,
90 * e.g. an offset into a virtual memory space.
91 */
92 typedef natural_t vm_offset_t;
93
94 /*
95 * A vm_size_t is the proper type for e.g.
96 * expressing the difference between two
97 * vm_offset_t entities.
98 */
99 typedef natural_t vm_size_t;
100
101 /*
102 * space_t is used in the pmap system
103 */
104 typedef unsigned int space_t;
105
106 #endif /* ndef ASSEMBLER */
107
108 /*
109 * If composing messages by hand (please dont)
110 */
111
112 #define MACH_MSG_TYPE_INTEGER_T MACH_MSG_TYPE_INTEGER_32
113
114 #endif /* _MACH_PPC_VM_TYPES_H_ */