Author: cgutman
Date: Wed Oct 8 17:25:01 2008
New Revision: 36700
URL:
http://svn.reactos.org/svn/reactos?rev=36700&view=rev
Log:
- More work on NDIS 6.0
- Part 2 of X
Added:
branches/aicom-network-fixes/drivers/network/ndis/ndis/workitem.c (with props)
Added: branches/aicom-network-fixes/drivers/network/ndis/ndis/workitem.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/ndis/ndis/workitem.c (added)
+++ branches/aicom-network-fixes/drivers/network/ndis/ndis/workitem.c [iso-8859-1] Wed Oct
8 17:25:01 2008
@@ -1,0 +1,43 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS NDIS library
+ * FILE: workitem.c
+ * PURPOSE: Implements the NDIS 6.0 work item interface
+ * PROGRAMMERS: Cameron Gutman (aicommander(a)gmail.com)
+ */
+
+#include "ndissys.h"
+
+NDIS_HANDLE
+EXPORT
+NdisAllocateIoWorkItem(
+ IN NDIS_HANDLE NdisObjectHandle)
+{
+ PLOGICAL_ADAPTER Adapter = NdisObjectHandle;
+
+ return IoAllocateWorkItem(Adapter->NdisMiniportBlock.PhysicalDeviceObject);
+}
+
+VOID
+EXPORT
+NdisQueueIoWorkItem(
+ IN NDIS_HANDLE NdisIoWorkItemHandle,
+ IN NDIS_IO_WORKITEM_ROUTINE Routine,
+ IN PVOID WorkItemContext)
+{
+ PNDIS_IO_WORKITEM WorkItem = NdisIoWorkItemHandle;
+
+ IoQueueWorkItem(WorkItem,
+ Routine,
+ CriticalWorkQueue,
+ WorkItemContext);
+}
+
+VOID
+EXPORT
+NdisFreeIoWorkItem(
+ IN NDIS_HANDLE NdisIoWorkItemHandle)
+{
+ PNDIS_IO_WORKITEM WorkItem = NdisIoWorkItemHandle;
+ IoFreeWorkItem(WorkItem);
+}
Propchange: branches/aicom-network-fixes/drivers/network/ndis/ndis/workitem.c
------------------------------------------------------------------------------
svn:eol-style = native