1/* 2 * Copyright (c) 2015 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 --- 78 unchanged lines hidden (view full) --- 87 EtherDump *const dump; 88 89 protected: 90 /* 91 * Transfer is complete 92 */ 93 EthPacketPtr packet; 94 void txDone(); |
95 EventFunctionWrapper doneEvent; |
96 97 /** 98 * Maintain a queue of in-flight packets. Assume that the 99 * delay is non-zero and constant (i.e., at most one packet 100 * per tick). 101 */ 102 std::deque<std::pair<Tick, EthPacketPtr>> txQueue; 103 104 void processTxQueue(); |
105 EventFunctionWrapper txQueueEvent; |
106 107 void txComplete(EthPacketPtr packet); 108 109 public: 110 Link(const std::string &name, EtherLink *p, int num, 111 double rate, Tick delay, Tick delay_var, EtherDump *dump); 112 ~Link() {} 113 --- 49 unchanged lines hidden --- |