gem5  v21.1.0.2
etherdevice.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007 The Regents of The University of Michigan
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met: redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
34 #ifndef __DEV_NET_ETHERDEVICE_HH__
35 #define __DEV_NET_ETHERDEVICE_HH__
36 
37 #include "base/statistics.hh"
38 #include "dev/pci/device.hh"
39 #include "params/EtherDevBase.hh"
40 #include "params/EtherDevice.hh"
41 #include "sim/sim_object.hh"
42 
43 namespace gem5
44 {
45 
46 class EtherInt;
47 
48 class EtherDevice : public PciDevice
49 {
50  public:
51  using Params = EtherDeviceParams;
53  : PciDevice(params),
54  etherDeviceStats(this)
55  {}
56 
57  protected:
59  {
61 
63 
66 
69 
72 
75 
78 
81 
84 
87 
92 
95 
99 
103 
107 
111 
115 
119 
123 
127 
131 };
132 
143 class EtherDevBase : public EtherDevice
144 {
145  public:
146  using Params = EtherDevBaseParams;
149  {}
150 };
151 
152 } // namespace gem5
153 
154 #endif // __DEV_NET_ETHERDEVICE_HH__
gem5::statistics::Scalar
This is a simple scalar statistic, like a counter.
Definition: statistics.hh:1927
gem5::EtherDevBase
Dummy class to keep the Python class hierarchy in sync with the C++ object hierarchy.
Definition: etherdevice.hh:143
gem5::EtherDevBase::EtherDevBase
EtherDevBase(const Params &params)
Definition: etherdevice.hh:147
gem5::EtherDevice::EtherDeviceStats::totalSwi
statistics::Scalar totalSwi
Definition: etherdevice.hh:97
gem5::EtherDevice::EtherDeviceStats::txBandwidth
statistics::Formula txBandwidth
Definition: etherdevice.hh:70
gem5::EtherDevice::EtherDeviceStats::postedRxOrn
statistics::Scalar postedRxOrn
Definition: etherdevice.hh:124
gem5::EtherDevice::EtherDeviceStats::totalRxDesc
statistics::Scalar totalRxDesc
Definition: etherdevice.hh:109
gem5::EtherDevice::EtherDeviceStats::coalescedSwi
statistics::Formula coalescedSwi
Definition: etherdevice.hh:98
gem5::EtherDevice::EtherDeviceStats::descDmaWrBytes
statistics::Scalar descDmaWrBytes
Definition: etherdevice.hh:86
gem5::EtherDevice::EtherDeviceStats
Definition: etherdevice.hh:58
gem5::EtherDevice::EtherDeviceStats::totPacketRate
statistics::Formula totPacketRate
Definition: etherdevice.hh:91
gem5::EtherDevice::EtherDeviceStats::rxBandwidth
statistics::Formula rxBandwidth
Definition: etherdevice.hh:71
gem5::EtherDevice::EtherDeviceStats::postedRxOk
statistics::Scalar postedRxOk
Definition: etherdevice.hh:104
gem5::statistics::Formula
A formula for statistics that is calculated when printed.
Definition: statistics.hh:2536
gem5::EtherDevice::EtherDeviceStats::postedRxDesc
statistics::Scalar postedRxDesc
Definition: etherdevice.hh:108
gem5::EtherDevice::EtherDeviceStats::txUdpChecksums
statistics::Scalar txUdpChecksums
Definition: etherdevice.hh:79
gem5::EtherDevice
Definition: etherdevice.hh:48
gem5::EtherDevice::EtherDeviceStats::txPacketRate
statistics::Formula txPacketRate
Definition: etherdevice.hh:93
gem5::EtherDevice::EtherDeviceStats::totalTxIdle
statistics::Scalar totalTxIdle
Definition: etherdevice.hh:117
device.hh
gem5::EtherDevice::EtherDeviceStats::totalTxDesc
statistics::Scalar totalTxDesc
Definition: etherdevice.hh:121
gem5::EtherDevice::EtherDeviceStats::postedTxDesc
statistics::Scalar postedTxDesc
Definition: etherdevice.hh:120
gem5::EtherDevice::EtherDeviceStats::coalescedRxOk
statistics::Formula coalescedRxOk
Definition: etherdevice.hh:106
gem5::EtherDevice::EtherDeviceStats::txPackets
statistics::Scalar txPackets
Definition: etherdevice.hh:67
gem5::EtherDevice::EtherDeviceStats::postedInterrupts
statistics::Scalar postedInterrupts
Definition: etherdevice.hh:62
gem5::EtherDevice::EtherDeviceStats::descDmaWrites
statistics::Scalar descDmaWrites
Definition: etherdevice.hh:83
gem5::EtherDevice::EtherDeviceStats::txTcpChecksums
statistics::Scalar txTcpChecksums
Definition: etherdevice.hh:76
gem5::EtherDevice::EtherDeviceStats::totalRxOrn
statistics::Scalar totalRxOrn
Definition: etherdevice.hh:125
gem5::EtherDevice::EtherDeviceStats::rxPacketRate
statistics::Formula rxPacketRate
Definition: etherdevice.hh:94
gem5::EtherDevice::EtherDeviceStats::coalescedTxIdle
statistics::Formula coalescedTxIdle
Definition: etherdevice.hh:118
gem5::SimObject::params
const Params & params() const
Definition: sim_object.hh:176
sim_object.hh
gem5::EtherDevice::EtherDeviceStats::totalRxIdle
statistics::Scalar totalRxIdle
Definition: etherdevice.hh:101
gem5::EtherDevice::EtherDeviceStats::totalRxOk
statistics::Scalar totalRxOk
Definition: etherdevice.hh:105
gem5::EtherDevice::EtherDevice
EtherDevice(const Params &params)
Definition: etherdevice.hh:52
gem5::EtherDevice::etherDeviceStats
gem5::EtherDevice::EtherDeviceStats etherDeviceStats
statistics.hh
gem5::EtherDevice::EtherDeviceStats::totBandwidth
statistics::Formula totBandwidth
Definition: etherdevice.hh:88
gem5::EtherDevice::EtherDeviceStats::rxIpChecksums
statistics::Scalar rxIpChecksums
Definition: etherdevice.hh:74
gem5::PciDevice
PCI device, base implementation is only config space.
Definition: device.hh:269
gem5::DmaDevice::Params
DmaDeviceParams Params
Definition: dma_device.hh:209
gem5::EtherDevice::EtherDeviceStats::rxUdpChecksums
statistics::Scalar rxUdpChecksums
Definition: etherdevice.hh:80
gem5::EtherDevice::EtherDeviceStats::rxBytes
statistics::Scalar rxBytes
Definition: etherdevice.hh:65
gem5::EtherDevice::EtherDeviceStats::totBytes
statistics::Formula totBytes
Definition: etherdevice.hh:90
gem5::EtherDevice::EtherDeviceStats::descDmaReads
statistics::Scalar descDmaReads
Definition: etherdevice.hh:82
gem5::EtherDevice::EtherDeviceStats::coalescedRxIdle
statistics::Formula coalescedRxIdle
Definition: etherdevice.hh:102
gem5::EtherDevice::EtherDeviceStats::coalescedTotal
statistics::Formula coalescedTotal
Definition: etherdevice.hh:128
gem5::EtherDevice::EtherDeviceStats::coalescedRxDesc
statistics::Formula coalescedRxDesc
Definition: etherdevice.hh:110
gem5::EtherDevice::EtherDeviceStats::postedTxOk
statistics::Scalar postedTxOk
Definition: etherdevice.hh:112
gem5::EtherDevice::EtherDeviceStats::totPackets
statistics::Formula totPackets
Definition: etherdevice.hh:89
gem5::EtherDevice::EtherDeviceStats::coalescedTxOk
statistics::Formula coalescedTxOk
Definition: etherdevice.hh:114
gem5::EtherDevice::EtherDeviceStats::rxPackets
statistics::Scalar rxPackets
Definition: etherdevice.hh:68
gem5::EtherDevice::EtherDeviceStats::postedTxIdle
statistics::Scalar postedTxIdle
Definition: etherdevice.hh:116
gem5::EtherDevice::EtherDeviceStats::postedSwi
statistics::Scalar postedSwi
Definition: etherdevice.hh:96
gem5::EtherDevice::EtherDeviceStats::txBytes
statistics::Scalar txBytes
Definition: etherdevice.hh:64
gem5::statistics::Group
Statistics container.
Definition: group.hh:93
gem5::EtherDevice::EtherDeviceStats::coalescedRxOrn
statistics::Formula coalescedRxOrn
Definition: etherdevice.hh:126
gem5::EtherDevice::EtherDeviceStats::rxTcpChecksums
statistics::Scalar rxTcpChecksums
Definition: etherdevice.hh:77
gem5::EtherDevice::EtherDeviceStats::totalTxOk
statistics::Scalar totalTxOk
Definition: etherdevice.hh:113
gem5::EtherDevice::EtherDeviceStats::EtherDeviceStats
EtherDeviceStats(statistics::Group *parent)
Definition: etherdevice.cc:36
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: decoder.cc:40
gem5::EtherDevice::EtherDeviceStats::postedRxIdle
statistics::Scalar postedRxIdle
Definition: etherdevice.hh:100
gem5::EtherDevice::EtherDeviceStats::droppedPackets
statistics::Scalar droppedPackets
Definition: etherdevice.hh:129
gem5::EtherDevice::EtherDeviceStats::coalescedTxDesc
statistics::Formula coalescedTxDesc
Definition: etherdevice.hh:122
gem5::EtherDevice::EtherDeviceStats::descDmaRdBytes
statistics::Scalar descDmaRdBytes
Definition: etherdevice.hh:85
gem5::EtherDevice::EtherDeviceStats::txIpChecksums
statistics::Scalar txIpChecksums
Definition: etherdevice.hh:73

Generated on Tue Sep 21 2021 12:25:17 for gem5 by doxygen 1.8.17