ReactOS  0.4.15-dev-5500-g82cf6c2
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 //
17 CODE_SEG("INIT")
18 BOOLEAN
19 NTAPI
21  _In_ PLOADER_PARAMETER_BLOCK LoaderBlock,
23 );
24 
26 
28 NTAPI
30 
31 VOID
32 NTAPI
34 
35 VOID
36 NTAPI
38 
39 PUCHAR
40 NTAPI
42  _In_ ULONG ResourceNumber
43 );
44 
45 //
46 // Display Functions
47 //
48 VOID
49 NTAPI
52  _In_ ULONG X,
53  _In_ ULONG Y
54 );
55 
56 VOID
57 NTAPI
60  _In_ ULONG X,
61  _In_ ULONG Y,
65 );
66 
67 VOID
68 NTAPI
71  _In_ ULONG X,
72  _In_ ULONG Y,
76 );
77 
78 //
79 // Progress-Bar Functions
80 //
81 VOID
82 NTAPI
84  _In_ ULONG Left,
85  _In_ ULONG Top
86 );
87 
88 CODE_SEG("INIT")
89 VOID
90 NTAPI
92 
93 VOID
94 NTAPI
96  _In_ ULONG Floor,
97  _In_ ULONG Ceiling
98 );
99 
100 VOID
101 NTAPI
103  _In_ ULONG Percentage
104 );
105 
106 //
107 // Headless Terminal Support Functions
108 //
109 VOID
110 NTAPI
112  IN ULONG PortId,
114 );
115 
116 BOOLEAN
117 NTAPI
119  IN ULONG PortId
120 );
121 
122 BOOLEAN
123 NTAPI
125  IN ULONG PortId,
126  OUT PUCHAR Byte
127 );
128 
129 VOID
130 NTAPI
132  IN ULONG PortId,
133  IN UCHAR Byte
134 );
135 
136 VOID
137 NTAPI
139  IN ULONG PortId
140 );
141 
142 BOOLEAN
143 NTAPI
145  IN ULONG BaudRate,
147  IN PUCHAR PortAddress,
148  OUT PULONG PortId,
149  IN BOOLEAN IsMMIODevice
150 );
#define IN
Definition: typedefs.h:39
BOOLEAN NTAPI InbvPortPollOnly(IN ULONG PortId)
Definition: inbvport.c:28
#define Y(I)
BOOLEAN NTAPI InbvPortInitialize(IN ULONG BaudRate, IN ULONG PortNumber, IN PUCHAR PortAddress, OUT PULONG PortId, IN BOOLEAN IsMMIODevice)
Definition: inbvport.c:73
#define _Out_
Definition: ms_sal.h:345
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:124
unsigned char * PUCHAR
Definition: retypes.h:3
VOID NTAPI InbvScreenToBufferBlt(_Out_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
Definition: inbv.c:571
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
VOID NTAPI InbvPortTerminate(IN ULONG PortId)
Definition: inbvport.c:65
_In_ HFONT _Out_ PUINT Height
Definition: font.h:124
enum _INBV_DISPLAY_STATE INBV_DISPLAY_STATE
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
ULONG PortNumber
Definition: storport.c:18
unsigned char BOOLEAN
VOID NTAPI InbvSetProgressBarCoordinates(_In_ ULONG Left, _In_ ULONG Top)
Sets the screen coordinates of the loading progress bar and enable it.
Definition: inbv.c:600
PUCHAR NTAPI InbvGetResourceAddress(_In_ ULONG ResourceNumber)
Definition: inbv.c:162
#define _In_
Definition: ms_sal.h:308
Definition: bufpool.h:45
VOID NTAPI InbvIndicateProgress(VOID)
Gives some progress feedback, without specifying any explicit number of progress steps or percentage....
Definition: inbv.c:625
VOID NTAPI InbvSetProgressBarSubset(_In_ ULONG Floor, _In_ ULONG Ceiling)
Specifies a progress percentage sub-range. Further calls to InbvIndicateProgress() or InbvUpdateProgr...
Definition: inbv.c:663
int Count
Definition: noreturn.cpp:7
BOOLEAN NTAPI InbvPortGetByte(IN ULONG PortId, OUT PUCHAR Byte)
Definition: inbvport.c:38
VOID NTAPI InbvAcquireLock(VOID)
Definition: inbv.c:219
BOOLEAN NTAPI InbvDriverInitialize(_In_ PLOADER_PARAMETER_BLOCK LoaderBlock, _In_ ULONG Count)
Definition: inbv.c:175
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:689
VOID NTAPI InbvBufferToScreenBlt(_In_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y, _In_ ULONG Width, _In_ ULONG Height, _In_ ULONG Delta)
Definition: inbv.c:552
unsigned char UCHAR
Definition: xmlstorage.h:181
INBV_DISPLAY_STATE NTAPI InbvGetDisplayState(VOID)
Definition: inbv.c:323
VOID NTAPI InbvBitBlt(_In_ PUCHAR Buffer, _In_ ULONG X, _In_ ULONG Y)
Definition: inbv.c:530
VOID NTAPI InbvPortEnableFifo(IN ULONG PortId, IN BOOLEAN Enable)
Definition: inbvport.c:56
static ULONG Delta
Definition: xboxvideo.c:33
unsigned int * PULONG
Definition: retypes.h:1
unsigned char Byte
Definition: zlib.h:37
#define OUT
Definition: typedefs.h:40
BOOLEAN InbvBootDriverInstalled
Definition: inbv.c:39
unsigned int ULONG
Definition: retypes.h:1
VOID NTAPI InbvPortPutByte(IN ULONG PortId, IN UCHAR Byte)
Definition: inbvport.c:47
VOID NTAPI InbvReleaseLock(VOID)
Definition: inbv.c:241
static CODE_SEG("PAGE")
Definition: isapnp.c:1482
static LPHIST_ENTRY Top
Definition: history.c:53