io_device.cc (8975:7f36d4436074) io_device.cc (9015:7f4d25789dc4)
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

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

115 assert(pioSize != 0);
116 AddrRangeList ranges;
117 DPRINTF(BusAddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
118 ranges.push_back(RangeSize(pioAddr, pioSize));
119 return ranges;
120}
121
122
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

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

115 assert(pioSize != 0);
116 AddrRangeList ranges;
117 DPRINTF(BusAddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
118 ranges.push_back(RangeSize(pioAddr, pioSize));
119 return ranges;
120}
121
122
123DmaPort::DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff,
124 bool recv_snoops)
125 : MasterPort(dev->name() + "-dmaport", dev), device(dev), sys(s),
123DmaPort::DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff)
124 : MasterPort(dev->name() + "-dma", dev), device(dev), sys(s),
126 masterId(s->getMasterId(dev->name())),
127 pendingCount(0), actionInProgress(0), drainEvent(NULL),
128 backoffTime(0), minBackoffDelay(min_backoff),
125 masterId(s->getMasterId(dev->name())),
126 pendingCount(0), actionInProgress(0), drainEvent(NULL),
127 backoffTime(0), minBackoffDelay(min_backoff),
129 maxBackoffDelay(max_backoff), inRetry(false), recvSnoops(recv_snoops),
128 maxBackoffDelay(max_backoff), inRetry(false),
130 backoffEvent(this)
131{ }
132
133bool
134DmaPort::recvTimingResp(PacketPtr pkt)
135{
136 if (pkt->wasNacked()) {
137 DPRINTF(DMA, "Received nacked %s addr %#x\n",

--- 253 unchanged lines hidden ---
129 backoffEvent(this)
130{ }
131
132bool
133DmaPort::recvTimingResp(PacketPtr pkt)
134{
135 if (pkt->wasNacked()) {
136 DPRINTF(DMA, "Received nacked %s addr %#x\n",

--- 253 unchanged lines hidden ---