[ros-diffs] [janderwald] 38591: - Implement PcDmaMasterDescription, PcDmaSlaveDescription

janderwald at svn.reactos.org janderwald at svn.reactos.org
Tue Jan 6 01:04:32 CET 2009


Author: janderwald
Date: Mon Jan  5 18:04:32 2009
New Revision: 38591

URL: http://svn.reactos.org/svn/reactos?rev=38591&view=rev
Log:
- Implement PcDmaMasterDescription, PcDmaSlaveDescription

Modified:
    trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c
    trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c

Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c?rev=38591&r1=38590&r2=38591&view=diff
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c [iso-8859-1] Mon Jan  5 18:04:32 2009
@@ -73,3 +73,58 @@
     IoStopTimer(pDeviceObject);
     return STATUS_SUCCESS;
 }
+
+
+NTSTATUS
+NTAPI
+PcDmaMasterDescription(
+    IN PRESOURCELIST ResourceList OPTIONAL,
+    IN BOOLEAN ScatterGather,
+    IN BOOLEAN Dma32BitAddresses,
+    IN BOOLEAN IgnoreCount,
+    IN BOOLEAN Dma64BitAddresses,
+    IN DMA_WIDTH DmaWidth,
+    IN DMA_SPEED DmaSpeed,
+    IN ULONG MaximumLength,
+    IN ULONG DmaPort,
+    OUT PDEVICE_DESCRIPTION DeviceDescription)
+{
+
+    RtlZeroMemory(DeviceDescription, sizeof(DEVICE_DESCRIPTION));
+
+    DeviceDescription->Master = TRUE;
+    DeviceDescription->ScatterGather= ScatterGather;
+    DeviceDescription->Dma32BitAddresses = Dma32BitAddresses;
+    DeviceDescription->IgnoreCount = IgnoreCount;
+    DeviceDescription->Dma64BitAddresses = Dma64BitAddresses;
+    DeviceDescription->DmaWidth = DmaWidth;
+    DeviceDescription->DmaSpeed = DmaSpeed;
+    DeviceDescription->MaximumLength = MaximumLength;
+    DeviceDescription->DmaPort = DmaPort;
+
+    return STATUS_SUCCESS;
+}
+
+NTSTATUS
+NTAPI
+PcDmaSlaveDescription(
+    IN PRESOURCELIST  ResourceList OPTIONAL,
+    IN ULONG DmaIndex,
+    IN BOOL DemandMode,
+    IN ULONG AutoInitialize,
+    IN DMA_SPEED DmaSpeed
+    IN ULONG MaximumLength,
+    IN ULONG DmaPort,
+    OUT PDEVICE_DESCRIPTION DeviceDescription)
+{
+
+    RtlZeroMemory(DeviceDescription, sizeof(DEVICE_DESCRIPTION));
+
+    DeviceDescription->DemandMode = DemandMode;
+    DeviceDescription->AutoInitialize = AutoInitialize;
+    DeviceDescription->DmaSpeed = DmaSpeed;
+    DeviceDescription->MaximumLength = MaximumLength;
+    DeviceDescription->DmaPort = DmaPort;
+
+    return STATUS_SUCCESS;
+}

Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c?rev=38591&r1=38590&r2=38591&view=diff
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/undoc.c [iso-8859-1] Mon Jan  5 18:04:32 2009
@@ -89,10 +89,6 @@
 
 /* PcDeleteSubdeviceDescriptor */
 
-/* PcDmaMasterDescription */
-
-/* PcDmaSlaveDescription */
-
 /* PcFreeEventTable */
 
 /* PcFreePropertyTable */



More information about the Ros-diffs mailing list