Skip to content

Commit 462c6d5

Browse files
committed
** WIP ** Additions for boot-time framebuffer information framebuf.h
1 parent de8b23f commit 462c6d5

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

sdk/include/reactos/drivers/bootvid/framebuf.h

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,35 @@ typedef struct _CM_FRAMEBUF_DEVICE_DATA
5050
ULONG PixelsPerScanLine; ///< Pitch/stride in pixels
5151
ULONG BitsPerPixel; ///< Pixel depth
5252

53-
/* Pixel physical format for BPP > 8 */
54-
struct
53+
/* Pixel physical format for BPP > 8, specified by bit-masks.
54+
* A bit being set defines those used for the given color component,
55+
* such as Red, Green, Blue, or Reserved. */
56+
struct /*_PIXEL_BITMASK*/
5557
{
5658
ULONG RedMask;
5759
ULONG GreenMask;
5860
ULONG BlueMask;
5961
ULONG ReservedMask;
60-
} PixelMasks;
62+
} PixelMasks; /*PIXEL_BITMASK, *PPIXEL_BITMASK*/
6163

6264
} CM_FRAMEBUF_DEVICE_DATA, *PCM_FRAMEBUF_DEVICE_DATA;
6365

66+
67+
/* UEFI support, see efi/GraphicsOutput.h */
68+
#ifdef EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID // __GRAPHICS_OUTPUT_H__
69+
// TODO: this version of the struct is temporary
70+
// REACTOS_INTERNAL_BGCONTEXT
71+
typedef struct _ROSEFI_FRAMEBUFFER_DATA
72+
{
73+
ULONG_PTR BaseAddress;
74+
ULONG BufferSize;
75+
UINT32 ScreenWidth;
76+
UINT32 ScreenHeight;
77+
UINT32 PixelsPerScanLine;
78+
UINT32 PixelFormat;
79+
} ROSEFI_FRAMEBUFFER_DATA, *PROSEFI_FRAMEBUFFER_DATA;
80+
#endif
81+
6482
#ifdef __cplusplus
6583
}
6684
#endif

0 commit comments

Comments
 (0)