#include <debug.h>
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_STRING TAG('S', 'T', 'R', ' ') /* string */
/* Define _NTTEST_ to make test version. Device names are prefixed with
#define VERSION "0.0.2"
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_SRBT TAG('S', 'r', 'b', 'T')
#define INQUIRY_DATA_SIZE 2048
#define PAGE_ROUND_UP(x) ( (((ULONG_PTR)x)%PAGE_SIZE) ? ((((ULONG_PTR)x)&(~(PAGE_SIZE-1)))+PAGE_SIZE) : ((ULONG_PTR)x) )
#define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
+
typedef enum _SCSI_PORT_TIMER_STATES
{
IDETimerIdle,
#include <ddk/ntddk.h>
#include <debug.h>
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
+
void wait_ms(int mils);
#ifndef _snprintf
#endif
} PDEV, *PPDEV;
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
+
#define DEVICE_NAME L"framebuf"
#define ALLOC_TAG TAG('F','B','U','F')
#define NDEBUG
#include <debug.h>
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
+
int swprintf(wchar_t *buf, const wchar_t *fmt, ...);
int vsprintf(char *buf, const char *fmt, va_list args);
ULONG Action
)
{
- if (Action == FIRMWARE_HALT)
+ if (Action == HalHaltRoutine)
{
DbgPrint ("HalReturnToFirmware called!\n");
DbgBreakPoint ();
}
- else if (Action == FIRMWARE_REBOOT)
+ else if (Action == HalRebootRoutine)
{
HalReleaseDisplayOwnership();
HalReboot ();
#include <internal/ke.h>
#include <internal/i386/ps.h>
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
+
//Temporary hack below.
PVOID STDCALL
MmAllocateContiguousAlignedMemory(IN ULONG NumberOfBytes,
#define NDEBUG
#include <debug.h>
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_FREETYPE TAG('F', 'T', 'Y', 'P')
/*
#include <roscfg.h>
#include <stdlib.h>
#include <windows.h>
-#include <ddk/ntddk.h>
-#include <ddk/ntifs.h>
+#define NTOS_USER_MODE
+#include <ntos.h>
#include <wsahelp.h> /* comment for msvc */
//#include "C:\Programming\ReactOS\reactos\w32api\include\wsahelp.h" uncomment for MSVC
#include <winsock2.h>
#include <helpers.h>
#include <debug.h>
-/* Because our headers are f*cked up */
-typedef LARGE_INTEGER TIME;
-#include <ntos/zw.h>
-
extern HANDLE GlobalHeap;
extern WSPUPCALLTABLE Upcalls;
extern LPWPUCOMPLETEOVERLAPPEDREQUEST lpWPUCompleteOverlappedRequest;
/* TYPES *********************************************************************/
+/* FIXME: NDK headers */
+#define TempEsp TempEip
+#define TempSegSs TempCs
+
/* DEFINES *******************************************************************/
#define KDB_STACK_SIZE (4096*3)
/* DEFINES *******************************************************************/
+/* FIXME: NDK headers */
+#define TempEsp TempEip
+#define TempSegSs TempCs
+
#define KEY_BS 8
#define KEY_ESC 27
#define KEY_DEL 127
*
*/
-#undef WIN32_LEAN_AND_MEAN
-#define WIN32_NO_PEHDR
-
-#include <ddk/ntddk.h>
-#include <windows.h>
-#include <win32k/driver.h>
-#include <win32k/misc.h>
-#include <wchar.h>
-#include <ddk/winddi.h>
-#include <ddk/ntapi.h>
-#include <rosrtl/string.h>
-#include <include/tags.h>
+#include <w32k.h>
#define NDEBUG
#include <debug.h>
#include <dib/dib.h>
+#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
+
#define NDEBUG
#include <win32k/debug1.h>
-
/*\r
- * ntddmou.h\r
+ * kbdmou.h\r
*\r
* Structures and definitions for Keyboard/Mouse class and port drivers.\r
*\r