tport.hh (4492:75dabb0392ee) | tport.hh (4666:5d110d024fcf) |
---|---|
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; --- 91 unchanged lines hidden (view full) --- 100 /** Check the list of buffered packets against the supplied 101 * functional request. */ 102 void checkFunctional(PacketPtr funcPkt); 103 104 /** Check whether we have a packet ready to go on the transmit list. */ 105 bool deferredPacketReady() 106 { return !transmitList.empty() && transmitList.front().tick <= curTick; } 107 | 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; --- 91 unchanged lines hidden (view full) --- 100 /** Check the list of buffered packets against the supplied 101 * functional request. */ 102 void checkFunctional(PacketPtr funcPkt); 103 104 /** Check whether we have a packet ready to go on the transmit list. */ 105 bool deferredPacketReady() 106 { return !transmitList.empty() && transmitList.front().tick <= curTick; } 107 |
108 Tick deferredPacketReadyTick() 109 { return transmitList.empty() ? MaxTick : transmitList.front().tick; } 110 111 void schedSendEvent(Tick when) 112 { 113 if (waitingOnRetry) { 114 assert(!sendEvent->scheduled()); 115 return; 116 } 117 118 if (!sendEvent->scheduled()) { 119 sendEvent->schedule(when); 120 } else if (sendEvent->when() > when) { 121 sendEvent->reschedule(when); 122 } 123 } 124 125 |
|
108 /** Schedule a sendTiming() event to be called in the future. 109 * @param pkt packet to send 110 * @param absolute time (in ticks) to send packet 111 */ 112 void schedSendTiming(PacketPtr pkt, Tick when); 113 114 /** Attempt to send the packet at the head of the deferred packet 115 * list. Caller must guarantee that the deferred packet list is --- 53 unchanged lines hidden --- | 126 /** Schedule a sendTiming() event to be called in the future. 127 * @param pkt packet to send 128 * @param absolute time (in ticks) to send packet 129 */ 130 void schedSendTiming(PacketPtr pkt, Tick when); 131 132 /** Attempt to send the packet at the head of the deferred packet 133 * list. Caller must guarantee that the deferred packet list is --- 53 unchanged lines hidden --- |