17#define DPRINT DbgPrint
21#define DPRINT1 DbgPrint
25#define DDKFASTAPI __fastcall
26#define FASTCALL __fastcall
37 OldFlink =
Entry->Flink;
38 OldBlink =
Entry->Blink;
39 OldFlink->
Blink = OldBlink;
40 OldBlink->
Flink = OldFlink;
41 return (OldFlink == OldBlink);
50 OldFlink = ListHead->
Flink;
51 Entry->Flink = OldFlink;
52 Entry->Blink = ListHead;
54 ListHead->Flink =
Entry;
61 ListHead->Flink = ListHead->Blink = ListHead;
66#define DS_SOLIDBRUSH 0x00000001
67#define DS_GREYBRUSH 0x00000002
68#define DS_BRUSH 0x00000004
69#define DS_DIB 0x00000008
71#define POW2(stride) (!((stride) & ((stride)-1)))
72#define BROKEN_RASTERS(stride,cy) ((!(POW2(stride))) && ((stride*cy) > 0x10000))
74#define ENUM_RECT_LIMIT 50
98#define CURSOR_COLOR 0x00000004
99#define CURSOR_HW 0x00000010
100#define CURSOR_HW_ACTIVE 0x00000020
101#define CURSOR_ANIMATE 0x00000040
234#define BMF_PHYSDEVICE 0xFF
239#define PDEV_IDENT ('V' + ('P' << 8) + ('D' << 16) + ('V' << 24))
240#define DEVSURF_IDENT ('V' + ('S' << 8) + ('R' << 16) + ('F' << 24))
245#define DRIVER_EXTRA_SIZE 0
246#define ALLOC_TAG 'agvD'
247#define DLL_NAME L"vga"
249#define MAX_SCAN_WIDTH 2048
250#define DRIVER_OFFSCREEN_REFRESHED 0x04L
251#define PLANAR_PELS_PER_CPU_ADDRESS 8
252#define PACKED_PELS_PER_CPU_ADDRESS 2
#define RemoveEntryList(Entry)
#define InsertHeadList(ListHead, Entry)
#define InitializeListHead(ListHead)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLboolean GLboolean GLboolean b
GLubyte GLubyte GLubyte GLubyte w
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
_In_ ULONG _In_ ULONG _In_ ULONG Length
enum _VIDEO_BANK_TYPE VIDEO_BANK_TYPE
base of all file and directory entries
PSAVED_SCREEN_BITS ssbList
PVOID BitmapStart2Window[2]
VIDEO_BANK_TYPE BankingType
PVIDEO_BANK_SELECT BankSelectInfo
PFN_BankControl pfnBankControl2Window
PFN_BankControl pfnBankControl
struct _LIST_ENTRY * Blink
struct _LIST_ENTRY * Flink
VIDEO_POINTER_CAPABILITIES PointerCapabilities
LONG NumScansUsedByPointer
PVIDEO_POINTER_ATTRIBUTES pPointerAttributes
PUCHAR pucDIB4ToVGAConvBuffer
PUCHAR pjPreallocSSBBuffer
PUCHAR pucDIB4ToVGAConvTables
DWORD flPreallocSSBBufferInUse
PSAVED_SCREEN_BITS ImageBehindCursor
RECTL arcl[ENUM_RECT_LIMIT]
VOID FASTCALL vgaReadScan(int x, int y, int w, void *b)
BOOL InitPointer(PPDEV ppdev)
VOID(* PFN_ScreenToScreenBlt)(PDEVSURF, PRECTL, PPOINTL, INT)
struct _RECT_ENUM RECT_ENUM
PSAVED_SCREEN_BITS VGADDI_AllocSavedScreenBits(ULONG Size)
VOID VGADDI_FreeSavedScreenBits(PSAVED_SCREEN_BITS SavedBits)
struct BANK_INFO * PBANK_INFO
struct _SAVED_SCREEN_BITS * PSAVED_SCREEN_BITS
struct _SAVED_SCREEN_BITS SAVED_SCREEN_BITS
VOID(* PFN_BankControl)(PVOID, ULONG, BANK_JUST)
VOID VGADDI_InitializeOffScreenMem(ULONG Start, ULONG Length)
VOID VGADDI_BltFromSavedScreenBits(ULONG DestX, ULONG DestY, PSAVED_SCREEN_BITS Src, ULONG SizeX, ULONG SizeY)
struct _DEVSURF * PDEVSURF
VOID FASTCALL vgaWriteScan(int x, int y, int w, void *b)
DWORD getAvailableModes(HANDLE Driver, PVIDEO_MODE_INFORMATION *modeInformation, DWORD *ModeSize)
BOOL InitVGA(PPDEV ppdev, BOOL bFirst)
VOID VGADDI_BltToSavedScreenBits(PSAVED_SCREEN_BITS Dest, ULONG SourceX, ULONG SourceY, ULONG SizeX, ULONG SizeY)
BOOL DeinitVGA(PPDEV ppdev)
BOOL VGAtoGDI(SURFOBJ *Dest, SURFOBJ *Source, SURFOBJ *Mask, XLATEOBJ *ColorTranslation, RECTL *DestRect, POINTL *SourcePoint)
_Must_inspect_result_ _In_ WDFDRIVER Driver
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
LONG_PTR(APIENTRY * PFN)()
typedef HSURF(APIENTRY FN_DrvEnableSurface)(_In_ DHPDEV dhpdev)