diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-08-18 19:41:08 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-08-18 19:41:08 -0700 |
commit | a874cb40ab9f22612b0609cbac2c739daebacbd5 (patch) | |
tree | 551e5aadc93be0ba3013e2b33272d08c78da01f9 /src/dev/etherint.hh | |
parent | 4bce50340f8fc1e1e0361cef1971dd127125d5a5 (diff) | |
parent | 464a51e29e858d6dc38847120868b36e97c8bb6d (diff) | |
download | gem5-a874cb40ab9f22612b0609cbac2c739daebacbd5.tar.xz |
Merge with head.
--HG--
extra : convert_revision : 6ce77b5bd4f43ddecd51ea8c66759e4b70d4ad82
Diffstat (limited to 'src/dev/etherint.hh')
-rw-r--r-- | src/dev/etherint.hh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/dev/etherint.hh b/src/dev/etherint.hh index 430f45d66..98b820dbf 100644 --- a/src/dev/etherint.hh +++ b/src/dev/etherint.hh @@ -39,23 +39,28 @@ #include <string> #include "dev/etherpkt.hh" -#include "sim/sim_object.hh" /* * Class representing the actual interface between two ethernet * components. These components are intended to attach to another * ethernet interface on one side and whatever device on the other. */ -class EtherInt : public SimObject +class EtherInt { protected: + mutable std::string portName; EtherInt *peer; public: - EtherInt(const std::string &name) : SimObject(name), peer(NULL) {} + EtherInt(const std::string &name) + : portName(name), peer(NULL) {} virtual ~EtherInt() {} + /** Return port name (for DPRINTF). */ + const std::string &name() const { return portName; } + void setPeer(EtherInt *p); + EtherInt* getPeer() { return peer; } void recvDone() { peer->sendDone(); } virtual void sendDone() = 0; |