3 * Copyright (C) 1999, 2000, 2001 Brian Palmer <brianp@sginet.com>
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.
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.
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.
25 #define VERSION "FreeLoader v0.8"
26 #define COPYRIGHT "Copyright (C) 1999, 2000 Brian Palmer <brianp@sginet.com>"
28 #define ROSLDR_MAJOR_VERSION 0
29 #define ROSLDR_MINOR_VERSION 8
30 #define ROSLDR_PATCH_VERSION 0
32 #define size_t unsigned int
38 #define BYTE unsigned char
39 #define WORD unsigned short
40 #define DWORD unsigned long
43 #define UCHAR unsigned char
44 #define PUCHAR unsigned char *
45 #define WCHAR unsigned short
46 #define PWCHAR unsigned short *
48 #define USHORT unsigned short
49 #define PUSHORT unsigned short *
51 #define ULONG unsigned long
52 #define PULONG unsigned long *
53 #define PDWORD DWORD *
58 #define UINT8 unsigned char
60 #define UINT16 unsigned short
62 #define UINT32 unsigned long
63 #define PUINT32 UINT32 *
64 #define INT64 long long
65 #define UINT64 unsigned long long
67 #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
69 #define PACKED __attribute__((packed))
71 extern ULONG BootDrive
; // BIOS boot drive, 0-A:, 1-B:, 0x80-C:, 0x81-D:, etc.
72 extern ULONG BootPartition
; // Boot Partition, 1-4
73 extern BOOL UserInterfaceUp
; // Tells us if the user interface is displayed
75 extern PUCHAR ScreenBuffer
; // Save buffer for screen contents
76 extern ULONG CursorXPos
; // Cursor's X Position
77 extern ULONG CursorYPos
; // Cursor's Y Position
81 #endif // defined __FREELDR_H