]> git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/protos.h
xnu-517.7.7.tar.gz
[apple/xnu.git] / pexpert / pexpert / protos.h
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 #ifndef _PEXPERT_PROTOS_H_
23 #define _PEXPERT_PROTOS_H_
24
25 #ifdef PEXPERT_KERNEL_PRIVATE
26
27
28 #include <mach/mach_types.h>
29 #include <mach/vm_types.h>
30 #include <mach/boolean.h>
31 #include <mach/boot_info.h>
32 #include <stdarg.h>
33 #include <kern/assert.h>
34
35 #include <pexpert/machine/protos.h>
36
37 //------------------------------------------------------------------------
38 // from ppc/misc_protos.h
39 extern void printf(const char *fmt, ...);
40
41 extern int strcmp(const char *s1, const char *s2);
42 extern int strncmp(const char *s1, const char *s2, unsigned long n);
43 extern int strlen( register const char *string);
44 extern char *strcat(char *dest, const char *src);
45 extern char *strcpy(char *dest, const char *src);
46 extern char *strncpy(char *dest, const char *src, unsigned long n);
47 extern void interrupt_enable(void);
48 extern void interrupt_disable(void);
49 extern void bcopy(void * from, void * to, int size);
50 #if __ppc__
51 extern void bcopy_nc(char *from, char *to, int size); /* uncached-safe */
52 #else
53 #define bcopy_nc bcopy
54 #endif
55
56 //------------------------------------------------------------------------
57 //from kern/misc_protos.h
58 extern void panic(const char *string, ...);
59
60 /* Zero an arbitrarily aligned array */
61 extern void bzero(
62 char *from,
63 vm_size_t nbytes);
64
65 extern void
66 _doprnt(
67 register const char *fmt,
68 va_list *argp,
69 void (*putc)(char),
70 int radix);
71
72 #include <machine/io_map_entries.h>
73
74 //------------------------------------------------------------------------
75 // ??
76 //typedef int kern_return_t;
77 void Debugger(const char *message);
78
79 #include <kern/cpu_number.h>
80 #include <kern/cpu_data.h>
81
82 //------------------------------------------------------------------------
83 // from kgdb/kgdb_defs.h
84 #define kgdb_printf printf
85
86 #include <mach/machine/vm_types.h>
87 #include <device/device_types.h>
88 #include <kern/kalloc.h>
89
90 //------------------------------------------------------------------------
91
92 // from iokit/IOStartIOKit.cpp
93 extern int StartIOKit( void * p1, void * p2, void * p3, void * p4);
94
95 // from iokit/Families/IOFramebuffer.cpp
96 extern unsigned char appleClut8[ 256 * 3 ];
97
98
99 #endif /* PEXPERT_KERNEL_PRIVATE */
100
101 #endif /* _PEXPERT_PROTOS_H_ */