Fix minor buildworld issues, mainly #include file dependancies and fields
[dragonfly.git] / sys / i386 / boot / dosboot / protmod.h
1 /*\r
2  *      protmod.h               Protected Mode Utilities\r
3  *\r
4  *      (C) 1994 by Christian Gusenbauer (cg@fimp01.fim.uni-linz.ac.at)\r
5  *      All Rights Reserved.\r
6  * \r
7  *      Permission to use, copy, modify and distribute this software and its\r
8  *      documentation is hereby granted, provided that both the copyright\r
9  *      notice and this permission notice appear in all copies of the\r
10  *      software, derivative works or modified versions, and any portions\r
11  *      thereof, and that both notices appear in supporting documentation.\r
12  * \r
13  *      I ALLOW YOU USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. I DISCLAIM\r
14  *      ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE\r
15  *      USE OF THIS SOFTWARE.\r
16  * \r
17  */\r
18 extern struct bootinfo bootinfo;\r
19 extern int VCPIboot;\r
20 \r
21 extern int pm_copy(char far *from, unsigned long to, unsigned long count);\r
22 /* pm_copy copies "count" bytes from location "from" (valid C pointer) to the\r
23  * address "to" in the high-memory space.\r
24  */\r
25 \r
26 extern void startprog(long hmaddress, long size, long startaddr, long loadflags,\r
27                                           long bootdev);\r
28 /* startprog switches to protected mode, moves the kernel from hmaddress\r
29  * to 0x100000l and finally starts the kernel.\r
30  */\r
31 \r
32 extern long get_high_memory(long size);\r
33 /* get_high_memory allocates size bytes from high memory (>1MB) and returns\r
34  * the address of this area.\r
35  */\r