]>
git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/protos.h
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);
49 extern void bcopy(void * from
, void * to
, int size
);
51 extern void bcopy_nc(char *from
, char *to
, int size
); /* uncached-safe */
53 #define bcopy_nc bcopy
56 //------------------------------------------------------------------------
57 //from kern/misc_protos.h
58 extern void panic(const char *string
, ...);
60 /* Zero an arbitrarily aligned array */
67 register const char *fmt
,
72 #include <machine/io_map_entries.h>
74 //------------------------------------------------------------------------
76 //typedef int kern_return_t;
77 void Debugger(const char *message
);
79 #include <kern/cpu_number.h>
80 #include <kern/cpu_data.h>
82 //------------------------------------------------------------------------
83 // from kgdb/kgdb_defs.h
84 #define kgdb_printf printf
86 #include <mach/machine/vm_types.h>
87 #include <device/device_types.h>
88 #include <kern/kalloc.h>
90 //------------------------------------------------------------------------
92 // from iokit/IOStartIOKit.cpp
93 extern int StartIOKit( void * p1
, void * p2
, void * p3
, void * p4
);
95 // from iokit/Families/IOFramebuffer.cpp
96 extern unsigned char appleClut8
[ 256 * 3 ];
99 #endif /* PEXPERT_KERNEL_PRIVATE */
101 #endif /* _PEXPERT_PROTOS_H_ */