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/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 */ |
64class EtherLink : public SimObject |
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 |
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__ |