]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach/i386/mach_i386.defs
xnu-123.5.tar.gz
[apple/xnu.git] / osfmk / mach / i386 / mach_i386.defs
CommitLineData
1c79356b
A
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:47 wsanchez
32 * Import of OSF Mach kernel (~mburg)
33 *
34 * Revision 1.2.9.1 1994/09/23 02:37:21 ezf
35 * change marker to not FREE
36 * [1994/09/22 21:40:05 ezf]
37 *
38 * Revision 1.2.6.2 1994/03/17 22:38:39 dwm
39 * The infamous name change: thread_activation + thread_shuttle = thread.
40 * [1994/03/17 21:28:20 dwm]
41 *
42 * Revision 1.2.6.1 1994/01/12 17:56:07 dwm
43 * Coloc: initial restructuring to follow Utah model.
44 * [1994/01/12 17:30:21 dwm]
45 *
46 * Revision 1.2.2.3 1993/09/10 13:08:26 rod
47 * Zap obsolete MACH_IPC_TYPED conditional code.
48 * [1993/08/31 11:29:37 rod]
49 *
50 * Revision 1.2.2.2 1993/06/09 02:40:40 gm
51 * Added to OSF/1 R1.3 from NMK15.0.
52 * [1993/06/02 21:16:18 jeffc]
53 *
54 * Revision 1.2 1993/04/19 16:34:07 devrcs
55 * Merge untyped ipc:
56 * Introducing new MIG syntax for Untyped IPC (via compile option
57 * MACH_IPC_TYPED)
58 * [1993/02/17 23:44:54 travos]
59 *
60 * Revision 1.1 1992/09/30 02:22:34 robert
61 * Initial revision
62 *
63 * $EndLog$
64 */
65/* CMU_HIST */
66/*
67 * Revision 2.2.3.1 92/03/03 16:21:26 jeffreyh
68 * Changes from TRUNK
69 * [92/02/26 11:58:37 jeffreyh]
70 *
71 * Revision 2.3 92/01/03 20:19:56 dbg
72 * Renamed io_map to io_port_add. Added io_port_remove,
73 * io_port_list, set_ldt, get_ldt.
74 * [91/08/20 dbg]
75 *
76 * Revision 2.2 91/07/31 17:51:57 dbg
77 * Created.
78 * [91/07/30 17:09:09 dbg]
79 *
80 */
81/* CMU_ENDHIST */
82/*
83 * Mach Operating System
84 * Copyright (c) 1991 Carnegie Mellon University
85 * All Rights Reserved.
86 *
87 * Permission to use, copy, modify and distribute this software and its
88 * documentation is hereby granted, provided that both the copyright
89 * notice and this permission notice appear in all copies of the
90 * software, derivative works or modified versions, and any portions
91 * thereof, and that both notices appear in supporting documentation.
92 *
93 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
94 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
95 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
96 *
97 * Carnegie Mellon requests users of this software to return to
98 *
99 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
100 * School of Computer Science
101 * Carnegie Mellon University
102 * Pittsburgh PA 15213-3890
103 *
104 * any improvements or extensions that they make and grant Carnegie Mellon
105 * the rights to redistribute these changes.
106 */
107
108/*
109 */
110
111/*
112 * Special functions for i386.
113 */
114
115subsystem
116#if KERNEL_SERVER
117 KernelServer
118#endif KERNEL_SERVER
119 mach_i386 3800;
120
121#include <mach/std_types.defs>
122#include <mach/mach_types.defs>
123#include <device/device_types.defs>
124
125type device_list_t = ^array[] of device_t;
126
127type descriptor_t = struct[2] of int;
128type descriptor_list_t = array[*] of descriptor_t;
129
130#undef i386 /* XXX! */
131import <mach/i386/mach_i386_types.h>;
132
133routine i386_io_port_add(
134 target_act : thread_act_t;
135 device : device_t);
136
137routine i386_io_port_remove(
138 target_act : thread_act_t;
139 device : device_t);
140
141routine i386_io_port_list(
142 target_act : thread_act_t;
143 out device_list : device_list_t);
144
145routine i386_set_ldt(
146 target_act : thread_act_t;
147 first_selector : int;
148 desc_list : descriptor_list_t
149);
150
151routine i386_get_ldt(
152 target_act : thread_act_t;
153 first_selector : int;
154 selector_count : int;
155 out desc_list : descriptor_list_t);