io_device.cc (13784:1941dc118243) io_device.cc (13892:0182a0601f66)
1/*
2 * Copyright (c) 2012, 2015 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

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

67
68AddrRangeList
69PioPort::getAddrRanges() const
70{
71 return device->getAddrRanges();
72}
73
74PioDevice::PioDevice(const Params *p)
1/*
2 * Copyright (c) 2012, 2015 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

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

67
68AddrRangeList
69PioPort::getAddrRanges() const
70{
71 return device->getAddrRanges();
72}
73
74PioDevice::PioDevice(const Params *p)
75 : MemObject(p), sys(p->system), pioPort(this)
75 : ClockedObject(p), sys(p->system), pioPort(this)
76{}
77
78PioDevice::~PioDevice()
79{
80}
81
82void
83PioDevice::init()

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

88}
89
90Port &
91PioDevice::getPort(const std::string &if_name, PortID idx)
92{
93 if (if_name == "pio") {
94 return pioPort;
95 }
76{}
77
78PioDevice::~PioDevice()
79{
80}
81
82void
83PioDevice::init()

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

88}
89
90Port &
91PioDevice::getPort(const std::string &if_name, PortID idx)
92{
93 if (if_name == "pio") {
94 return pioPort;
95 }
96 return MemObject::getPort(if_name, idx);
96 return ClockedObject::getPort(if_name, idx);
97}
98
99BasicPioDevice::BasicPioDevice(const Params *p, Addr size)
100 : PioDevice(p), pioAddr(p->pio_addr), pioSize(size),
101 pioDelay(p->pio_latency)
102{}
103
104AddrRangeList
105BasicPioDevice::getAddrRanges() const
106{
107 assert(pioSize != 0);
108 AddrRangeList ranges;
109 DPRINTF(AddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
110 ranges.push_back(RangeSize(pioAddr, pioSize));
111 return ranges;
112}
97}
98
99BasicPioDevice::BasicPioDevice(const Params *p, Addr size)
100 : PioDevice(p), pioAddr(p->pio_addr), pioSize(size),
101 pioDelay(p->pio_latency)
102{}
103
104AddrRangeList
105BasicPioDevice::getAddrRanges() const
106{
107 assert(pioSize != 0);
108 AddrRangeList ranges;
109 DPRINTF(AddrRanges, "registering range: %#x-%#x\n", pioAddr, pioSize);
110 ranges.push_back(RangeSize(pioAddr, pioSize));
111 return ranges;
112}