From c0f012d13d7234263a7c0ec641604e8fd7efffdd Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Tue, 31 Jan 2006 14:09:43 -0500 Subject: [PATCH] Listing some of the enum structures --HG-- extra : convert_revision : d6ba1873826ee017bf2e4975a44eb2494a323132 --- mem/packet.hh | 15 +++++++++++++++ mem/port.hh | 8 ++++++++ 2 files changed, 23 insertions(+) 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 03f4abac0..05a2c59ff 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 -- 2.30.2