gem5
|
#include <etherint.hh>
Public Member Functions | |
EtherInt (const std::string &name) | |
virtual | ~EtherInt () |
const std::string & | name () const |
Return port name (for DPRINTF). More... | |
void | setPeer (EtherInt *p) |
EtherInt * | getPeer () |
void | recvDone () |
virtual void | sendDone ()=0 |
bool | sendPacket (EthPacketPtr packet) |
virtual bool | recvPacket (EthPacketPtr packet)=0 |
bool | askBusy () |
virtual bool | isBusy () |
Protected Attributes | |
std::string | portName |
EtherInt * | peer |
Definition at line 48 of file etherint.hh.
|
inline |
Definition at line 55 of file etherint.hh.
|
inlinevirtual |
Definition at line 57 of file etherint.hh.
|
inline |
Definition at line 72 of file etherint.hh.
|
inline |
Definition at line 63 of file etherint.hh.
References peer.
Referenced by EtherTapBase::getEthPort(), EtherLink::getEthPort(), DistEtherLink::getEthPort(), Sinic::Device::getEthPort(), NSGigE::getEthPort(), and IGbE::getEthPort().
|
inlinevirtual |
Reimplemented in DistEtherLink::LocalIface, and EtherLink::Interface.
Definition at line 73 of file etherint.hh.
Referenced by askBusy().
|
inline |
Return port name (for DPRINTF).
Definition at line 60 of file etherint.hh.
References portName.
Referenced by EtherSwitch::Interface::learnSenderAddr(), EtherSwitch::Interface::recvPacket(), and setPeer().
|
inline |
Definition at line 65 of file etherint.hh.
References peer, and sendDone().
Referenced by EtherTapBase::recvSimulated().
|
pure virtual |
Implemented in IGbEInt, NSGigEInt, Sinic::Interface, DistEtherLink::LocalIface, EtherLink::Interface, EtherTapInt, and EtherSwitch::Interface.
Referenced by sendPacket().
|
pure virtual |
Implemented in IGbEInt, NSGigEInt, Sinic::Interface, DistEtherLink::LocalIface, EtherLink::Interface, EtherTapInt, and EtherSwitch::Interface.
Referenced by recvDone(), EtherLink::Interface::sendDone(), DistEtherLink::LocalIface::sendDone(), and EtherBus::txDone().
|
inline |
Definition at line 68 of file etherint.hh.
References peer, and recvPacket().
Referenced by EtherTapBase::retransmit(), DistEtherLink::RxLink::rxDone(), EtherTapBase::sendSimulated(), Sinic::Device::transmit(), NSGigE::transmit(), and IGbE::txWire().
void EtherInt::setPeer | ( | EtherInt * | p | ) |
Definition at line 37 of file etherint.cc.
References name(), MipsISA::p, panic, and peer.
Referenced by connectPorts().
|
protected |
Definition at line 52 of file etherint.hh.
Referenced by askBusy(), getPeer(), recvDone(), EtherLink::Interface::sendDone(), DistEtherLink::LocalIface::sendDone(), sendPacket(), and setPeer().
|
mutableprotected |
Definition at line 51 of file etherint.hh.
Referenced by name().