19b449e56f4f5a94dd5a71d22dc1d86286b90eba
[reactos.git] / freeldr / freeldr / rosboot.h
1 /*
2 * FreeLoader
3 * Copyright (C) 1999, 2000 Brian Palmer <brianp@sginet.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #ifndef __ROSBOOT_H
21 #define __ROSBOOT_H
22
23 #include "freeldr.h"
24 #include "stdlib.h"
25 #include "pe.h"
26
27 #define PACKED __attribute__((packed))
28
29 void LoadAndBootReactOS(int nOSToBoot);
30 void ReactOSMemInit(void);
31 void ReactOSBootKernel(void);
32 BOOL ReactOSLoadPEImage(FILE *pImage);
33 void enable_a20(void);
34 void boot_ros(void);
35
36
37 // WARNING:
38 // This structure is prototyped here but allocated in ros.S
39 // if you change this prototype make sure to update ros.S
40 typedef struct
41 {
42 /*
43 * Magic value (useless really)
44 */
45 unsigned int magic;
46
47 /*
48 * Cursor position
49 */
50 unsigned int cursorx;
51 unsigned int cursory;
52
53 /*
54 * Number of files (including the kernel) loaded
55 */
56 unsigned int nr_files;
57
58 /*
59 * Range of physical memory being used by the system
60 */
61 unsigned int start_mem;
62 unsigned int end_mem;
63
64 /*
65 * List of module lengths (terminated by a 0)
66 */
67 unsigned int module_lengths[64];
68
69 /*
70 * Kernel parameter string
71 */
72 char kernel_parameters[256];
73 } boot_param PACKED;
74
75 #endif // defined __ROSBOOT_H