[FREELDR]
[reactos.git] / reactos / boot / freeldr / freeldr / include / 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 along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #pragma once
21
22 #ifndef __MEMORY_H
23 #include "mm.h"
24 #endif
25
26 extern UCHAR XboxFont8x16[256 * 16];
27
28 VOID XboxMachInit(const char *CmdLine);
29
30 VOID XboxConsPutChar(int Ch);
31 BOOLEAN XboxConsKbHit(VOID);
32 int XboxConsGetCh(VOID);
33
34 VOID XboxVideoInit(VOID);
35 VOID XboxVideoClearScreen(UCHAR Attr);
36 VIDEODISPLAYMODE XboxVideoSetDisplayMode(char *DisplayModem, BOOLEAN Init);
37 VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth);
38 ULONG XboxVideoGetBufferSize(VOID);
39 VOID XboxVideoSetTextCursorPosition(UCHAR X, UCHAR Y);
40 VOID XboxVideoHideShowTextCursor(BOOLEAN Show);
41 VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y);
42 VOID XboxVideoCopyOffScreenBufferToVRAM(PVOID Buffer);
43 BOOLEAN XboxVideoIsPaletteFixed(VOID);
44 VOID XboxVideoSetPaletteColor(UCHAR Color, UCHAR Red, UCHAR Green, UCHAR Blue);
45 VOID XboxVideoGetPaletteColor(UCHAR Color, UCHAR* Red, UCHAR* Green, UCHAR* Blue);
46 VOID XboxVideoSync(VOID);
47 VOID XboxVideoPrepareForReactOS(IN BOOLEAN Setup);
48 VOID XboxPrepareForReactOS(IN BOOLEAN Setup);
49
50 VOID XboxMemInit(VOID);
51 PVOID XboxMemReserveMemory(ULONG MbToReserve);
52 ULONG XboxMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG MaxMemoryMapSize);
53
54 BOOLEAN XboxDiskReadLogicalSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOID Buffer);
55 BOOLEAN XboxDiskGetPartitionEntry(UCHAR DriveNumber, ULONG PartitionNumber, PPARTITION_TABLE_ENTRY PartitionTableEntry);
56 BOOLEAN XboxDiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY DriveGeometry);
57 ULONG XboxDiskGetCacheableBlockCount(UCHAR DriveNumber);
58
59 TIMEINFO* XboxGetTime(VOID);
60
61 PCONFIGURATION_COMPONENT_DATA XboxHwDetect(VOID);
62
63 VOID XboxSetLED(PCSTR Pattern);
64
65 /* EOF */