]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. | |
7 | * | |
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 | |
13 | * file. | |
14 | * | |
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. | |
22 | * | |
23 | * @APPLE_LICENSE_HEADER_END@ | |
24 | */ | |
25 | /* | |
26 | * @OSF_COPYRIGHT@ | |
27 | */ | |
28 | /* | |
29 | * HISTORY | |
30 | * | |
31 | * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez | |
32 | * Import of Mac OS X kernel (~semeria) | |
33 | * | |
34 | * Revision 1.1.1.1 1998/03/07 02:25:47 wsanchez | |
35 | * Import of OSF Mach kernel (~mburg) | |
36 | * | |
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] | |
40 | * | |
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] | |
44 | * | |
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] | |
48 | * | |
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] | |
52 | * | |
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] | |
56 | * | |
57 | * Revision 1.2 1993/04/19 16:34:07 devrcs | |
58 | * Merge untyped ipc: | |
59 | * Introducing new MIG syntax for Untyped IPC (via compile option | |
60 | * MACH_IPC_TYPED) | |
61 | * [1993/02/17 23:44:54 travos] | |
62 | * | |
63 | * Revision 1.1 1992/09/30 02:22:34 robert | |
64 | * Initial revision | |
65 | * | |
66 | * $EndLog$ | |
67 | */ | |
68 | /* CMU_HIST */ | |
69 | /* | |
70 | * Revision 2.2.3.1 92/03/03 16:21:26 jeffreyh | |
71 | * Changes from TRUNK | |
72 | * [92/02/26 11:58:37 jeffreyh] | |
73 | * | |
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. | |
77 | * [91/08/20 dbg] | |
78 | * | |
79 | * Revision 2.2 91/07/31 17:51:57 dbg | |
80 | * Created. | |
81 | * [91/07/30 17:09:09 dbg] | |
82 | * | |
83 | */ | |
84 | /* CMU_ENDHIST */ | |
85 | /* | |
86 | * Mach Operating System | |
87 | * Copyright (c) 1991 Carnegie Mellon University | |
88 | * All Rights Reserved. | |
89 | * | |
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. | |
95 | * | |
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. | |
99 | * | |
100 | * Carnegie Mellon requests users of this software to return to | |
101 | * | |
102 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU | |
103 | * School of Computer Science | |
104 | * Carnegie Mellon University | |
105 | * Pittsburgh PA 15213-3890 | |
106 | * | |
107 | * any improvements or extensions that they make and grant Carnegie Mellon | |
108 | * the rights to redistribute these changes. | |
109 | */ | |
110 | ||
111 | /* | |
112 | */ | |
113 | ||
114 | /* | |
115 | * Special functions for i386. | |
116 | */ | |
117 | ||
118 | subsystem | |
119 | #if KERNEL_SERVER | |
120 | KernelServer | |
121 | #endif KERNEL_SERVER | |
122 | mach_i386 3800; | |
123 | ||
124 | #include <mach/std_types.defs> | |
125 | #include <mach/mach_types.defs> | |
126 | #include <device/device_types.defs> | |
127 | ||
128 | type device_list_t = ^array[] of device_t; | |
129 | ||
130 | type descriptor_t = struct[2] of int; | |
131 | type descriptor_list_t = array[*] of descriptor_t; | |
132 | ||
133 | #undef i386 /* XXX! */ | |
134 | import <mach/i386/mach_i386_types.h>; | |
135 | ||
136 | routine i386_io_port_add( | |
137 | target_act : thread_act_t; | |
138 | device : device_t); | |
139 | ||
140 | routine i386_io_port_remove( | |
141 | target_act : thread_act_t; | |
142 | device : device_t); | |
143 | ||
144 | routine i386_io_port_list( | |
145 | target_act : thread_act_t; | |
146 | out device_list : device_list_t); | |
147 | ||
148 | routine i386_set_ldt( | |
149 | target_act : thread_act_t; | |
150 | first_selector : int; | |
151 | desc_list : descriptor_list_t | |
152 | ); | |
153 | ||
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); |