io_device.cc (8851:7e966326ef5b) io_device.cc (8914:8c3bd7bea667)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

31
32#include "base/chunk_generator.hh"
33#include "base/trace.hh"
34#include "debug/BusAddrRanges.hh"
35#include "debug/DMA.hh"
36#include "dev/io_device.hh"
37#include "sim/system.hh"
38
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

31
32#include "base/chunk_generator.hh"
33#include "base/trace.hh"
34#include "debug/BusAddrRanges.hh"
35#include "debug/DMA.hh"
36#include "dev/io_device.hh"
37#include "sim/system.hh"
38
39PioPort::PioPort(PioDevice *dev, System *s, std::string pname)
40 : SimpleTimingPort(dev->name() + pname, dev), device(dev)
41{ }
39PioPort::PioPort(PioDevice *dev)
40 : SimpleTimingPort(dev->name() + "-pioport", dev), device(dev)
41{
42}
42
43
44Tick
45PioPort::recvAtomic(PacketPtr pkt)
46{
47 return pkt->isRead() ? device->read(pkt) : device->write(pkt);
48}
49
50AddrRangeList
51PioPort::getAddrRanges()
52{
53 return device->getAddrRanges();
54}
55
56
57PioDevice::PioDevice(const Params *p)
43
44
45Tick
46PioPort::recvAtomic(PacketPtr pkt)
47{
48 return pkt->isRead() ? device->read(pkt) : device->write(pkt);
49}
50
51AddrRangeList
52PioPort::getAddrRanges()
53{
54 return device->getAddrRanges();
55}
56
57
58PioDevice::PioDevice(const Params *p)
58 : MemObject(p), sys(p->system), pioPort(this, sys)
59 : MemObject(p), sys(p->system), pioPort(this)
59{}
60
61PioDevice::~PioDevice()
62{
63}
64
65void
66PioDevice::init()

--- 314 unchanged lines hidden ---
60{}
61
62PioDevice::~PioDevice()
63{
64}
65
66void
67PioDevice::init()

--- 314 unchanged lines hidden ---