tport.hh (5740:983b71bfc1bd) tport.hh (7823:dac01f14f20f)
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;

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

95 bool waitingOnRetry;
96
97 /** Check the list of buffered packets against the supplied
98 * functional request. */
99 bool checkFunctional(PacketPtr funcPkt);
100
101 /** Check whether we have a packet ready to go on the transmit list. */
102 bool deferredPacketReady()
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;

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

95 bool waitingOnRetry;
96
97 /** Check the list of buffered packets against the supplied
98 * functional request. */
99 bool checkFunctional(PacketPtr funcPkt);
100
101 /** Check whether we have a packet ready to go on the transmit list. */
102 bool deferredPacketReady()
103 { return !transmitList.empty() && transmitList.front().tick <= curTick; }
103 { return !transmitList.empty() && transmitList.front().tick <= curTick(); }
104
105 Tick deferredPacketReadyTime()
106 { return transmitList.empty() ? MaxTick : transmitList.front().tick; }
107
108 void
109 schedSendEvent(Tick when)
110 {
111 if (waitingOnRetry) {

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

124 /** Schedule a sendTiming() event to be called in the future.
125 * @param pkt packet to send
126 * @param absolute time (in ticks) to send packet
127 */
128 void schedSendTiming(PacketPtr pkt, Tick when);
129
130 /** Attempt to send the packet at the head of the deferred packet
131 * list. Caller must guarantee that the deferred packet list is
104
105 Tick deferredPacketReadyTime()
106 { return transmitList.empty() ? MaxTick : transmitList.front().tick; }
107
108 void
109 schedSendEvent(Tick when)
110 {
111 if (waitingOnRetry) {

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

124 /** Schedule a sendTiming() event to be called in the future.
125 * @param pkt packet to send
126 * @param absolute time (in ticks) to send packet
127 */
128 void schedSendTiming(PacketPtr pkt, Tick when);
129
130 /** Attempt to send the packet at the head of the deferred packet
131 * list. Caller must guarantee that the deferred packet list is
132 * non-empty and that the head packet is scheduled for curTick (or
132 * non-empty and that the head packet is scheduled for curTick() (or
133 * earlier).
134 */
135 void sendDeferredPacket();
136
137 /** This function is notification that the device should attempt to send a
138 * packet again. */
139 virtual void recvRetry();
140

--- 37 unchanged lines hidden ---
133 * earlier).
134 */
135 void sendDeferredPacket();
136
137 /** This function is notification that the device should attempt to send a
138 * packet again. */
139 virtual void recvRetry();
140

--- 37 unchanged lines hidden ---