etherlink.hh (13766:4ecebdee8da4) etherlink.hh (13784:1941dc118243)
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 37 unchanged lines hidden (view full) ---

46
47#ifndef __DEV_NET_ETHERLINK_HH__
48#define __DEV_NET_ETHERLINK_HH__
49
50#include <queue>
51
52#include "base/types.hh"
53#include "dev/net/etherint.hh"
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 37 unchanged lines hidden (view full) ---

46
47#ifndef __DEV_NET_ETHERLINK_HH__
48#define __DEV_NET_ETHERLINK_HH__
49
50#include <queue>
51
52#include "base/types.hh"
53#include "dev/net/etherint.hh"
54#include "dev/net/etherobject.hh"
55#include "dev/net/etherpkt.hh"
56#include "params/EtherLink.hh"
57#include "sim/eventq.hh"
58#include "sim/sim_object.hh"
59
60class EtherDump;
61class Checkpoint;
62/*
63 * Model for a fixed bandwidth full duplex ethernet link
64 */
54#include "dev/net/etherpkt.hh"
55#include "params/EtherLink.hh"
56#include "sim/eventq.hh"
57#include "sim/sim_object.hh"
58
59class EtherDump;
60class Checkpoint;
61/*
62 * Model for a fixed bandwidth full duplex ethernet link
63 */
65class EtherLink : public EtherObject, public SimObject
64class EtherLink : public SimObject
66{
67 protected:
68 class Interface;
69
70 /*
71 * Model for a single uni-directional link
72 */
73 class Link

--- 73 unchanged lines hidden (view full) ---

147 virtual ~EtherLink();
148
149 const Params *
150 params() const
151 {
152 return dynamic_cast<const Params *>(_params);
153 }
154
65{
66 protected:
67 class Interface;
68
69 /*
70 * Model for a single uni-directional link
71 */
72 class Link

--- 73 unchanged lines hidden (view full) ---

146 virtual ~EtherLink();
147
148 const Params *
149 params() const
150 {
151 return dynamic_cast<const Params *>(_params);
152 }
153
155 EtherInt *getEthPort(const std::string &if_name, int idx) override;
154 Port &getPort(const std::string &if_name,
155 PortID idx=InvalidPortID) override;
156
157 void serialize(CheckpointOut &cp) const override;
158 void unserialize(CheckpointIn &cp) override;
159
160};
161
162#endif // __DEV_NET_ETHERLINK_HH__
156
157 void serialize(CheckpointOut &cp) const override;
158 void unserialize(CheckpointIn &cp) override;
159
160};
161
162#endif // __DEV_NET_ETHERLINK_HH__