Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/arch/i386/libsaio/saio_internal.h

Source at commit 1407 created 12 years 10 months ago.
By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode.
1/*
2 * Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 2.0 (the "License"). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License.
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24
25#ifndef __LIBSAIO_SAIO_INTERNAL_H
26#define __LIBSAIO_SAIO_INTERNAL_H
27
28#include "saio_types.h"
29
30/* asm.s */
31extern void real_to_prot(void);
32extern void prot_to_real(void);
33extern void halt(void);
34extern void startprog(unsigned int address, void *arg);
35
36/* bios.s */
37extern void bios(biosBuf_t *bb);
38
39/* biosfn.c */
40#ifdef EISA_SUPPORT
41extern char eisa_present(void);
42#endif
43extern int bgetc(void);
44extern int biosread(int dev, int cyl, int head, int sec, int num);
45extern int ebiosread(int dev, unsigned long long sec, int count);
46extern int ebioswrite(int dev, long sec, int count);
47extern int ebiosEjectMedia(int biosdev);
48extern void bios_putchar(int ch);
49extern void putca(int ch, int attr, int repeat);
50extern int readKeyboardStatus(void);
51extern int readKeyboardShiftFlags(void);
52extern unsigned int time18(void);
53extern void delay(int ms);
54extern unsigned int get_diskinfo(int dev);
55#if APM_SUPPORT
56extern int APMPresent(void);
57extern int APMConnect32(void);
58#endif
59extern int memsize(int i);
60extern void video_mode(int mode);
61extern void setCursorPosition(int x, int y, int page);
62extern void setCursorType(int type);
63extern void getCursorPositionAndType(int *x, int *y, int *type);
64extern void scollPage(int x1, int y1, int x2, int y2, int attr, int rows, int dir);
65extern void clearScreenRows(int y1, int y2);
66extern void setActiveDisplayPage( int page );
67extern unsigned long getMemoryMap(struct MemoryRange * rangeArray, unsigned long maxRangeCount,
68 unsigned long * conMemSizePtr, unsigned long * extMemSizePtr);
69extern unsigned long getExtendedMemorySize();
70extern unsigned long getConventionalMemorySize();
71extern void sleep(int n);
72
73/* console.c */
74extern int putchar(int ch);
75extern int getchar(void);
76extern void pause();
77
78
79#endif /* !__LIBSAIO_SAIO_INTERNAL_H */
80

Archive Download this file

Revision: 1407