]>
git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/i386/protos.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 #ifndef _PEXPERT_I386_PROTOS_H
26 #define _PEXPERT_I386_PROTOS_H
28 //------------------------------------------------------------------------
29 // x86 IN/OUT I/O inline functions.
34 // OUT: outb, outw, outl
37 typedef unsigned short i386_ioport_t
;
40 static __inline__ unsigned u \
41 in##s(i386_ioport_t port) \
52 static __inline__ void \
53 out##s(i386_ioport_t port, unsigned u data) \
58 : "d" (port), "a" (data)); \
69 extern void cninit(void);
70 extern void bcopy(void * from
, void * to
, int size
);
71 extern int sprintf(char * str
, const char * format
, ...);
73 //------------------------------------------------------------------------
74 // from osfmk/i386/AT386/video_console.c
76 extern boolean_t
vc_progress_initialize( void * desc
,
77 const unsigned char * data
,
78 const unsigned char * clut
);
80 extern void vc_display_icon( void * desc
, const unsigned char * data
);
82 #endif /* _PEXPERT_I386_PROTOS_H */