Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenfreeldr.h
Go to the documentation of this file.
00001 /* 00002 * FreeLoader 00003 * Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 #ifndef __FREELDR_H 00021 #define __FREELDR_H 00022 00023 #define UINT64_C(val) val##ULL 00024 #define RVA(m, b) ((PVOID)((ULONG_PTR)(b) + (ULONG_PTR)(m))) 00025 00026 #define ROUND_DOWN(n, align) \ 00027 (((ULONG)n) & ~((align) - 1l)) 00028 00029 #define ROUND_UP(n, align) \ 00030 ROUND_DOWN(((ULONG)n) + (align) - 1, (align)) 00031 00032 /* public headers */ 00033 #ifdef __REACTOS__ 00034 #define NTOSAPI 00035 #define printf TuiPrintf 00036 #include <ntddk.h> 00037 #include <ntifs.h> 00038 #include <ioaccess.h> 00039 #include <arc/arc.h> 00040 #include <ketypes.h> 00041 #include <mmtypes.h> 00042 #include <ndk/asm.h> 00043 #include <ndk/rtlfuncs.h> 00044 #include <ndk/ldrtypes.h> 00045 #include <ndk/halfuncs.h> 00046 #include <stdlib.h> 00047 #include <stdio.h> 00048 #include <ctype.h> 00049 #include <ntdddisk.h> 00050 #include <internal/hal.h> 00051 #include <drivers/pci/pci.h> 00052 #include <winerror.h> 00053 #else 00054 #include <ntsup.h> 00055 #endif 00056 00057 /* internal headers */ 00058 #include <arcemul.h> 00059 #include <bytesex.h> 00060 #include <cache.h> 00061 #include <cmdline.h> 00062 #include <comm.h> 00063 #include <disk.h> 00064 #include <fs.h> 00065 #include <inffile.h> 00066 #include <inifile.h> 00067 #include <keycodes.h> 00068 #include <linux.h> 00069 #include <machine.h> 00070 #include <mm.h> 00071 #include <multiboot.h> 00072 #include <options.h> 00073 #include <oslist.h> 00074 #include <ramdisk.h> 00075 #include <reactos.h> 00076 #include <registry.h> 00077 #include <ui.h> 00078 #include <ver.h> 00079 #include <video.h> 00080 #include <winldr.h> 00081 00082 /* file system headers */ 00083 #include <fs/ext2.h> 00084 #include <fs/fat.h> 00085 #include <fs/ntfs.h> 00086 #include <fs/iso.h> 00087 #include <fs/pxe.h> 00088 00089 /* ui support */ 00090 #include <ui/gui.h> 00091 #include <ui/minitui.h> 00092 #include <ui/noui.h> 00093 #include <ui/tui.h> 00094 00095 /* arch specific includes */ 00096 #if defined(_M_IX86) || defined(_M_AMD64) 00097 #include <arch/pc/hardware.h> 00098 #include <arch/pc/pcbios.h> 00099 #include <arch/pc/machpc.h> 00100 #include <arch/pc/x86common.h> 00101 #include <arch/pc/pxe.h> 00102 #endif 00103 #if defined(_M_IX86) 00104 #include <arch/i386/custom.h> 00105 #include <arch/i386/drivemap.h> 00106 #include <arch/i386/i386.h> 00107 #include <arch/i386/machxbox.h> 00108 #include <arch/i386/miscboot.h> 00109 #include <internal/i386/intrin_i.h> 00110 #elif defined(_M_AMD64) 00111 #include <arch/amd64/amd64.h> 00112 #include <internal/amd64/intrin_i.h> 00113 #elif defined(_M_PPC) 00114 #include <arch/powerpc/hardware.h> 00115 #elif defined(_M_ARM) 00116 #include <arch/arm/hardware.h> 00117 #elif defined(_M_MIPS) 00118 #include <arch/mips/arcbios.h> 00119 #endif 00120 00121 VOID BootMain(LPSTR CmdLine); 00122 VOID RunLoader(VOID); 00123 00124 #endif // defined __FREELDR_H Generated on Sat May 26 2012 04:17:58 for ReactOS by
1.7.6.1
|