Root/
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 */␊ |
31 | extern void real_to_prot(void);␊ |
32 | extern void prot_to_real(void);␊ |
33 | extern void halt(void);␊ |
34 | extern void startprog(unsigned int address, void *arg);␊ |
35 | ␊ |
36 | /* bios.s */␊ |
37 | extern void bios(biosBuf_t *bb);␊ |
38 | ␊ |
39 | /* biosfn.c */␊ |
40 | #ifdef EISA_SUPPORT␊ |
41 | extern char eisa_present(void);␊ |
42 | #endif␊ |
43 | extern int bgetc(void);␊ |
44 | extern int biosread(int dev, int cyl, int head, int sec, int num);␊ |
45 | extern int ebiosread(int dev, unsigned long long sec, int count);␊ |
46 | extern int ebioswrite(int dev, long sec, int count);␊ |
47 | extern int ebiosEjectMedia(int biosdev);␊ |
48 | extern void␉ bios_putchar(int ch);␊ |
49 | extern void putca(int ch, int attr, int repeat);␊ |
50 | extern int readKeyboardStatus(void);␊ |
51 | extern int readKeyboardShiftFlags(void);␊ |
52 | extern unsigned int time18(void);␊ |
53 | extern void delay(int ms);␊ |
54 | extern unsigned int get_diskinfo(int dev);␊ |
55 | #if APM_SUPPORT␊ |
56 | extern int APMPresent(void);␊ |
57 | extern int APMConnect32(void);␊ |
58 | #endif␊ |
59 | extern int memsize(int i);␊ |
60 | extern void video_mode(int mode);␊ |
61 | extern void setCursorPosition(int x, int y, int page);␊ |
62 | extern void setCursorType(int type);␊ |
63 | extern void getCursorPositionAndType(int *x, int *y, int *type);␊ |
64 | extern void scollPage(int x1, int y1, int x2, int y2, int attr, int rows, int dir);␊ |
65 | extern void clearScreenRows(int y1, int y2);␊ |
66 | extern void setActiveDisplayPage( int page );␊ |
67 | extern unsigned long getMemoryMap(struct MemoryRange * rangeArray, unsigned long maxRangeCount,␊ |
68 | unsigned long * conMemSizePtr, unsigned long * extMemSizePtr);␊ |
69 | extern unsigned long getExtendedMemorySize();␊ |
70 | extern unsigned long getConventionalMemorySize();␊ |
71 | extern void sleep(int n);␊ |
72 | ␊ |
73 | /* console.c */␊ |
74 | extern int putchar(int ch);␊ |
75 | extern int getchar(void);␊ |
76 | extern void pause();␊ |
77 | ␊ |
78 | ␊ |
79 | #endif /* !__LIBSAIO_SAIO_INTERNAL_H */␊ |
80 |