merge ROS Shell without integrated explorer part into trunk
[reactos.git] / reactos / boot / freeldr / freeldr / arch / i386 / machxbox.h
1 /* $Id$
2 *
3 * FreeLoader
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 __I386_MACHXBOX_H_
21 #define __I386_MACHXBOX_H_
22
23 #ifndef __MEMORY_H
24 #include "mm.h"
25 #endif
26
27 UCHAR XboxFont8x16[256 * 16];
28
29 VOID XboxMachInit(char *CmdLine);
30
31 VOID XboxConsPutChar(int Ch);
32 BOOL XboxConsKbHit();
33 int XboxConsGetCh();
34
35 VOID XboxVideoInit(VOID);
36 VOID XboxVideoClearScreen(UCHAR Attr);
37 VIDEODISPLAYMODE XboxVideoSetDisplayMode(char *DisplayModem, BOOL Init);
38 VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
39 ULONG XboxVideoGetBufferSize(VOID);
40 VOID XboxVideoSetTextCursorPosition(ULONG X, ULONG Y);
41 VOID XboxVideoHideShowTextCursor(BOOL Show);
42 VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
43 VOID XboxVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
44 BOOL XboxVideoIsPaletteFixed(VOID);
45 VOID XboxVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
46 VOID XboxVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
47 VOID XboxVideoSync(VOID);
48 VOID XboxVideoPrepareForReactOS(VOID);
49
50 VOID XboxMemInit(VOID);
51 PVOID XboxMemReserveMemory(ULONG MbToReserve);
52 ULONG XboxMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
53
54 BOOL XboxDiskReadLogicalSectors(ULONG DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
55 BOOL XboxDiskGetPartitionEntry(ULONG DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
56 BOOL XboxDiskGetDriveGeometry(ULONG DriveNumber, PGEOMETRY DriveGeometry);
57 ULONG XboxDiskGetCacheableBlockCount(ULONG DriveNumber);
58
59 VOID XboxRTCGetCurrentDateTime(PULONG Year, PULONG Month, PULONG Day, PULONG Hour, PULONG Minute, PULONG Second);
60
61 VOID XboxHwDetect(VOID);
62
63 #endif /* __I386_HWXBOX_H_ */
64
65 /* EOF */