Commit in reactos/drivers/net/afd/include on arty_afd_20040709
debug.h+98added 1.6.18.1
tdi_proto.h+17added 1.1.2.1
+115
2 added files
Include files.

reactos/drivers/net/afd/include
debug.h added at 1.6.18.1
diff -N debug.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ debug.h	9 Jul 2004 04:45:46 -0000	1.6.18.1
@@ -0,0 +1,98 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS Ancillary Function Driver
+ * FILE:        include/debug.h
+ * PURPOSE:     Debugging support macros
+ * DEFINES:     DBG     - Enable debug output
+ *              NASSERT - Disable assertions
+ */
+#ifndef __DEBUG_H
+#define __DEBUG_H
+
+#define NORMAL_MASK    0x000000FF
+#define SPECIAL_MASK   0xFFFFFF00
+#define MIN_TRACE      0x00000001
+#define MID_TRACE      0x00000002
+#define MAX_TRACE      0x00000003
+
+#define DEBUG_CHECK    0x00000100
+#define DEBUG_IRP      0x00000200
+#define DEBUG_ULTRA    0xFFFFFFFF
+
+#ifdef DBG
+
+extern DWORD DebugTraceLevel;
+
+#ifdef _MSC_VER
+
+#define AFD_DbgPrint(_t_, _x_) \
+    if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
+        ((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
+        DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
+        DbgPrint _x_ ; \
+    }
+
+#else /* _MSC_VER */
+
+#define AFD_DbgPrint(_t_, _x_) \
+    if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
+        ((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
+        DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
+        DbgPrint _x_ ; \
+    }
+
+#endif /* _MSC_VER */
+
+#ifdef ASSERT
+#undef ASSERT
+#endif
+
+#ifdef NASSERT
+#define ASSERT(x)
+#else /* NASSERT */
+#define ASSERT(x) if (!(x)) { AFD_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
+#endif /* NASSERT */
+
+#define ASSERT_KM(x) ASSERT((x) >= 0xC0000000)
+#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
+
+#else /* DBG */
+
+#define AFD_DbgPrint(_t_, _x_)
+
+#define ASSERT_IRQL(x)
+#define ASSERTKM(x)
+#define ASSERT(x)
+
+#endif /* DBG */
+
+
+#undef assert
+#define assert(x) ASSERT(x)
+#define assert_km(x) ASSERT_KM(x)
+#define assert_irql(x) ASSERT_IRQL(x)
+
+
+#ifdef _MSC_VER
+
+#define UNIMPLEMENTED \
+    AFD_DbgPrint(MIN_TRACE, ("The function at %s:%d is unimplemented, \
+        but come back another day.\n", __FILE__, __LINE__));
+
+#else /* _MSC_VER */
+
+#define UNIMPLEMENTED \
+    AFD_DbgPrint(MIN_TRACE, ("%s at %s:%d is unimplemented, " \
+        "but come back another day.\n", __FUNCTION__, __FILE__, __LINE__));
+
+#endif /* _MSC_VER */
+
+
+#define CHECKPOINT \
+    AFD_DbgPrint(DEBUG_CHECK, ("\n"));
+
+#define CP CHECKPOINT
+
+#endif /* __DEBUG_H */
+
+/* EOF */

reactos/drivers/net/afd/include
tdi_proto.h added at 1.1.2.1
diff -N tdi_proto.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ tdi_proto.h	9 Jul 2004 04:45:46 -0000	1.1.2.1
@@ -0,0 +1,17 @@
+#ifndef _TDI_PROTO_H
+#define _TDI_PROTO_H
+
+NTSTATUS TdiConnect( PIRP *PendingIrp,
+		     PFILE_OBJECT ConnectionObject,
+		     PTRANSPORT_ADDRESS RemoteAddress,
+		     PIO_COMPLETION_ROUTINE CompletionRoutine,
+		     PVOID CompletionContext );
+
+NTSTATUS TdiOpenConnectionEndpointFile(PUNICODE_STRING DeviceName,
+				       PHANDLE ConnectionHandle,
+				       PFILE_OBJECT *ConnectionObject);
+
+NTSTATUS TdiCloseDevice(HANDLE Handle,
+			PFILE_OBJECT FileObject);
+
+#endif/*_TDI_PROTO_H*/
CVSspam 0.2.8