2 * PROJECT: ReactOS Framebuffer Display Driver
3 * LICENSE: Microsoft NT4 DDK Sample Code License
4 * FILE: boot/drivers/video/displays/framebuf/driver.h
5 * PURPOSE: Main Driver Header File
6 * PROGRAMMERS: Copyright (c) 1992-1995 Microsoft Corporation
7 * ReactOS Portable Systems Group
22 HANDLE hDriver
; // Handle to \Device\Screen
23 HDEV hdevEng
; // Engine's handle to PDEV
24 HSURF hsurfEng
; // Engine's handle to surface
25 HPALETTE hpalDefault
; // Handle to the default palette for device.
26 PBYTE pjScreen
; // This is pointer to base screen address
27 ULONG cxScreen
; // Visible screen width
28 ULONG cyScreen
; // Visible screen height
29 ULONG ulMode
; // Mode the mini-port driver is in.
30 LONG lDeltaScreen
; // Distance from one scan to the next.
31 ULONG cScreenSize
; // size of video memory, including
33 PVOID pOffscreenList
; // linked list of DCI offscreen surfaces.
34 FLONG flRed
; // For bitfields device, Red Mask
35 FLONG flGreen
; // For bitfields device, Green Mask
36 FLONG flBlue
; // For bitfields device, Blue Mask
37 ULONG cPaletteShift
; // number of bits the 8-8-8 palette must
38 // be shifted by to fit in the hardware
40 ULONG ulBitCount
; // # of bits per pel 8,16,24,32 are only supported.
41 POINTL ptlHotSpot
; // adjustment for pointer hot spot
42 VIDEO_POINTER_CAPABILITIES PointerCapabilities
; // HW pointer abilities
43 PVIDEO_POINTER_ATTRIBUTES pPointerAttributes
; // hardware pointer attributes
44 DWORD cjPointerAttributes
; // Size of buffer allocated
45 BOOL fHwCursorActive
; // Are we currently using the hw cursor
46 PALETTEENTRY
*pPal
; // If this is pal managed, this is the pal
47 BOOL bSupportDCI
; // Does the miniport support DCI?
48 // eVb: 3.1 [DDK Change] - Support new VGA Miniport behavior w.r.t updated framebuffer remapping
53 DWORD
getAvailableModes(HANDLE
, PVIDEO_MODE_INFORMATION
*, DWORD
*);
54 BOOL
bInitPDEV(PPDEV
, PDEVMODEW
, GDIINFO
*, DEVINFO
*);
55 BOOL
bInitSURF(PPDEV
, BOOL
);
56 BOOL
bInitPaletteInfo(PPDEV
, DEVINFO
*);
57 BOOL
bInitPointer(PPDEV
, DEVINFO
*);
58 BOOL
bInit256ColorPalette(PPDEV
);
59 VOID
vDisablePalette(PPDEV
);
60 VOID
vDisableSURF(PPDEV
);
62 #define MAX_CLUT_SIZE (sizeof(VIDEO_CLUT) + (sizeof(ULONG) * 256))
65 // Determines the size of the DriverExtra information in the DEVMODE
66 // structure passed to and from the display driver.
69 #define DRIVER_EXTRA_SIZE 0
71 #define DLL_NAME L"framebuf" // Name of the DLL in UNICODE
72 #define STANDARD_DEBUG_PREFIX "FRAMEBUF: " // All debug output is prefixed
73 #define ALLOC_TAG 'bfDD' // Four byte tag (characters in
74 // reverse order) used for memory