copy_engine.cc (11522:348411ec525a) | copy_engine.cc (12087:0e082672ac6b) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 67 unchanged lines hidden (view full) --- 76 chan.push_back(ch); 77 } 78} 79 80 81CopyEngine::CopyEngineChannel::CopyEngineChannel(CopyEngine *_ce, int cid) 82 : cePort(_ce, _ce->sys), 83 ce(_ce), channelId(cid), busy(false), underReset(false), | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 67 unchanged lines hidden (view full) --- 76 chan.push_back(ch); 77 } 78} 79 80 81CopyEngine::CopyEngineChannel::CopyEngineChannel(CopyEngine *_ce, int cid) 82 : cePort(_ce, _ce->sys), 83 ce(_ce), channelId(cid), busy(false), underReset(false), |
84 refreshNext(false), latBeforeBegin(ce->params()->latBeforeBegin), 85 latAfterCompletion(ce->params()->latAfterCompletion), 86 completionDataReg(0), nextState(Idle), 87 fetchCompleteEvent(this), addrCompleteEvent(this), 88 readCompleteEvent(this), writeCompleteEvent(this), 89 statusCompleteEvent(this) | 84 refreshNext(false), latBeforeBegin(ce->params()->latBeforeBegin), 85 latAfterCompletion(ce->params()->latAfterCompletion), 86 completionDataReg(0), nextState(Idle), 87 fetchCompleteEvent([this]{ fetchDescComplete(); }, name()), 88 addrCompleteEvent([this]{ fetchAddrComplete(); }, name()), 89 readCompleteEvent([this]{ readCopyBytesComplete(); }, name()), 90 writeCompleteEvent([this]{ writeCopyBytesComplete(); }, name()), 91 statusCompleteEvent([this]{ writeStatusComplete(); }, name()) |
90 91{ 92 cr.status.dma_transfer_status(3); 93 cr.descChainAddr = 0; 94 cr.completionAddr = 0; 95 96 curDmaDesc = new DmaDesc; 97 memset(curDmaDesc, 0, sizeof(DmaDesc)); --- 654 unchanged lines hidden --- | 92 93{ 94 cr.status.dma_transfer_status(3); 95 cr.descChainAddr = 0; 96 cr.completionAddr = 0; 97 98 curDmaDesc = new DmaDesc; 99 memset(curDmaDesc, 0, sizeof(DmaDesc)); --- 654 unchanged lines hidden --- |