]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
2d21ac55 | 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ |
1c79356b | 5 | * |
2d21ac55 A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the License | |
10 | * may not be used to create, or enable the creation or redistribution of, | |
11 | * unlawful or unlicensed copies of an Apple operating system, or to | |
12 | * circumvent, violate, or enable the circumvention or violation of, any | |
13 | * terms of an Apple operating system software license agreement. | |
8f6c56a5 | 14 | * |
2d21ac55 A |
15 | * Please obtain a copy of the License at |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
8f6c56a5 A |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
2d21ac55 A |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
23 | * Please see the License for the specific language governing rights and | |
24 | * limitations under the License. | |
8f6c56a5 | 25 | * |
2d21ac55 | 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ |
1c79356b | 27 | */ |
9bccf70c | 28 | |
1c79356b | 29 | /* |
9bccf70c | 30 | * Private functions for kdp.c |
1c79356b | 31 | */ |
6d2010ae | 32 | extern char kdp_kernelversion_string[]; |
1c79356b A |
33 | |
34 | static boolean_t | |
35 | kdp_unknown( | |
36 | kdp_pkt_t *, | |
37 | int *, | |
38 | unsigned short * | |
39 | ); | |
40 | ||
41 | static boolean_t | |
42 | kdp_connect( | |
43 | kdp_pkt_t *, | |
44 | int *, | |
45 | unsigned short * | |
46 | ); | |
47 | ||
48 | static boolean_t | |
49 | kdp_disconnect( | |
50 | kdp_pkt_t *, | |
51 | int *, | |
52 | unsigned short * | |
53 | ); | |
54 | ||
9bccf70c A |
55 | static boolean_t |
56 | kdp_reattach( | |
57 | kdp_pkt_t *, | |
58 | int *, | |
59 | unsigned short * | |
60 | ); | |
61 | ||
1c79356b A |
62 | static boolean_t |
63 | kdp_hostinfo( | |
64 | kdp_pkt_t *, | |
65 | int *, | |
66 | unsigned short * | |
67 | ); | |
68 | ||
69 | static boolean_t | |
70 | kdp_suspend( | |
71 | kdp_pkt_t *, | |
72 | int *, | |
73 | unsigned short * | |
74 | ); | |
75 | ||
76 | static boolean_t | |
77 | kdp_readregs( | |
78 | kdp_pkt_t *, | |
79 | int *, | |
80 | unsigned short * | |
81 | ); | |
82 | ||
83 | static boolean_t | |
84 | kdp_writeregs( | |
85 | kdp_pkt_t *, | |
86 | int *, | |
87 | unsigned short * | |
88 | ); | |
89 | ||
9bccf70c A |
90 | static boolean_t |
91 | kdp_version( | |
92 | kdp_pkt_t *, | |
93 | int *, | |
94 | unsigned short * | |
95 | ); | |
96 | ||
b0d623f7 A |
97 | static boolean_t |
98 | kdp_kernelversion( | |
99 | kdp_pkt_t *, | |
100 | int *, | |
101 | unsigned short * | |
102 | ); | |
103 | ||
1c79356b A |
104 | static boolean_t |
105 | kdp_regions( | |
106 | kdp_pkt_t *, | |
107 | int *, | |
108 | unsigned short * | |
109 | ); | |
110 | ||
111 | static boolean_t | |
112 | kdp_maxbytes( | |
113 | kdp_pkt_t *, | |
114 | int *, | |
115 | unsigned short * | |
116 | ); | |
117 | ||
118 | static boolean_t | |
119 | kdp_readmem( | |
120 | kdp_pkt_t *, | |
121 | int *, | |
122 | unsigned short * | |
123 | ); | |
124 | ||
b0d623f7 A |
125 | static boolean_t |
126 | kdp_readmem64( | |
127 | kdp_pkt_t *, | |
128 | int *, | |
129 | unsigned short * | |
130 | ); | |
131 | ||
132 | static boolean_t | |
133 | kdp_readphysmem64( | |
134 | kdp_pkt_t *, | |
135 | int *, | |
136 | unsigned short * | |
137 | ); | |
138 | ||
1c79356b A |
139 | static boolean_t |
140 | kdp_writemem( | |
141 | kdp_pkt_t *, | |
142 | int *, | |
143 | unsigned short * | |
144 | ); | |
145 | ||
b0d623f7 A |
146 | static boolean_t |
147 | kdp_writemem64( | |
148 | kdp_pkt_t *, | |
149 | int *, | |
150 | unsigned short * | |
151 | ); | |
152 | ||
153 | static boolean_t | |
154 | kdp_writephysmem64( | |
155 | kdp_pkt_t *, | |
156 | int *, | |
157 | unsigned short * | |
158 | ); | |
159 | ||
1c79356b A |
160 | static boolean_t |
161 | kdp_resumecpus( | |
162 | kdp_pkt_t *, | |
163 | int *, | |
164 | unsigned short * | |
165 | ); | |
166 | ||
9bccf70c A |
167 | static boolean_t |
168 | kdp_breakpoint_set( | |
169 | kdp_pkt_t *, | |
170 | int *, | |
171 | unsigned short *t | |
172 | ); | |
173 | ||
b0d623f7 A |
174 | static boolean_t |
175 | kdp_breakpoint64_set( | |
176 | kdp_pkt_t *, | |
177 | int *, | |
178 | unsigned short *t | |
179 | ); | |
180 | ||
181 | ||
9bccf70c A |
182 | static boolean_t |
183 | kdp_breakpoint_remove( | |
184 | kdp_pkt_t *, | |
185 | int *, | |
186 | unsigned short * | |
187 | ); | |
188 | ||
b0d623f7 A |
189 | static boolean_t |
190 | kdp_breakpoint64_remove( | |
191 | kdp_pkt_t *, | |
192 | int *, | |
193 | unsigned short * | |
194 | ); | |
195 | ||
196 | ||
197 | static boolean_t | |
198 | kdp_reboot( | |
199 | kdp_pkt_t *, | |
200 | int *, | |
201 | unsigned short * | |
202 | ); | |
203 | ||
204 | static boolean_t | |
205 | kdp_readioport(kdp_pkt_t *, int *, unsigned short *); | |
206 | ||
207 | static boolean_t | |
208 | kdp_writeioport(kdp_pkt_t *, int *, unsigned short *); | |
209 | ||
210 | static boolean_t | |
211 | kdp_readmsr64(kdp_pkt_t *, int *, unsigned short *); | |
212 | ||
213 | static boolean_t | |
214 | kdp_writemsr64(kdp_pkt_t *, int *, unsigned short *); | |
7e4a7d39 A |
215 | |
216 | static boolean_t | |
217 | kdp_dumpinfo(kdp_pkt_t *, int *, unsigned short *); |