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
--- 70 unchanged lines hidden (view full) ---
79 */
80 QueuedSlavePort(const std::string& name, MemObject* owner,
81 SlavePacketQueue &queue) :
82 SlavePort(name, owner), queue(queue)
83 { }
84
85 virtual ~QueuedSlavePort() { }
86
87 /** Check the list of buffered packets against the supplied
88 * functional request. */
89 bool checkFunctional(PacketPtr pkt) { return queue.checkFunctional(pkt); }
90
91 /**
92 * Hook for draining the queued port.
93 *
94 * @param de an event which is used to signal back to the caller
--- 25 unchanged lines hidden (view full) ---
120 */
121 QueuedMasterPort(const std::string& name, MemObject* owner,
122 MasterPacketQueue &queue) :
123 MasterPort(name, owner), queue(queue)
124 { }
125
126 virtual ~QueuedMasterPort() { }
127
128 /** Check the list of buffered packets against the supplied
129 * functional request. */
130 bool checkFunctional(PacketPtr pkt) { return queue.checkFunctional(pkt); }
131
132 /**
133 * Hook for draining the queued port.
134 *
135 * @param de an event which is used to signal back to the caller
136 * @returns a number indicating how many times process will be called
137 */
138 unsigned int drain(Event *de) { return queue.drain(de); }
139};
140
141#endif // __MEM_QPORT_HH__
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
--- 70 unchanged lines hidden (view full) ---
79 */
80 QueuedSlavePort(const std::string& name, MemObject* owner,
81 SlavePacketQueue &queue) :
82 SlavePort(name, owner), queue(queue)
83 { }
84
85 virtual ~QueuedSlavePort() { }
86
87 /** Check the list of buffered packets against the supplied
88 * functional request. */
89 bool checkFunctional(PacketPtr pkt) { return queue.checkFunctional(pkt); }
90
91 /**
92 * Hook for draining the queued port.
93 *
94 * @param de an event which is used to signal back to the caller
--- 25 unchanged lines hidden (view full) ---
120 */
121 QueuedMasterPort(const std::string& name, MemObject* owner,
122 MasterPacketQueue &queue) :
123 MasterPort(name, owner), queue(queue)
124 { }
125
126 virtual ~QueuedMasterPort() { }
127
128 /** Check the list of buffered packets against the supplied
129 * functional request. */
130 bool checkFunctional(PacketPtr pkt) { return queue.checkFunctional(pkt); }
131
132 /**
133 * Hook for draining the queued port.
134 *
135 * @param de an event which is used to signal back to the caller
136 * @returns a number indicating how many times process will be called
137 */
138 unsigned int drain(Event *de) { return queue.drain(de); }
139};
140
141#endif // __MEM_QPORT_HH__