dma_device.cc (10821:581fb2484bd6) dma_device.cc (10910:32f3d1c454ec)
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

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

125 PioDevice::init();
126}
127
128unsigned int
129DmaDevice::drain(DrainManager *dm)
130{
131 unsigned int count = pioPort.drain(dm) + dmaPort.drain(dm);
132 if (count)
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

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

125 PioDevice::init();
126}
127
128unsigned int
129DmaDevice::drain(DrainManager *dm)
130{
131 unsigned int count = pioPort.drain(dm) + dmaPort.drain(dm);
132 if (count)
133 setDrainState(Drainable::Draining);
133 setDrainState(DrainState::Draining);
134 else
134 else
135 setDrainState(Drainable::Drained);
135 setDrainState(DrainState::Drained);
136 return count;
137}
138
139unsigned int
140DmaPort::drain(DrainManager *dm)
141{
142 if (pendingCount == 0)
143 return 0;

--- 134 unchanged lines hidden ---
136 return count;
137}
138
139unsigned int
140DmaPort::drain(DrainManager *dm)
141{
142 if (pendingCount == 0)
143 return 0;

--- 134 unchanged lines hidden ---