diff options
| author | Joel Corley <[email protected]> | 2018-12-11 17:43:11 -0800 |
|---|---|---|
| committer | Joel Corley <[email protected]> | 2018-12-11 17:43:11 -0800 |
| commit | 5a1b50c6e9a3297a96a3f7a5cfa35410ce5e57b7 (patch) | |
| tree | 00094c46f533c38a4b716b5532758bb20d3c744e /avstream/avshws/hwsim.cpp | |
| parent | 9d23d436df72766a24a4791acd916c7faf106d48 (diff) | |
Remove broken X86-specific DMA code.
Add project support for ARM & ARM64 targets.
Diffstat (limited to 'avstream/avshws/hwsim.cpp')
| -rw-r--r-- | avstream/avshws/hwsim.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/avstream/avshws/hwsim.cpp b/avstream/avshws/hwsim.cpp index 9a6d5f86..1e813bc2 100644 --- a/avstream/avshws/hwsim.cpp +++ b/avstream/avshws/hwsim.cpp @@ -556,7 +556,6 @@ Return Value: // If I could just remap physical in the list to virtual easily here, // I wouldn't need to do it. // -#if !defined(_X86_) do { PSCATTER_GATHER_ENTRY Entry = @@ -590,43 +589,6 @@ Return Value: } while(FALSE); -#else - for (ULONG MappingNum = 0; - MappingNum < MappingsCount && - m_ScatterGatherMappingsQueued < m_ScatterGatherMappingsMax; - MappingNum++) { - - PSCATTER_GATHER_ENTRY Entry = - reinterpret_cast <PSCATTER_GATHER_ENTRY> ( - ExAllocateFromNPagedLookasideList ( - &m_ScatterGatherLookaside - ) - ); - - if (!Entry) { - break; - } - - Entry -> Virtual = *Buffer; - Entry -> ByteCount = Mappings -> ByteCount; - - // - // Move forward a specific number of bytes in chunking this into - // mapping sized va buffers. - // - *Buffer += Entry -> ByteCount; - Mappings = reinterpret_cast <PKSMAPPING> ( - (reinterpret_cast <PUCHAR> (Mappings) + MappingStride) - ); - - InsertTailList (&m_ScatterGatherMappings, &(Entry -> ListEntry)); - MappingsInserted++; - m_ScatterGatherMappingsQueued++; - m_ScatterGatherBytesQueued += Entry -> ByteCount; - - } -#endif - KeReleaseSpinLock (&m_ListLock, Irql); return MappingsInserted; |
