]> git.saurik.com Git - apple/xnu.git/blob - osfmk/kdp/kdp_private.h
xnu-792.12.6.tar.gz
[apple/xnu.git] / osfmk / kdp / kdp_private.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
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
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30
31 /*
32 * Private functions for kdp.c
33 */
34
35 static boolean_t
36 kdp_unknown(
37 kdp_pkt_t *,
38 int *,
39 unsigned short *
40 );
41
42 static boolean_t
43 kdp_connect(
44 kdp_pkt_t *,
45 int *,
46 unsigned short *
47 );
48
49 static boolean_t
50 kdp_disconnect(
51 kdp_pkt_t *,
52 int *,
53 unsigned short *
54 );
55
56 static boolean_t
57 kdp_reattach(
58 kdp_pkt_t *,
59 int *,
60 unsigned short *
61 );
62
63 static boolean_t
64 kdp_hostinfo(
65 kdp_pkt_t *,
66 int *,
67 unsigned short *
68 );
69
70 static boolean_t
71 kdp_suspend(
72 kdp_pkt_t *,
73 int *,
74 unsigned short *
75 );
76
77 static boolean_t
78 kdp_readregs(
79 kdp_pkt_t *,
80 int *,
81 unsigned short *
82 );
83
84 static boolean_t
85 kdp_writeregs(
86 kdp_pkt_t *,
87 int *,
88 unsigned short *
89 );
90
91 static boolean_t
92 kdp_version(
93 kdp_pkt_t *,
94 int *,
95 unsigned short *
96 );
97
98 static boolean_t
99 kdp_regions(
100 kdp_pkt_t *,
101 int *,
102 unsigned short *
103 );
104
105 static boolean_t
106 kdp_maxbytes(
107 kdp_pkt_t *,
108 int *,
109 unsigned short *
110 );
111
112 static boolean_t
113 kdp_readmem(
114 kdp_pkt_t *,
115 int *,
116 unsigned short *
117 );
118
119 static boolean_t
120 kdp_writemem(
121 kdp_pkt_t *,
122 int *,
123 unsigned short *
124 );
125
126 static boolean_t
127 kdp_resumecpus(
128 kdp_pkt_t *,
129 int *,
130 unsigned short *
131 );
132
133 static boolean_t
134 kdp_breakpoint_set(
135 kdp_pkt_t *,
136 int *,
137 unsigned short *t
138 );
139
140 static boolean_t
141 kdp_breakpoint_remove(
142 kdp_pkt_t *,
143 int *,
144 unsigned short *
145 );
146