]> git.saurik.com Git - apple/xnu.git/blob - osfmk/kdp/kdp_private.h
d8ea7521a134686ac4c517b2a05835551629636f
[apple/xnu.git] / osfmk / kdp / kdp_private.h
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 /*
27 * Private functions for kdp.c
28 */
29
30 static boolean_t
31 kdp_unknown(
32 kdp_pkt_t *,
33 int *,
34 unsigned short *
35 );
36
37 static boolean_t
38 kdp_connect(
39 kdp_pkt_t *,
40 int *,
41 unsigned short *
42 );
43
44 static boolean_t
45 kdp_disconnect(
46 kdp_pkt_t *,
47 int *,
48 unsigned short *
49 );
50
51 static boolean_t
52 kdp_reattach(
53 kdp_pkt_t *,
54 int *,
55 unsigned short *
56 );
57
58 static boolean_t
59 kdp_hostinfo(
60 kdp_pkt_t *,
61 int *,
62 unsigned short *
63 );
64
65 static boolean_t
66 kdp_suspend(
67 kdp_pkt_t *,
68 int *,
69 unsigned short *
70 );
71
72 static boolean_t
73 kdp_readregs(
74 kdp_pkt_t *,
75 int *,
76 unsigned short *
77 );
78
79 static boolean_t
80 kdp_writeregs(
81 kdp_pkt_t *,
82 int *,
83 unsigned short *
84 );
85
86 static boolean_t
87 kdp_version(
88 kdp_pkt_t *,
89 int *,
90 unsigned short *
91 );
92
93 static boolean_t
94 kdp_regions(
95 kdp_pkt_t *,
96 int *,
97 unsigned short *
98 );
99
100 static boolean_t
101 kdp_maxbytes(
102 kdp_pkt_t *,
103 int *,
104 unsigned short *
105 );
106
107 static boolean_t
108 kdp_readmem(
109 kdp_pkt_t *,
110 int *,
111 unsigned short *
112 );
113
114 static boolean_t
115 kdp_writemem(
116 kdp_pkt_t *,
117 int *,
118 unsigned short *
119 );
120
121 static boolean_t
122 kdp_resumecpus(
123 kdp_pkt_t *,
124 int *,
125 unsigned short *
126 );
127
128 static boolean_t
129 kdp_breakpoint_set(
130 kdp_pkt_t *,
131 int *,
132 unsigned short *t
133 );
134
135 static boolean_t
136 kdp_breakpoint_remove(
137 kdp_pkt_t *,
138 int *,
139 unsigned short *
140 );
141