io_device.cc (9090:e4e22240398f) io_device.cc (9095:0e6bd7082fac)
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

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

42 */
43
44#include "base/trace.hh"
45#include "debug/BusAddrRanges.hh"
46#include "dev/io_device.hh"
47#include "sim/system.hh"
48
49PioPort::PioPort(PioDevice *dev)
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

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

42 */
43
44#include "base/trace.hh"
45#include "debug/BusAddrRanges.hh"
46#include "dev/io_device.hh"
47#include "sim/system.hh"
48
49PioPort::PioPort(PioDevice *dev)
50 : SimpleTimingPort(dev->name() + "-pio", dev), device(dev)
50 : SimpleTimingPort(dev->name() + ".pio", dev), device(dev)
51{
52}
53
54Tick
55PioPort::recvAtomic(PacketPtr pkt)
56{
57 return pkt->isRead() ? device->read(pkt) : device->write(pkt);
58}

--- 58 unchanged lines hidden ---
51{
52}
53
54Tick
55PioPort::recvAtomic(PacketPtr pkt)
56{
57 return pkt->isRead() ? device->read(pkt) : device->write(pkt);
58}

--- 58 unchanged lines hidden ---