summaryrefslogtreecommitdiff
path: root/mem
diff options
context:
space:
mode:
Diffstat (limited to 'mem')
-rw-r--r--mem/bus.hh2
-rw-r--r--mem/mem_object.hh1
-rw-r--r--mem/packet.hh15
-rw-r--r--mem/port.hh8
4 files changed, 26 insertions, 0 deletions
diff --git a/mem/bus.hh b/mem/bus.hh
index 8dea42e28..0fd450c4f 100644
--- a/mem/bus.hh
+++ b/mem/bus.hh
@@ -40,6 +40,8 @@
#include "base/range.hh"
#include "mem/mem_object.hh"
#include "mem/packet.hh"
+#include "mem/port.hh"
+#include "mem/request.hh"
class Bus : public MemObject
{
diff --git a/mem/mem_object.hh b/mem/mem_object.hh
index 7fa2380ba..c6c5076e8 100644
--- a/mem/mem_object.hh
+++ b/mem/mem_object.hh
@@ -35,6 +35,7 @@
#define __MEM_MEM_OBJECT_HH__
#include "sim/sim_object.hh"
+#include "mem/port.hh"
/**
* The base MemoryObject class, allows for an accesor function to a
diff --git a/mem/packet.hh b/mem/packet.hh
index 675587a38..5eb9b881c 100644
--- a/mem/packet.hh
+++ b/mem/packet.hh
@@ -35,6 +35,21 @@
#ifndef __MEM_PACKET_HH__
#define __MEM_PACKET_HH__
+
+/** List of all commands associated with a packet. */
+enum Command
+{
+ Read,
+ Write
+};
+
+/** The result of a particular pakets request. */
+enum PacketResult
+{
+ Success,
+ BadAddress
+};
+
/**
* A Packet is the structure to handle requests between two levels
* of the memory system. The Request is a global object that trancends
diff --git a/mem/port.hh b/mem/port.hh
index 81150b2a3..1cbb18f00 100644
--- a/mem/port.hh
+++ b/mem/port.hh
@@ -46,6 +46,14 @@
#include "mem/packet.hh"
#include "mem/request.hh"
+/** The immediate result of a Send call. Can be used to determine if a fast path
+ access can occur, or if a retry may come. */
+enum SendResult
+{
+ Success,
+ Failure
+};
+
/**
* Ports are used to interface memory objects to
* each other. They will always come in pairs, and we refer to the other