io_device.cc (9549:95a536fae9ac) io_device.cc (9808:13ffc0066b76)
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

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

98 count = pioPort.drain(dm);
99 if (count)
100 setDrainState(Drainable::Draining);
101 else
102 setDrainState(Drainable::Drained);
103 return count;
104}
105
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

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

98 count = pioPort.drain(dm);
99 if (count)
100 setDrainState(Drainable::Draining);
101 else
102 setDrainState(Drainable::Drained);
103 return count;
104}
105
106BasicPioDevice::BasicPioDevice(const Params *p)
107 : PioDevice(p), pioAddr(p->pio_addr), pioSize(0),
106BasicPioDevice::BasicPioDevice(const Params *p, Addr size)
107 : PioDevice(p), pioAddr(p->pio_addr), pioSize(size),
108 pioDelay(p->pio_latency)
109{}
110
111AddrRangeList
112BasicPioDevice::getAddrRanges() const
113{
114 assert(pioSize != 0);
115 AddrRangeList ranges;
116 DPRINTF(BusAddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
117 ranges.push_back(RangeSize(pioAddr, pioSize));
118 return ranges;
119}
108 pioDelay(p->pio_latency)
109{}
110
111AddrRangeList
112BasicPioDevice::getAddrRanges() const
113{
114 assert(pioSize != 0);
115 AddrRangeList ranges;
116 DPRINTF(BusAddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
117 ranges.push_back(RangeSize(pioAddr, pioSize));
118 return ranges;
119}