|
gem5 [DEVELOP-FOR-25.0]
|
#include <pktfifo.hh>
Public Types | |
| typedef std::list< PacketFifoEntry > | fifo_list |
| typedef fifo_list::iterator | iterator |
| typedef fifo_list::const_iterator | const_iterator |
Public Member Functions | |
| PacketFifo (int max) | |
| virtual | ~PacketFifo () |
| unsigned | packets () const |
| unsigned | maxsize () const |
| unsigned | size () const |
| unsigned | reserved () const |
| unsigned | avail () const |
| bool | empty () const |
| bool | full () const |
| unsigned | reserve (unsigned len=0) |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| EthPacketPtr | front () |
| bool | push (EthPacketPtr ptr) |
| void | pop () |
| void | clear () |
| void | remove (iterator i) |
| bool | copyout (void *dest, unsigned offset, unsigned len) |
| int | countPacketsBefore (const_iterator i) const |
| int | countPacketsAfter (const_iterator i) const |
| void | check () const |
| void | serialize (const std::string &base, CheckpointOut &cp) const |
| Serialization stuff. | |
| void | unserialize (const std::string &base, CheckpointIn &cp) |
Protected Attributes | |
| std::list< PacketFifoEntry > | fifo |
| uint64_t | _counter |
| unsigned | _maxsize |
| unsigned | _size |
| unsigned | _reserved |
Definition at line 80 of file pktfifo.hh.
| typedef fifo_list::const_iterator gem5::PacketFifo::const_iterator |
Definition at line 86 of file pktfifo.hh.
Definition at line 84 of file pktfifo.hh.
| typedef fifo_list::iterator gem5::PacketFifo::iterator |
Definition at line 85 of file pktfifo.hh.
|
inlineexplicit |
|
inlinevirtual |
Definition at line 98 of file pktfifo.hh.
|
inline |
|
inline |
|
inline |
Definition at line 119 of file pktfifo.hh.
References fifo.
|
inline |
Definition at line 203 of file pktfifo.hh.
References _size, begin(), end(), gem5::ArmISA::i, panic, and gem5::statistics::total.
|
inline |
Definition at line 156 of file pktfifo.hh.
References _reserved, _size, begin(), end(), fifo, and gem5::ArmISA::i.
| bool gem5::PacketFifo::copyout | ( | void * | dest, |
| unsigned | offset, | ||
| unsigned | len ) |
Definition at line 37 of file pktfifo.cc.
References data, end(), fifo, gem5::ArmISA::i, gem5::ArmISA::len, gem5::ArmISA::offset, panic, and size().
|
inline |
Definition at line 194 of file pktfifo.hh.
References end(), fifo, and gem5::ArmISA::i.
|
inline |
Definition at line 186 of file pktfifo.hh.
References fifo, and gem5::ArmISA::i.
|
inline |
|
inline |
Definition at line 117 of file pktfifo.hh.
References fifo.
Referenced by check(), clear(), copyout(), and countPacketsAfter().
|
inline |
Definition at line 120 of file pktfifo.hh.
References fifo.
|
inline |
Definition at line 122 of file pktfifo.hh.
References fifo.
|
inline |
Definition at line 106 of file pktfifo.hh.
References avail().
|
inline |
Definition at line 101 of file pktfifo.hh.
References _maxsize.
|
inline |
Definition at line 100 of file pktfifo.hh.
References fifo.
|
inline |
Definition at line 143 of file pktfifo.hh.
|
inline |
Definition at line 125 of file pktfifo.hh.
References _counter, _reserved, _size, avail(), fifo, gem5::PacketFifoEntry::number, and gem5::PacketFifoEntry::packet.
|
inline |
Definition at line 166 of file pktfifo.hh.
References _size, fifo, and gem5::ArmISA::i.
|
inline |
Definition at line 109 of file pktfifo.hh.
References _reserved, avail(), and gem5::ArmISA::len.
|
inline |
Definition at line 103 of file pktfifo.hh.
References _reserved.
| void gem5::PacketFifo::serialize | ( | const std::string & | base, |
| CheckpointOut & | cp ) const |
Serialization stuff.
Definition at line 87 of file pktfifo.cc.
References _maxsize, _reserved, _size, gem5::RiscvISA::base, gem5::csprintf(), fifo, gem5::ArmISA::i, and gem5::paramOut().
|
inline |
| void gem5::PacketFifo::unserialize | ( | const std::string & | base, |
| CheckpointIn & | cp ) |
Definition at line 100 of file pktfifo.cc.
References _reserved, _size, gem5::RiscvISA::base, gem5::csprintf(), fifo, gem5::ArmISA::i, gem5::paramIn(), and gem5::PacketFifoEntry::unserialize().
|
protected |
Definition at line 90 of file pktfifo.hh.
Referenced by PacketFifo(), and push().
|
protected |
Definition at line 91 of file pktfifo.hh.
Referenced by avail(), maxsize(), PacketFifo(), and serialize().
|
protected |
Definition at line 93 of file pktfifo.hh.
Referenced by avail(), clear(), PacketFifo(), push(), reserve(), reserved(), serialize(), and unserialize().
|
protected |
Definition at line 92 of file pktfifo.hh.
Referenced by avail(), check(), clear(), PacketFifo(), pop(), push(), remove(), serialize(), size(), and unserialize().
|
protected |
Definition at line 89 of file pktfifo.hh.
Referenced by begin(), begin(), clear(), copyout(), countPacketsAfter(), countPacketsBefore(), end(), end(), front(), packets(), pop(), push(), remove(), serialize(), and unserialize().