darwin-xnu/osfmk/kdp/kdp_private.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
   3 *
   4 * @APPLE_LICENSE_HEADER_START@
   5 * 
   6 * The contents of this file constitute Original Code as defined in and
   7 * are subject to the Apple Public Source License Version 1.1 (the
   8 * "License").  You may not use this file except in compliance with the
   9 * License.  Please obtain a copy of the License at
  10 * http://www.apple.com/publicsource and read it before using this file.
  11 * 
  12 * This Original Code and all software distributed under the License are
  13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17 * License for the specific language governing rights and limitations
  18 * under the License.
  19 * 
  20 * @APPLE_LICENSE_HEADER_END@
  21 */
  22
  23/*
  24 * Private functions for kdp.c
  25 */
  26
  27static boolean_t
  28kdp_unknown(
  29    kdp_pkt_t *,
  30    int *,
  31    unsigned short *
  32);
  33
  34static boolean_t
  35kdp_connect(
  36    kdp_pkt_t *,
  37    int *,
  38    unsigned short *
  39);
  40
  41static boolean_t
  42kdp_disconnect(
  43    kdp_pkt_t *,
  44    int *,
  45    unsigned short *
  46);
  47
  48static boolean_t
  49kdp_reattach(
  50    kdp_pkt_t *,
  51    int *,
  52    unsigned short *
  53);
  54
  55static boolean_t
  56kdp_hostinfo(
  57    kdp_pkt_t *,
  58    int *,
  59    unsigned short *
  60);
  61
  62static boolean_t
  63kdp_suspend(
  64    kdp_pkt_t *,
  65    int *,
  66    unsigned short *
  67);
  68
  69static boolean_t
  70kdp_readregs(
  71    kdp_pkt_t *,
  72    int *,
  73    unsigned short *
  74);
  75
  76static boolean_t
  77kdp_writeregs(
  78    kdp_pkt_t *,
  79    int *,
  80    unsigned short *
  81);
  82
  83static boolean_t
  84kdp_version(
  85    kdp_pkt_t *,
  86    int *,
  87    unsigned short *
  88);
  89
  90static boolean_t
  91kdp_regions(
  92    kdp_pkt_t *,
  93    int *,
  94    unsigned short *
  95);
  96
  97static boolean_t
  98kdp_maxbytes(
  99    kdp_pkt_t *,
 100    int *,
 101    unsigned short *
 102);
 103
 104static boolean_t
 105kdp_readmem(
 106    kdp_pkt_t *,
 107    int *,
 108    unsigned short *
 109);
 110
 111static boolean_t
 112kdp_writemem(
 113    kdp_pkt_t *,
 114    int *,
 115    unsigned short *
 116);
 117
 118static boolean_t
 119kdp_resumecpus(
 120    kdp_pkt_t *,
 121    int *,
 122    unsigned short *
 123);
 124
 125static boolean_t 
 126kdp_breakpoint_set(
 127    kdp_pkt_t *,
 128    int *,
 129    unsigned short *t
 130);
 131
 132static boolean_t
 133kdp_breakpoint_remove(
 134    kdp_pkt_t *,
 135    int *,
 136    unsigned short *
 137);
 138
 139
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.