diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-04-30 13:09:13 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-04-30 13:09:13 -0400 |
commit | ae4208f3a32bc829283a9998aa6f6fcebea7ca77 (patch) | |
tree | 747c85acab75e003361492cb1656c8e89b189c06 /src/dev/etherint.hh | |
parent | 6e60d5c12f6cb8043657fd28638a81ce215dd92b (diff) | |
download | gem5-ae4208f3a32bc829283a9998aa6f6fcebea7ca77.tar.xz |
add the ability for the ethernet device to check if the link is busy
--HG--
extra : convert_revision : 0dc0c4c4546869261f4508ad22a6a85aecf3c334
Diffstat (limited to 'src/dev/etherint.hh')
-rw-r--r-- | src/dev/etherint.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dev/etherint.hh b/src/dev/etherint.hh index dfc224ecc..430f45d66 100644 --- a/src/dev/etherint.hh +++ b/src/dev/etherint.hh @@ -63,6 +63,9 @@ class EtherInt : public SimObject bool sendPacket(EthPacketPtr packet) { return peer ? peer->recvPacket(packet) : true; } virtual bool recvPacket(EthPacketPtr packet) = 0; + + bool askBusy() {return peer->isBusy(); } + virtual bool isBusy() { return false; } }; #endif // __DEV_ETHERINT_HH__ |