2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
31 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
32 * Import of Mac OS X kernel (~semeria)
34 * Revision 1.1.1.1 1998/03/07 02:25:47 wsanchez
35 * Import of OSF Mach kernel (~mburg)
37 * Revision 1.2.9.1 1994/09/23 02:37:21 ezf
38 * change marker to not FREE
39 * [1994/09/22 21:40:05 ezf]
41 * Revision 1.2.6.2 1994/03/17 22:38:39 dwm
42 * The infamous name change: thread_activation + thread_shuttle = thread.
43 * [1994/03/17 21:28:20 dwm]
45 * Revision 1.2.6.1 1994/01/12 17:56:07 dwm
46 * Coloc: initial restructuring to follow Utah model.
47 * [1994/01/12 17:30:21 dwm]
49 * Revision 1.2.2.3 1993/09/10 13:08:26 rod
50 * Zap obsolete MACH_IPC_TYPED conditional code.
51 * [1993/08/31 11:29:37 rod]
53 * Revision 1.2.2.2 1993/06/09 02:40:40 gm
54 * Added to OSF/1 R1.3 from NMK15.0.
55 * [1993/06/02 21:16:18 jeffc]
57 * Revision 1.2 1993/04/19 16:34:07 devrcs
59 * Introducing new MIG syntax for Untyped IPC (via compile option
61 * [1993/02/17 23:44:54 travos]
63 * Revision 1.1 1992/09/30 02:22:34 robert
70 * Revision 2.2.3.1 92/03/03 16:21:26 jeffreyh
72 * [92/02/26 11:58:37 jeffreyh]
74 * Revision 2.3 92/01/03 20:19:56 dbg
75 * Renamed io_map to io_port_add. Added io_port_remove,
76 * io_port_list, set_ldt, get_ldt.
79 * Revision 2.2 91/07/31 17:51:57 dbg
81 * [91/07/30 17:09:09 dbg]
86 * Mach Operating System
87 * Copyright (c) 1991 Carnegie Mellon University
88 * All Rights Reserved.
90 * Permission to use, copy, modify and distribute this software and its
91 * documentation is hereby granted, provided that both the copyright
92 * notice and this permission notice appear in all copies of the
93 * software, derivative works or modified versions, and any portions
94 * thereof, and that both notices appear in supporting documentation.
96 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
97 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
98 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
100 * Carnegie Mellon requests users of this software to return to
102 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
103 * School of Computer Science
104 * Carnegie Mellon University
105 * Pittsburgh PA 15213-3890
107 * any improvements or extensions that they make and grant Carnegie Mellon
108 * the rights to redistribute these changes.
115 * Special functions for i386.
124 #include <mach/std_types.defs>
125 #include <mach/mach_types.defs>
126 #include <device/device_types.defs>
128 type device_list_t = ^array[] of device_t;
130 type descriptor_t = struct[2] of int;
131 type descriptor_list_t = array[*] of descriptor_t;
133 #undef i386 /* XXX! */
134 import <mach/i386/mach_i386_types.h>;
136 routine i386_io_port_add(
137 target_act : thread_act_t;
140 routine i386_io_port_remove(
141 target_act : thread_act_t;
144 routine i386_io_port_list(
145 target_act : thread_act_t;
146 out device_list : device_list_t);
148 routine i386_set_ldt(
149 target_act : thread_act_t;
150 first_selector : int;
151 desc_list : descriptor_list_t
154 routine i386_get_ldt(
155 target_act : thread_act_t;
156 first_selector : int;
157 selector_count : int;
158 out desc_list : descriptor_list_t);