dma_device.cc (9342:6fec8f26e56d) | dma_device.cc (9452:b41dac174706) |
---|---|
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 --- 71 unchanged lines hidden (view full) --- 80 state->numBytes += pkt->req->getSize(); 81 assert(state->totBytes >= state->numBytes); 82 83 // if we have reached the total number of bytes for this DMA 84 // request, then signal the completion and delete the sate 85 if (state->totBytes == state->numBytes) { 86 if (state->completionEvent) { 87 delay += state->delay; | 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 --- 71 unchanged lines hidden (view full) --- 80 state->numBytes += pkt->req->getSize(); 81 assert(state->totBytes >= state->numBytes); 82 83 // if we have reached the total number of bytes for this DMA 84 // request, then signal the completion and delete the sate 85 if (state->totBytes == state->numBytes) { 86 if (state->completionEvent) { 87 delay += state->delay; |
88 if (delay) 89 device->schedule(state->completionEvent, curTick() + delay); 90 else 91 state->completionEvent->process(); | 88 device->schedule(state->completionEvent, curTick() + delay); |
92 } 93 delete state; 94 } 95 96 // delete the request that we created and also the packet 97 delete pkt->req; 98 delete pkt; 99 --- 172 unchanged lines hidden --- | 89 } 90 delete state; 91 } 92 93 // delete the request that we created and also the packet 94 delete pkt->req; 95 delete pkt; 96 --- 172 unchanged lines hidden --- |