Go to the documentation of this file.
45 #ifndef __DEV_NET_ETHERLINK_HH__
46 #define __DEV_NET_ETHERLINK_HH__
53 #include "params/EtherLink.hh"
160 #endif // __DEV_NET_ETHERLINK_HH__
void unserialize(const std::string &base, CheckpointIn &cp)
virtual void sendDone()=0
void unserialize(CheckpointIn &cp) override
Unserialize an object.
EventFunctionWrapper txQueueEvent
Interface(const std::string &name, Link *txlink, Link *rxlink)
const PortID InvalidPortID
const Params * params() const
std::deque< std::pair< Tick, EthPacketPtr > > txQueue
Maintain a queue of in-flight packets.
const std::string objName
uint64_t Tick
Tick count type.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
EventFunctionWrapper doneEvent
Link(const std::string &name, EtherLink *p, int num, double rate, Tick delay, Tick delay_var, EtherDump *dump)
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
const std::string name() const
Ports are used to interface objects to each other.
bool recvPacket(EthPacketPtr packet)
std::shared_ptr< EthPacketData > EthPacketPtr
const std::string & name() const
Return port name (for DPRINTF).
const SimObjectParams * _params
Cached copy of the object parameters.
bool transmit(EthPacketPtr packet)
const double ticksPerByte
std::ostream CheckpointOut
void setRxInt(Interface *i)
void setTxInt(Interface *i)
void serialize(CheckpointOut &cp) const override
Serialize an object.
void serialize(const std::string &base, CheckpointOut &cp) const
void txComplete(EthPacketPtr packet)
EtherLink(const Params *p)
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17