Annotation of kernel/kern/kdp_internal.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.1 (the "License").  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License.
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: 
                     25: /*
                     26:  * Copyright (c) 1993 NeXT Computer, Inc.  All rights reserved.
                     27:  *
                     28:  * kdp_internal.h -- internal definitions for kdp module
                     29:  *
                     30:  */
                     31: 
                     32: #import <kern/kdp.h>
                     33: #import <kern/kdp_protocol.h>
                     34: 
                     35: typedef struct {
                     36:     unsigned short             reply_port;
                     37:     unsigned int               conn_seq;
                     38:     boolean_t                  is_conn;
                     39:     void                       *saved_state;
                     40:     boolean_t                  is_halted;
                     41:     unsigned short             exception_port;
                     42:     unsigned char              exception_seq;
                     43:     boolean_t                  exception_ack_needed;
                     44: } kdp_glob_t;
                     45: 
                     46: extern kdp_glob_t      kdp;
                     47: 
                     48: typedef boolean_t
                     49: (*kdp_dispatch_t)(
                     50:     kdp_pkt_t *,
                     51:     int         *,
                     52:     unsigned short *
                     53: );
                     54: 
                     55: boolean_t
                     56: kdp_packet(
                     57:     unsigned char *,
                     58:     int *,
                     59:     unsigned short *
                     60: );
                     61: 
                     62: void
                     63: kdp_exception(
                     64:     unsigned char *,
                     65:     int *,
                     66:     unsigned short *,
                     67:     unsigned int,
                     68:     unsigned int,
                     69:     unsigned int
                     70: );
                     71: 
                     72: void
                     73: kdp_exception_ack(
                     74:     unsigned char *,
                     75:     int
                     76: );
                     77: 
                     78: void
                     79: kdp_panic(
                     80:     const char         *msg
                     81: );
                     82: 
                     83: void
                     84: kdp_reset(
                     85:     void
                     86: );
                     87: 
                     88: void
                     89: kdp_reboot(
                     90:     void
                     91: );
                     92: 
                     93: void
                     94: kdp_us_spin(
                     95:     int usec
                     96: );
                     97: 
                     98: int
                     99: kdp_intr_disbl(
                    100:     void
                    101: );
                    102: 
                    103: void
                    104: kdp_intr_enbl(
                    105:     int s
                    106: );
                    107: 
                    108: kdp_error_t
                    109: kdp_machine_read_regs(
                    110:     unsigned int cpu,
                    111:     unsigned int flavor,
                    112:     char *data,
                    113:     int *size
                    114: );
                    115: 
                    116: kdp_error_t
                    117: kdp_machine_write_regs(
                    118:     unsigned int cpu,
                    119:     unsigned int flavor,
                    120:     char *data,
                    121:     int *size
                    122: );
                    123: 
                    124: void
                    125: kdp_machine_hostinfo(
                    126:     kdp_hostinfo_t *hostinfo
                    127: );
                    128: 
                    129: void
                    130: kdp_flush_cache(
                    131:     void
                    132: );
                    133: 
                    134: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.