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/sinic.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/sinic.hh')
-rw-r--r-- | src/dev/sinic.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dev/sinic.hh b/src/dev/sinic.hh index ab5d0d258..469b28191 100644 --- a/src/dev/sinic.hh +++ b/src/dev/sinic.hh @@ -40,7 +40,6 @@ #include "dev/pktfifo.hh" #include "dev/sinicreg.hh" #include "params/Sinic.hh" -#include "params/SinicInt.hh" #include "sim/eventq.hh" namespace Sinic { @@ -84,7 +83,7 @@ class Base : public PciDev public: typedef SinicParams Params; const Params *params() const { return (const Params *)_params; } - Base(Params *p); + Base(const Params *p); }; class Device : public Base @@ -231,7 +230,7 @@ class Device : public Base public: bool recvPacket(EthPacketPtr packet); void transferDone(); - void setInterface(Interface *i) { assert(!interface); interface = i; } + virtual EtherInt *getEthPort(const std::string &if_name, int idx); /** * DMA parameters @@ -312,7 +311,7 @@ class Device : public Base virtual void unserialize(Checkpoint *cp, const std::string §ion); public: - Device(Params *p); + Device(const Params *p); ~Device(); }; @@ -326,7 +325,8 @@ class Interface : public EtherInt public: Interface(const std::string &name, Device *d) - : EtherInt(name), dev(d) { dev->setInterface(this); } + : EtherInt(name), dev(d) + { } virtual bool recvPacket(EthPacketPtr pkt) { return dev->recvPacket(pkt); } virtual void sendDone() { dev->transferDone(); } |