xref: /reactos/drivers/base/bootvid/i386/xbox/xbox.h (revision 8a978a17)
1 /*
2  * PROJECT:     ReactOS Boot Video Driver for Original Xbox
3  * LICENSE:     GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE:     Arch-specific header file
5  * COPYRIGHT:   Copyright 2004 Gé van Geldorp (gvg@reactos.org)
6  *              Copyright 2005 Filip Navara (navaraf@reactos.org)
7  *              Copyright 2020 Stanislav Motylkov (x86corez@gmail.com)
8  */
9 
10 #ifndef _BOOTVID_XBOX_H_
11 #define _BOOTVID_XBOX_H_
12 
13 #pragma once
14 
15 #define BB_OFFSET(x, y)    ((y) * SCREEN_WIDTH + (x))
16 #define FB_OFFSET(x, y)    (((PanV + (y)) * FrameBufferWidth + PanH + (x)) * BytesPerPixel)
17 
18 VOID
19 NTAPI
20 InitPaletteWithTable(
21     _In_ PULONG Table,
22     _In_ ULONG Count);
23 
24 VOID
25 PrepareForSetPixel(VOID);
26 
27 VOID
28 SetPixel(
29     _In_ ULONG Left,
30     _In_ ULONG Top,
31     _In_ UCHAR Color);
32 
33 VOID
34 NTAPI
35 PreserveRow(
36     _In_ ULONG CurrentTop,
37     _In_ ULONG TopDelta,
38     _In_ BOOLEAN Restore);
39 
40 VOID
41 NTAPI
42 DoScroll(
43     _In_ ULONG Scroll);
44 
45 VOID
46 NTAPI
47 DisplayCharacter(
48     _In_ CHAR Character,
49     _In_ ULONG Left,
50     _In_ ULONG Top,
51     _In_ ULONG TextColor,
52     _In_ ULONG BackColor);
53 
54 #endif /* _BOOTVID_XBOX_H_ */
55