copy_engine.cc (13342:1ddb43f47325) copy_engine.cc (13784:1941dc118243)
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

--- 99 unchanged lines hidden (view full) ---

108}
109
110CopyEngine::CopyEngineChannel::~CopyEngineChannel()
111{
112 delete curDmaDesc;
113 delete [] copyBuffer;
114}
115
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

--- 99 unchanged lines hidden (view full) ---

108}
109
110CopyEngine::CopyEngineChannel::~CopyEngineChannel()
111{
112 delete curDmaDesc;
113 delete [] copyBuffer;
114}
115
116BaseMasterPort &
117CopyEngine::getMasterPort(const std::string &if_name, PortID idx)
116Port &
117CopyEngine::getPort(const std::string &if_name, PortID idx)
118{
119 if (if_name != "dma") {
120 // pass it along to our super class
118{
119 if (if_name != "dma") {
120 // pass it along to our super class
121 return PciDevice::getMasterPort(if_name, idx);
121 return PciDevice::getPort(if_name, idx);
122 } else {
123 if (idx >= static_cast<int>(chan.size())) {
122 } else {
123 if (idx >= static_cast<int>(chan.size())) {
124 panic("CopyEngine::getMasterPort: unknown index %d\n", idx);
124 panic("CopyEngine::getPort: unknown index %d\n", idx);
125 }
126
125 }
126
127 return chan[idx]->getMasterPort();
127 return chan[idx]->getPort();
128 }
129}
130
131
128 }
129}
130
131
132BaseMasterPort &
133CopyEngine::CopyEngineChannel::getMasterPort()
132Port &
133CopyEngine::CopyEngineChannel::getPort()
134{
135 return cePort;
136}
137
138void
139CopyEngine::CopyEngineChannel::recvCommand()
140{
141 if (cr.command.start_dma()) {

--- 616 unchanged lines hidden ---
134{
135 return cePort;
136}
137
138void
139CopyEngine::CopyEngineChannel::recvCommand()
140{
141 if (cr.command.start_dma()) {

--- 616 unchanged lines hidden ---