io_device.cc (8948:e95ee70f876c) | io_device.cc (8949:3fa1ee293096) |
---|---|
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 --- 256 unchanged lines hidden (view full) --- 265 DmaReqState *reqState = new DmaReqState(event, this, size, delay); 266 267 268 DPRINTF(DMA, "Starting DMA for addr: %#x size: %d sched: %d\n", addr, size, 269 event ? event->scheduled() : -1 ); 270 for (ChunkGenerator gen(addr, size, peerBlockSize()); 271 !gen.done(); gen.next()) { 272 Request *req = new Request(gen.addr(), gen.size(), flag, masterId); | 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 --- 256 unchanged lines hidden (view full) --- 265 DmaReqState *reqState = new DmaReqState(event, this, size, delay); 266 267 268 DPRINTF(DMA, "Starting DMA for addr: %#x size: %d sched: %d\n", addr, size, 269 event ? event->scheduled() : -1 ); 270 for (ChunkGenerator gen(addr, size, peerBlockSize()); 271 !gen.done(); gen.next()) { 272 Request *req = new Request(gen.addr(), gen.size(), flag, masterId); |
273 PacketPtr pkt = new Packet(req, cmd, Packet::Broadcast); | 273 PacketPtr pkt = new Packet(req, cmd); |
274 275 // Increment the data pointer on a write 276 if (data) 277 pkt->dataStatic(data + gen.complete()); 278 279 pkt->senderState = reqState; 280 281 assert(pendingCount >= 0); --- 110 unchanged lines hidden --- | 274 275 // Increment the data pointer on a write 276 if (data) 277 pkt->dataStatic(data + gen.complete()); 278 279 pkt->senderState = reqState; 280 281 assert(pendingCount >= 0); --- 110 unchanged lines hidden --- |