[PORTCLS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 20 Feb 2011 23:01:14 +0000 (23:01 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 20 Feb 2011 23:01:14 +0000 (23:01 +0000)
- Remove the oldest hack in portcls
- Please report any regression(s)

svn path=/trunk/; revision=50850

reactos/drivers/wdm/audio/backpln/portcls/dma_slave.cpp
reactos/drivers/wdm/audio/backpln/portcls/interfaces.hpp

index a68e25e..35109f0 100644 (file)
@@ -196,18 +196,14 @@ CDmaChannelInit::MaximumBufferSize()
 
 PHYSICAL_ADDRESS
 NTAPI
-CDmaChannelInit::PhysicalAddress(
-    PPHYSICAL_ADDRESS Address)
+CDmaChannelInit::PhysicalAddress()
 {
     DPRINT("CDmaChannelInit_PhysicalAdress: this %p Virtuell %p Physical High %x Low %x%\n", this, m_Buffer, m_Address.HighPart, m_Address.LowPart);
 
-    PHYSICAL_ADDRESS Result;
-
-    Address->QuadPart = m_Address.QuadPart;
-    Result.QuadPart = (PtrToUlong(Address));
-    return Result;
+    return m_Address;
 }
 
+
 VOID
 NTAPI
 CDmaChannelInit::SetBufferSize(
index 9163a6a..bec3ccd 100644 (file)
@@ -903,8 +903,7 @@ typedef IPortPinDMus *PPORTPINDMUS;
         IN  ULONG BufferSize);                                            \
                                                                           \
     STDMETHODIMP_(PVOID) SystemAddress(void);                             \
-    STDMETHODIMP_(PHYSICAL_ADDRESS) PhysicalAddress(                      \
-        IN  PPHYSICAL_ADDRESS PhysicalAddressConstraint OPTIONAL);        \
+    STDMETHODIMP_(PHYSICAL_ADDRESS) PhysicalAddress();                    \
     STDMETHODIMP_(PADAPTER_OBJECT) GetAdapterObject(void);                \
                                                                           \
     STDMETHODIMP_(void) CopyTo(                                           \
@@ -950,8 +949,7 @@ typedef IPortPinDMus *PPORTPINDMUS;
         IN  ULONG BufferSize) PURE; \
 \
     STDMETHOD_(PVOID, SystemAddress)( THIS ) PURE; \
-    STDMETHOD_(PHYSICAL_ADDRESS, PhysicalAddress)( THIS_       \
-        IN PPHYSICAL_ADDRESS Address) PURE; \
+    STDMETHOD_(PHYSICAL_ADDRESS, PhysicalAddress)( THIS) PURE;  \
     STDMETHOD_(PADAPTER_OBJECT, GetAdapterObject)( THIS ) PURE; \
 \
     STDMETHOD_(void, CopyTo)( THIS_ \