]> git.saurik.com Git - apple/xnu.git/blame - osfmk/kdp/kdp_private.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / kdp / kdp_private.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
2d21ac55 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
0a7de745 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.
0a7de745 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.
0a7de745 17 *
2d21ac55
A
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.
0a7de745 25 *
2d21ac55 26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
1c79356b 27 */
9bccf70c 28
1c79356b 29/*
9bccf70c 30 * Private functions for kdp.c
1c79356b
A
31 */
32
33static boolean_t
34kdp_unknown(
0a7de745
A
35 kdp_pkt_t *,
36 int *,
37 unsigned short *
38 );
1c79356b
A
39
40static boolean_t
41kdp_connect(
0a7de745
A
42 kdp_pkt_t *,
43 int *,
44 unsigned short *
45 );
1c79356b
A
46
47static boolean_t
48kdp_disconnect(
0a7de745
A
49 kdp_pkt_t *,
50 int *,
51 unsigned short *
52 );
1c79356b 53
9bccf70c
A
54static boolean_t
55kdp_reattach(
0a7de745
A
56 kdp_pkt_t *,
57 int *,
58 unsigned short *
59 );
9bccf70c 60
1c79356b
A
61static boolean_t
62kdp_hostinfo(
0a7de745
A
63 kdp_pkt_t *,
64 int *,
65 unsigned short *
66 );
1c79356b
A
67
68static boolean_t
69kdp_suspend(
0a7de745
A
70 kdp_pkt_t *,
71 int *,
72 unsigned short *
73 );
1c79356b
A
74
75static boolean_t
76kdp_readregs(
0a7de745
A
77 kdp_pkt_t *,
78 int *,
79 unsigned short *
80 );
1c79356b
A
81
82static boolean_t
83kdp_writeregs(
0a7de745
A
84 kdp_pkt_t *,
85 int *,
86 unsigned short *
87 );
1c79356b 88
9bccf70c
A
89static boolean_t
90kdp_version(
0a7de745
A
91 kdp_pkt_t *,
92 int *,
93 unsigned short *
94 );
9bccf70c 95
b0d623f7
A
96static boolean_t
97kdp_kernelversion(
0a7de745
A
98 kdp_pkt_t *,
99 int *,
100 unsigned short *
101 );
b0d623f7 102
1c79356b
A
103static boolean_t
104kdp_regions(
0a7de745
A
105 kdp_pkt_t *,
106 int *,
107 unsigned short *
108 );
1c79356b
A
109
110static boolean_t
111kdp_maxbytes(
0a7de745
A
112 kdp_pkt_t *,
113 int *,
114 unsigned short *
115 );
1c79356b
A
116
117static boolean_t
118kdp_readmem(
0a7de745
A
119 kdp_pkt_t *,
120 int *,
121 unsigned short *
122 );
1c79356b 123
b0d623f7
A
124static boolean_t
125kdp_readmem64(
0a7de745
A
126 kdp_pkt_t *,
127 int *,
128 unsigned short *
129 );
b0d623f7
A
130
131static boolean_t
132kdp_readphysmem64(
0a7de745
A
133 kdp_pkt_t *,
134 int *,
135 unsigned short *
136 );
b0d623f7 137
1c79356b
A
138static boolean_t
139kdp_writemem(
0a7de745
A
140 kdp_pkt_t *,
141 int *,
142 unsigned short *
143 );
1c79356b 144
b0d623f7
A
145static boolean_t
146kdp_writemem64(
0a7de745
A
147 kdp_pkt_t *,
148 int *,
149 unsigned short *
150 );
b0d623f7
A
151
152static boolean_t
153kdp_writephysmem64(
0a7de745
A
154 kdp_pkt_t *,
155 int *,
156 unsigned short *
157 );
b0d623f7 158
1c79356b
A
159static boolean_t
160kdp_resumecpus(
0a7de745
A
161 kdp_pkt_t *,
162 int *,
163 unsigned short *
164 );
1c79356b 165
0a7de745 166static boolean_t
9bccf70c 167kdp_breakpoint_set(
0a7de745
A
168 kdp_pkt_t *,
169 int *,
170 unsigned short *t
171 );
9bccf70c 172
0a7de745 173static boolean_t
b0d623f7 174kdp_breakpoint64_set(
0a7de745
A
175 kdp_pkt_t *,
176 int *,
177 unsigned short *t
178 );
b0d623f7
A
179
180
9bccf70c
A
181static boolean_t
182kdp_breakpoint_remove(
0a7de745
A
183 kdp_pkt_t *,
184 int *,
185 unsigned short *
186 );
9bccf70c 187
b0d623f7
A
188static boolean_t
189kdp_breakpoint64_remove(
0a7de745
A
190 kdp_pkt_t *,
191 int *,
192 unsigned short *
193 );
b0d623f7
A
194
195
196static boolean_t
197kdp_reboot(
0a7de745
A
198 kdp_pkt_t *,
199 int *,
200 unsigned short *
201 );
b0d623f7
A
202
203static boolean_t
204kdp_readioport(kdp_pkt_t *, int *, unsigned short *);
205
206static boolean_t
207kdp_writeioport(kdp_pkt_t *, int *, unsigned short *);
208
209static boolean_t
210kdp_readmsr64(kdp_pkt_t *, int *, unsigned short *);
211
212static boolean_t
213kdp_writemsr64(kdp_pkt_t *, int *, unsigned short *);
7e4a7d39
A
214
215static boolean_t
216kdp_dumpinfo(kdp_pkt_t *, int *, unsigned short *);