X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fns_gige.hh;h=a8d8d1f18dac194b06cd0f2220b019038b770471;hb=7c2084dcfe7b7b2133a6c0055e52fab745550f81;hp=25a7781e5ae624deac96b775dcb57321be69910f;hpb=bfcb0882813272bc8ef74b98ed53e28a36147bb8;p=gem5.git diff --git a/dev/ns_gige.hh b/dev/ns_gige.hh index 25a7781e5..a8d8d1f18 100644 --- a/dev/ns_gige.hh +++ b/dev/ns_gige.hh @@ -159,10 +159,10 @@ class NSGigE : public PciDev dp_rom rom; /** pci settings */ - bool io_enable; + bool ioEnable; #if 0 - bool mem_enable; - bool bm_enable; + bool memEnable; + bool bmEnable; #endif /*** BASIC STRUCTURES FOR TX/RX ***/ @@ -177,7 +177,6 @@ class NSGigE : public PciDev uint8_t *rxPacketBufPtr; uint32_t txXferLen; uint32_t rxXferLen; - uint32_t txPktXmitted; bool rxDmaFree; bool txDmaFree; @@ -189,8 +188,6 @@ class NSGigE : public PciDev TxState txState; /** Current Transmit Descriptor Done */ bool CTDD; - /** amt of data in the txDataFifo in bytes (logical) */ - uint32_t txFifoCnt; /** current amt of free space in txDataFifo in bytes */ uint32_t txFifoAvail; /** halt the tx state machine after next packet */ @@ -369,6 +366,14 @@ class NSGigE : public PciDev Stats::Scalar<> rxBytes; Stats::Scalar<> txPackets; Stats::Scalar<> rxPackets; + Stats::Scalar<> txIPChecksums; + Stats::Scalar<> rxIPChecksums; + Stats::Scalar<> txTCPChecksums; + Stats::Scalar<> rxTCPChecksums; + Stats::Scalar<> descDmaReads; + Stats::Scalar<> descDmaWrites; + Stats::Scalar<> descDmaRdBytes; + Stats::Scalar<> descDmaWrBytes; Stats::Formula txBandwidth; Stats::Formula rxBandwidth; Stats::Formula txPacketRate;