summaryrefslogtreecommitdiff
path: root/src/dev/copy_engine.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2009-02-26 19:29:17 -0500
committerAli Saidi <saidi@eecs.umich.edu>2009-02-26 19:29:17 -0500
commitbebbc9dc8901d82954988d019d54bf5dee2d1a90 (patch)
tree54e552c9ab15e3fa204dd3674e49a08dda801466 /src/dev/copy_engine.hh
parentd447ccb2c61a9225e5663ac29c999ac0a52a412f (diff)
downloadgem5-bebbc9dc8901d82954988d019d54bf5dee2d1a90.tar.xz
CPA: Add annotations to IGbE and CopyEngine device models.
Diffstat (limited to 'src/dev/copy_engine.hh')
-rw-r--r--src/dev/copy_engine.hh30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/dev/copy_engine.hh b/src/dev/copy_engine.hh
index 475c0a5bf..12531f68c 100644
--- a/src/dev/copy_engine.hh
+++ b/src/dev/copy_engine.hh
@@ -130,6 +130,36 @@ class CopyEngine : public PciDev
void recvCommand();
bool inDrain();
void restartStateMachine();
+ inline void anBegin(const char *s)
+ {
+ CPA::cpa()->hwBegin(CPA::FL_NONE, ce->sys,
+ channelId, "CopyEngine", s);
+ }
+
+ inline void anWait()
+ {
+ CPA::cpa()->hwWe(CPA::FL_NONE, ce->sys,
+ channelId, "CopyEngine", "DMAUnusedDescQ", channelId);
+ }
+
+ inline void anDq()
+ {
+ CPA::cpa()->hwDq(CPA::FL_NONE, ce->sys,
+ channelId, "CopyEngine", "DMAUnusedDescQ", channelId);
+ }
+
+ inline void anPq()
+ {
+ CPA::cpa()->hwDq(CPA::FL_NONE, ce->sys,
+ channelId, "CopyEngine", "DMAUnusedDescQ", channelId);
+ }
+
+ inline void anQ(const char * s, uint64_t id, int size = 1)
+ {
+ CPA::cpa()->hwQ(CPA::FL_NONE, ce->sys, channelId,
+ "CopyEngine", s, id, NULL, size);
+ }
+
};
private: