]> git.saurik.com Git - apple/xnu.git/blame - osfmk/kdp/kdp_private.h
xnu-517.3.15.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 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
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
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
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.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
9bccf70c 25
1c79356b 26/*
9bccf70c 27 * Private functions for kdp.c
1c79356b
A
28 */
29
30static boolean_t
31kdp_unknown(
32 kdp_pkt_t *,
33 int *,
34 unsigned short *
35);
36
37static boolean_t
38kdp_connect(
39 kdp_pkt_t *,
40 int *,
41 unsigned short *
42);
43
44static boolean_t
45kdp_disconnect(
46 kdp_pkt_t *,
47 int *,
48 unsigned short *
49);
50
9bccf70c
A
51static boolean_t
52kdp_reattach(
53 kdp_pkt_t *,
54 int *,
55 unsigned short *
56);
57
1c79356b
A
58static boolean_t
59kdp_hostinfo(
60 kdp_pkt_t *,
61 int *,
62 unsigned short *
63);
64
65static boolean_t
66kdp_suspend(
67 kdp_pkt_t *,
68 int *,
69 unsigned short *
70);
71
72static boolean_t
73kdp_readregs(
74 kdp_pkt_t *,
75 int *,
76 unsigned short *
77);
78
79static boolean_t
80kdp_writeregs(
81 kdp_pkt_t *,
82 int *,
83 unsigned short *
84);
85
9bccf70c
A
86static boolean_t
87kdp_version(
88 kdp_pkt_t *,
89 int *,
90 unsigned short *
91);
92
1c79356b
A
93static boolean_t
94kdp_regions(
95 kdp_pkt_t *,
96 int *,
97 unsigned short *
98);
99
100static boolean_t
101kdp_maxbytes(
102 kdp_pkt_t *,
103 int *,
104 unsigned short *
105);
106
107static boolean_t
108kdp_readmem(
109 kdp_pkt_t *,
110 int *,
111 unsigned short *
112);
113
114static boolean_t
115kdp_writemem(
116 kdp_pkt_t *,
117 int *,
118 unsigned short *
119);
120
121static boolean_t
122kdp_resumecpus(
123 kdp_pkt_t *,
124 int *,
125 unsigned short *
126);
127
9bccf70c
A
128static boolean_t
129kdp_breakpoint_set(
130 kdp_pkt_t *,
131 int *,
132 unsigned short *t
133);
134
135static boolean_t
136kdp_breakpoint_remove(
137 kdp_pkt_t *,
138 int *,
139 unsigned short *
140);
141