]>
git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/protos.h
79848c30a9c6737aec9e09217f154249afe33b20
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
22 #ifndef _PEXPERT_PROTOS_H_
23 #define _PEXPERT_PROTOS_H_
25 #ifdef PEXPERT_KERNEL_PRIVATE
28 #include <mach/mach_types.h>
29 #include <mach/vm_types.h>
30 #include <mach/boolean.h>
31 #include <mach/boot_info.h>
33 #include <kern/assert.h>
35 #include <pexpert/machine/protos.h>
37 //------------------------------------------------------------------------
38 // from ppc/misc_protos.h
39 extern void printf(const char *fmt
, ...);
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);
50 extern void bcopy_nc(char *from
, char *to
, int size
); /* uncached-safe */
52 #define bcopy_nc bcopy
55 //------------------------------------------------------------------------
56 //from kern/misc_protos.h
57 extern void panic(const char *string
, ...);
59 /* Zero an arbitrarily aligned array */
66 register const char *fmt
,
71 #include <machine/io_map_entries.h>
73 //------------------------------------------------------------------------
75 //typedef int kern_return_t;
76 void Debugger(const char *message
);
78 #include <kern/cpu_number.h>
79 #include <kern/cpu_data.h>
81 //------------------------------------------------------------------------
82 // from kgdb/kgdb_defs.h
83 #define kgdb_printf printf
85 #include <mach/machine/vm_types.h>
86 #include <device/device_types.h>
87 #include <kern/kalloc.h>
89 //------------------------------------------------------------------------
91 // from iokit/IOStartIOKit.cpp
92 extern int StartIOKit( void * p1
, void * p2
, void * p3
, void * p4
);
94 // from iokit/Families/IOFramebuffer.cpp
95 extern unsigned char appleClut8
[ 256 * 3 ];
98 #endif /* PEXPERT_KERNEL_PRIVATE */
100 #endif /* _PEXPERT_PROTOS_H_ */