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.
20 #ifndef __I386_MACHXBOX_H_
21 #define __I386_MACHXBOX_H_
27 UCHAR XboxFont8x16
[256 * 16];
29 VOID
XboxMachInit(VOID
);
31 VOID
XboxConsPutChar(int Ch
);
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
);
50 VOID
XboxMemInit(VOID
);
51 PVOID
XboxMemReserveMemory(ULONG MbToReserve
);
52 ULONG
XboxMemGetMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap
, ULONG MaxMemoryMapSize
);
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
);
59 VOID
XboxRTCGetCurrentDateTime(PULONG Year
, PULONG Month
, PULONG Day
, PULONG Hour
, PULONG Minute
, PULONG Second
);
61 VOID
XboxHwDetect(VOID
);
63 #endif /* __I386_HWXBOX_H_ */