- Add DDK alignment macros and move/rename the ones in the NDK for user-mode only...
[reactos.git] / reactos / boot / freeldr / freeldr / include / freeldr.h
1 /*
2 * FreeLoader
3 * Copyright (C) 1998-2003 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 __FREELDR_H
21 #define __FREELDR_H
22
23 #define UINT64_C(val) val##ULL
24
25 #include <stdlib.h>
26 #include <stdio.h>
27 #include <ddk/ntddk.h>
28 #include <ndk/ntndk.h>
29 #include <arch.h>
30 #include <rtl.h>
31 #include <disk.h>
32 #include <fs.h>
33 #include <ui.h>
34 #include <multiboot.h>
35 #include <mm.h>
36 #include <cache.h>
37 #include <machine.h>
38 #include <inifile.h>
39 #include <inffile.h>
40 #include <video.h>
41 #include <portio.h>
42 #include <reactos.h>
43 #include <registry.h>
44 #include <fsrec.h>
45 /* file system headers */
46 #include <fs/ext2.h>
47 #include <fs/fat.h>
48 #include <fs/ntfs.h>
49 #include <fs/iso.h>
50 /* ui support */
51 #include <ui/tui.h>
52 #include <ui/gui.h>
53 /* arch files */
54 #include <arch/i386/hardware.h>
55 #include <arch/i386/i386.h>
56 #include <arch/i386/machpc.h>
57 #include <arch/i386/machxbox.h>
58 #include <internal/i386/ke.h>
59 /* misc files */
60 #include <keycodes.h>
61 #include <version.h>
62 #include <cmdline.h>
63 /* Needed by boot manager */
64 #include <bootmgr.h>
65 #include <oslist.h>
66 #include <drivemap.h>
67 #include <miscboot.h>
68 #include <options.h>
69 #include <linux.h>
70 /* Externals */
71 #include <reactos/rossym.h>
72 #include <reactos/buildno.h>
73 #include <reactos/helper.h>
74 /* Needed if debuging is enabled */
75 #include <comm.h>
76
77 #define Ke386EraseFlags(x) __asm__ __volatile__("pushl $0 ; popfl\n")
78
79 extern BOOL UserInterfaceUp; /* Tells us if the user interface is displayed */
80
81 VOID BootMain(LPSTR CmdLine);
82 VOID RunLoader(VOID);
83
84 #endif // defined __FREELDR_H