io_device.cc (2639:78773954274f) io_device.cc (2640:266b80dd5eca)
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;

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

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include "dev/io_device.hh"
30#include "sim/builder.hh"
31
32
33PioPort::PioPort(PioDevice *dev, Platform *p)
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;

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

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include "dev/io_device.hh"
30#include "sim/builder.hh"
31
32
33PioPort::PioPort(PioDevice *dev, Platform *p)
34 : device(dev), platform(p)
34 : Port(dev->name() + "-pioport"), device(dev), platform(p)
35{ }
36
37
38Tick
39PioPort::recvAtomic(Packet *pkt)
40{
41 return device->recvAtomic(pkt);
42}

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

103{
104 assert(pioSize != 0);
105 range_list.clear();
106 range_list.push_back(RangeSize(pioAddr, pioSize));
107}
108
109
110DmaPort::DmaPort(DmaDevice *dev, Platform *p)
35{ }
36
37
38Tick
39PioPort::recvAtomic(Packet *pkt)
40{
41 return device->recvAtomic(pkt);
42}

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

103{
104 assert(pioSize != 0);
105 range_list.clear();
106 range_list.push_back(RangeSize(pioAddr, pioSize));
107}
108
109
110DmaPort::DmaPort(DmaDevice *dev, Platform *p)
111 : device(dev), platform(p), pendingCount(0)
111 : Port(dev->name() + "-dmaport"), device(dev), platform(p), pendingCount(0)
112{ }
113
114bool
115DmaPort::recvTiming(Packet *pkt)
116{
117 if (pkt->senderState) {
118 DmaReqState *state;
119 state = (DmaReqState*)pkt->senderState;

--- 121 unchanged lines hidden ---
112{ }
113
114bool
115DmaPort::recvTiming(Packet *pkt)
116{
117 if (pkt->senderState) {
118 DmaReqState *state;
119 state = (DmaReqState*)pkt->senderState;

--- 121 unchanged lines hidden ---