ReactOS 0.4.16-dev-2528-g7139e57
inbv.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Kernel
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * PURPOSE: Boot Video Driver support header
5 * COPYRIGHT: Copyright 2007 Alex Ionescu (alex.ionescu@reactos.org)
6 * Copyright 2019-2022 Hermès Bélusca-Maïto
7 */
8
9#pragma once
10
11/* Native definitions from BOOTVID (Boot Video Driver) */
12#include "bootvid/bootvid.h"
13
14//
15// Driver Initialization
16//
17CODE_SEG("INIT")
21 _In_ PLOADER_PARAMETER_BLOCK LoaderBlock,
23);
24
26
30
31VOID
34
35VOID
38
42 _In_ ULONG ResourceNumber
43);
44
45//
46// Display Functions
47//
48VOID
52 _In_ ULONG X,
54);
55
56VOID
60 _In_ ULONG X,
61 _In_ ULONG Y,
64 _In_ ULONG Delta
65);
66
67VOID
71 _In_ ULONG X,
72 _In_ ULONG Y,
75 _In_ ULONG Delta
76);
77
78//
79// Progress-Bar Functions
80//
81VOID
84 _In_ ULONG Left,
86);
87
88CODE_SEG("INIT")
89VOID
92
93VOID
96 _In_ ULONG Floor,
97 _In_ ULONG Ceiling
98);
99
100VOID
101NTAPI
103 _In_ ULONG Percentage
104);
105
106//
107// Headless Terminal Support Functions
108//
109VOID
110NTAPI
112 _In_ ULONG PortId,
114
116NTAPI
118 _In_ ULONG PortId);
119
121NTAPI
123 _In_ ULONG PortId,
125
126VOID
127NTAPI
129 _In_ ULONG PortId,
130 _In_ UCHAR Byte);
131
133NTAPI
135 _In_ ULONG BaudRate,
137 _In_ PUCHAR PortAddress,
138 _Out_ PULONG PortId,
139 _In_ BOOLEAN IsMMIODevice);
140
141VOID
142NTAPI
144 _In_ ULONG PortId);
#define CODE_SEG(...)
unsigned char BOOLEAN
Definition: actypes.h:127
static LPHIST_ENTRY Top
Definition: history.c:53
Definition: bufpool.h:45
#define Y(I)
unsigned char Byte
Definition: zlib.h:37
INBV_DISPLAY_STATE NTAPI InbvGetDisplayState(VOID)
Definition: inbv.c:327
BOOLEAN NTAPI InbvPortInitialize(_In_ ULONG BaudRate, _In_ ULONG PortNumber, _In_ PUCHAR PortAddress, _Out_ PULONG PortId, _In_ BOOLEAN IsMMIODevice)
Definition: inbvport.c:79
VOID NTAPI InbvPortTerminate(_In_ ULONG PortId)
Definition: inbvport.c:70
BOOLEAN NTAPI InbvPortGetByte(_In_ ULONG PortId, _Out_ PUCHAR Byte)
Definition: inbvport.c:40
VOID NTAPI InbvPortEnableFifo(_In_ ULONG PortId, _In_ BOOLEAN Enable)
Definition: inbvport.c:60
BOOLEAN NTAPI InbvPortPollOnly(_In_ ULONG PortId)
Definition: inbvport.c:29
BOOLEAN InbvBootDriverInstalled
Definition: inbv.c:39
PUCHAR NTAPI InbvGetResourceAddress(_In_ ULONG ResourceNumber)
Definition: inbv.c:166
VOID NTAPI InbvAcquireLock(VOID)
Definition: inbv.c:223
VOID NTAPI InbvIndicateProgress(VOID)
Gives some progress feedback, without specifying any explicit number of progress steps or percentage....
Definition: inbv.c:632
VOID NTAPI InbvSetProgressBarCoordinates(_In_ ULONG Left, _In_ ULONG Top)
Sets the screen coordinates of the loading progress bar and enable it.
Definition: inbv.c:607
VOID NTAPI InbvScreenToBufferBlt(_Out_writes_bytes_all_(Delta *Height) PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
Definition: inbv.c:578
VOID NTAPI InbvSetProgressBarSubset(_In_ ULONG Floor, _In_ ULONG Ceiling)
Specifies a progress percentage sub-range. Further calls to InbvIndicateProgress() or InbvUpdateProgr...
Definition: inbv.c:670
VOID NTAPI InbvPortPutByte(_In_ ULONG PortId, _In_ UCHAR Byte)
Definition: inbvport.c:50
BOOLEAN NTAPI InbvDriverInitialize(_In_ PLOADER_PARAMETER_BLOCK LoaderBlock, _In_ ULONG Count)
Definition: inbv.c:179
VOID NTAPI InbvUpdateProgressBar(_In_ ULONG Percentage)
Updates the progress bar percentage, relative to the current percentage sub-range previously set by I...
Definition: inbv.c:696
VOID NTAPI InbvBitBlt(_In_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y)
Definition: inbv.c:537
VOID NTAPI InbvBufferToScreenBlt(_In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
Definition: inbv.c:559
VOID NTAPI InbvReleaseLock(VOID)
Definition: inbv.c:245
enum _INBV_DISPLAY_STATE INBV_DISPLAY_STATE
#define _In_reads_bytes_(s)
Definition: no_sal2.h:170
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _Out_writes_bytes_all_(s)
Definition: no_sal2.h:194
int Count
Definition: noreturn.cpp:7
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
ULONG PortNumber
Definition: storport.c:18
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:89
_In_ HFONT _Out_ PUINT Height
Definition: font.h:88
unsigned char UCHAR
Definition: xmlstorage.h:181