tport.hh (9063:965c042379df) tport.hh (9097:4e1ceddba87b)
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

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

55/**
56 * The simple timing port uses a queued port to implement
57 * recvFunctional and recvTimingReq through recvAtomic. It is always a
58 * slave port.
59 */
60class SimpleTimingPort : public QueuedSlavePort
61{
62
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

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

55/**
56 * The simple timing port uses a queued port to implement
57 * recvFunctional and recvTimingReq through recvAtomic. It is always a
58 * slave port.
59 */
60class SimpleTimingPort : public QueuedSlavePort
61{
62
63 protected:
63 private:
64
64
65 /** The packet queue used to store outgoing responses. */
66 SlavePacketQueue queue;
65 /**
66 * The packet queue used to store outgoing responses. Note that
67 * the queue is made private and that we avoid overloading the
68 * name used in the QueuedSlavePort. Access is provided through
69 * the queue reference in the base class.
70 */
71 SlavePacketQueue queueImpl;
67
72
73 protected:
74
68 /** Implemented using recvAtomic(). */
69 void recvFunctional(PacketPtr pkt);
70
71 /** Implemented using recvAtomic(). */
72 bool recvTimingReq(PacketPtr pkt);
73
74 virtual Tick recvAtomic(PacketPtr pkt) = 0;
75

--- 28 unchanged lines hidden ---
75 /** Implemented using recvAtomic(). */
76 void recvFunctional(PacketPtr pkt);
77
78 /** Implemented using recvAtomic(). */
79 bool recvTimingReq(PacketPtr pkt);
80
81 virtual Tick recvAtomic(PacketPtr pkt) = 0;
82

--- 28 unchanged lines hidden ---