summaryrefslogtreecommitdiff
path: root/src/dev/i8254xGBe.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2008-05-20 16:06:56 -0400
committerAli Saidi <saidi@eecs.umich.edu>2008-05-20 16:06:56 -0400
commitf5e36d156dc33a6c01c69c19efc2b5b0450496f6 (patch)
tree2eb6c0cf165e32a6f56706a7cf2ae14230495c5b /src/dev/i8254xGBe.hh
parentb7af65f414d34cb6b3817bc748fd053f505b0fea (diff)
downloadgem5-f5e36d156dc33a6c01c69c19efc2b5b0450496f6.tar.xz
IGbE: Implement sending packet that is contained in more than 2 descriptors.
--HG-- extra : convert_revision : 8fb7d5fad5cb840f69c31aa8b331dbe09e46ee9d
Diffstat (limited to 'src/dev/i8254xGBe.hh')
-rw-r--r--src/dev/i8254xGBe.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dev/i8254xGBe.hh b/src/dev/i8254xGBe.hh
index 9403c87b6..0daf094c1 100644
--- a/src/dev/i8254xGBe.hh
+++ b/src/dev/i8254xGBe.hh
@@ -564,6 +564,7 @@ class IGbE : public EtherDevice
bool pktDone;
bool isTcp;
bool pktWaiting;
+ bool pktMultiDesc;
public:
TxDescCache(IGbE *i, std::string n, int s);
@@ -586,6 +587,14 @@ class IGbE : public EtherDevice
*/
bool packetWaiting() { return pktWaiting; }
+ /** Ask if this packet is composed of multiple descriptors
+ * so even if we've got data, we need to wait for more before
+ * we can send it out.
+ * @return packet can't be sent out because it's a multi-descriptor
+ * packet
+ */
+ bool packetMultiDesc() { return pktMultiDesc;}
+
/** Called by event when dma to write packet is completed
*/
void pktComplete();