home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / include / pexpert / protos.h < prev   
Encoding:
C/C++ Source or Header  |  2001-09-30  |  3.1 KB  |  101 lines

  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. #if __ppc__
  50. extern void bcopy_nc(char *from, char *to, int size); /* uncached-safe */
  51. #else
  52. #define bcopy_nc bcopy
  53. #endif 
  54.  
  55. //------------------------------------------------------------------------
  56. //from kern/misc_protos.h
  57. extern void panic(const char *string, ...);
  58.  
  59. /* Zero an arbitrarily aligned array */
  60. extern void bzero(
  61.         char    *from,
  62.         vm_size_t       nbytes);
  63.  
  64. extern void    
  65. _doprnt(
  66.         register const char     *fmt,
  67.         va_list                 *argp,
  68.         void                    (*putc)(char),
  69.         int                     radix);
  70.  
  71. #include <machine/io_map_entries.h>
  72.  
  73. //------------------------------------------------------------------------
  74. // ??
  75. //typedef int kern_return_t;
  76. void Debugger(const char *message);
  77.  
  78. #include <kern/cpu_number.h>
  79. #include <kern/cpu_data.h>
  80.  
  81. //------------------------------------------------------------------------
  82. // from kgdb/kgdb_defs.h
  83. #define kgdb_printf printf
  84.  
  85. #include <mach/machine/vm_types.h>
  86. #include <device/device_types.h>
  87. #include <kern/kalloc.h>
  88.  
  89. //------------------------------------------------------------------------
  90.  
  91. // from iokit/IOStartIOKit.cpp
  92. extern int StartIOKit( void * p1, void * p2, void * p3, void * p4);
  93.  
  94. // from iokit/Families/IOFramebuffer.cpp
  95. extern unsigned char appleClut8[ 256 * 3 ];
  96.  
  97.  
  98. #endif /* PEXPERT_KERNEL_PRIVATE */
  99.  
  100. #endif /* _PEXPERT_PROTOS_H_ */
  101.