*
*/
-#include <ddk/ntddk.h>
-#include <ddk/ntddvid.h>
+#define NTOS_KERNEL_MODE
+#include <ntos.h>
+#include <ddk/ntddvdeo.h>
+#include <ntos/ntddvid.h>
#define UNIMPLEMENTED do {DbgPrint("%s:%d: Function not implemented", __FILE__, __LINE__); for(;;);} while (0)
#define VERSION "0.0.0"
// ---------------------------------------------------- Forward Declarations
-static VP_STATUS VGAFindAdapter(PVOID DeviceExtension,
- PVOID Context,
- PWSTR ArgumentString,
- PVIDEO_PORT_CONFIG_INFO ConfigInfo,
- PUCHAR Again);
-static BOOLEAN VGAInitialize(PVOID DeviceExtension);
-static BOOLEAN VGAStartIO(PVOID DeviceExtension,
- PVIDEO_REQUEST_PACKET RequestPacket);
+static VP_STATUS STDCALL
+VGAFindAdapter(PVOID DeviceExtension,
+ PVOID Context,
+ PWSTR ArgumentString,
+ PVIDEO_PORT_CONFIG_INFO ConfigInfo,
+ PUCHAR Again);
+static BOOLEAN STDCALL
+VGAInitialize(PVOID DeviceExtension);
+static BOOLEAN STDCALL
+VGAStartIO(PVOID DeviceExtension,
+ PVIDEO_REQUEST_PACKET RequestPacket);
/*
-static BOOLEAN VGAInterrupt(PVOID DeviceExtension);
-static BOOLEAN VGAResetHw(PVOID DeviceExtension,
- ULONG Columns,
- ULONG Rows);
-static VOID VGATimer(PVOID DeviceExtension);
+static BOOLEAN STDCALL
+VGAInterrupt(PVOID DeviceExtension);
+static BOOLEAN STDCALL
+VGAResetHw(PVOID DeviceExtension,
+ ULONG Columns,
+ ULONG Rows);
+static VOID STDCALL
+VGATimer(PVOID DeviceExtension);
*/
/* Mandatory IoControl routines */
// VP_STATUS
VP_STATUS STDCALL
-DriverEntry(IN PVOID Context1,
- IN PVOID Context2)
+DriverEntry(IN PVOID Context1,
+ IN PVOID Context2)
{
VIDEO_HW_INITIALIZATION_DATA InitData;
// RETURNS:
// VP_STATUS
-static VP_STATUS
-VGAFindAdapter(PVOID DeviceExtension,
- PVOID Context,
- PWSTR ArgumentString,
- PVIDEO_PORT_CONFIG_INFO ConfigInfo,
- PUCHAR Again)
+static VP_STATUS STDCALL
+VGAFindAdapter(PVOID DeviceExtension,
+ PVOID Context,
+ PWSTR ArgumentString,
+ PVIDEO_PORT_CONFIG_INFO ConfigInfo,
+ PUCHAR Again)
{
/* FIXME: Determine if the adapter is present */
*Again = FALSE;
// PVOID DeviceExtension
// RETURNS:
// BOOLEAN Success or failure
-static BOOLEAN
-VGAInitialize(PVOID DeviceExtension)
+static BOOLEAN STDCALL
+VGAInitialize(PVOID DeviceExtension)
{
return FALSE;
}
// BOOLEAN This function must return TRUE, and complete the work or
// set an error status in the VRP.
-static BOOLEAN
-VGAStartIO(PVOID DeviceExtension,
- PVIDEO_REQUEST_PACKET RequestPacket)
+static BOOLEAN STDCALL
+VGAStartIO(PVOID DeviceExtension,
+ PVIDEO_REQUEST_PACKET RequestPacket)
{
switch (RequestPacket->IoControlCode)
{
// RETURNS:
// BOOLEAN TRUE if the interrupt was handled by the routine
-static BOOLEAN VGAInterrupt(PVOID DeviceExtension);
+static BOOLEAN STDCALL
+VGAInterrupt(PVOID DeviceExtension)
+{
+ return(TRUE);
+}
// VGAResetHw
//
// BOOLEAN TRUE if no further action is necessary, FALSE if the system
// needs to still do a BOIS int 10 reset.
-static BOOLEAN VGAResetHw(PVOID DeviceExtension,
- ULONG Columns,
- ULONG Rows);
+static BOOLEAN STDCALL
+VGAResetHw(PVOID DeviceExtension,
+ ULONG Columns,
+ ULONG Rows)
+{
+ return(TRUE);
+}
// VGATimer
//
// RETURNS:
// VOID
-static VOID VGATimer(PVOID DeviceExtension);
+static VOID STDCALL
+VGATimer(PVOID DeviceExtension)
+{
+}
#endif