mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
71fefa32db
* Add an NDK header to define INIT_FUNCTION/INIT_SECTION globally * Use _declspec(allocate(x)) and _declspec(code_seg(x)) on MSVC versions that support it * Use INIT_FUNCTION on functions only and INIT_SECTION on data only (required by MSVC) * Place INIT_FUNCTION before the return type (required by MSVC) * Make sure declarations and implementations share the same modifiers (required by MSVC) * Add a global linker option to suppress warnings about defined but unused INIT section * Merge INIT section into .text in freeldr
138 lines
1.6 KiB
C
138 lines
1.6 KiB
C
#pragma once
|
|
|
|
typedef struct _INBV_PROGRESS_STATE
|
|
{
|
|
ULONG Floor;
|
|
ULONG Ceiling;
|
|
ULONG Bias;
|
|
} INBV_PROGRESS_STATE;
|
|
|
|
typedef struct _BT_PROGRESS_INDICATOR
|
|
{
|
|
ULONG Count;
|
|
ULONG Expected;
|
|
ULONG Percentage;
|
|
} BT_PROGRESS_INDICATOR, *PBT_PROGRESS_INDICATOR;
|
|
|
|
typedef enum _ROT_BAR_TYPE
|
|
{
|
|
RB_UNSPECIFIED,
|
|
RB_SQUARE_CELLS,
|
|
RB_PROGRESS_BAR
|
|
} ROT_BAR_TYPE;
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
InbvUpdateProgressBar(
|
|
IN ULONG Progress
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
InbvRotBarInit(
|
|
VOID
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
BOOLEAN
|
|
NTAPI
|
|
InbvDriverInitialize(
|
|
IN PLOADER_PARAMETER_BLOCK LoaderBlock,
|
|
IN ULONG Count
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
InbvEnableBootDriver(
|
|
IN BOOLEAN Enable
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
DisplayBootBitmap(
|
|
IN BOOLEAN TextMode
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
DisplayFilter(
|
|
IN PCHAR *String
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
FinalizeBootLogo(
|
|
VOID
|
|
);
|
|
|
|
PUCHAR
|
|
NTAPI
|
|
InbvGetResourceAddress(
|
|
IN ULONG ResourceNumber
|
|
);
|
|
|
|
VOID
|
|
NTAPI
|
|
InbvBitBlt(
|
|
IN PUCHAR Buffer,
|
|
IN ULONG X,
|
|
IN ULONG Y
|
|
);
|
|
|
|
INIT_FUNCTION
|
|
VOID
|
|
NTAPI
|
|
InbvIndicateProgress(
|
|
VOID
|
|
);
|
|
|
|
VOID
|
|
NTAPI
|
|
InbvPortEnableFifo(
|
|
IN ULONG PortId,
|
|
IN BOOLEAN Enable
|
|
);
|
|
|
|
BOOLEAN
|
|
NTAPI
|
|
InbvPortGetByte(
|
|
IN ULONG PortId,
|
|
OUT PUCHAR Byte
|
|
);
|
|
|
|
VOID
|
|
NTAPI
|
|
InbvPortPutByte(
|
|
IN ULONG PortId,
|
|
IN UCHAR Byte
|
|
);
|
|
|
|
VOID
|
|
NTAPI
|
|
InbvPortTerminate(
|
|
IN ULONG PortId
|
|
);
|
|
|
|
BOOLEAN
|
|
NTAPI
|
|
InbvPortInitialize(
|
|
IN ULONG BaudRate,
|
|
IN ULONG PortNumber,
|
|
IN PUCHAR PortAddress,
|
|
OUT PULONG PortId,
|
|
IN BOOLEAN IsMMIODevice
|
|
);
|
|
|
|
BOOLEAN
|
|
NTAPI
|
|
InbvPortPollOnly(
|
|
IN ULONG PortId
|
|
);
|
|
|
|
extern BOOLEAN InbvBootDriverInstalled;
|