summaryrefslogtreecommitdiffstats
path: root/src/include/usr/mbox/mbox_queues.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/mbox/mbox_queues.H')
-rw-r--r--src/include/usr/mbox/mbox_queues.H92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/include/usr/mbox/mbox_queues.H b/src/include/usr/mbox/mbox_queues.H
new file mode 100644
index 000000000..1e19b62eb
--- /dev/null
+++ b/src/include/usr/mbox/mbox_queues.H
@@ -0,0 +1,92 @@
+// IBM_PROLOG_BEGIN_TAG
+// This is an automatically generated prolog.
+//
+// $Source: src/include/usr/mbox/mbox_queues.H $
+//
+// IBM CONFIDENTIAL
+//
+// COPYRIGHT International Business Machines Corp. 2012
+//
+// p1
+//
+// Object Code Only (OCO) source materials
+// Licensed Internal Code Source Materials
+// IBM HostBoot Licensed Internal Code
+//
+// The source code for this program is not published or other-
+// wise divested of its trade secrets, irrespective of what has
+// been deposited with the U.S. Copyright Office.
+//
+// Origin: 30
+//
+// IBM_PROLOG_END
+#ifndef __MBOX_QUEUES_H
+#define __MBOX_QUEUES_H
+
+/**
+ * @file mbox_queues.H
+ * @brief Mailbox queue identifiers. This file is shared between
+ * Hostboot and FSP.
+ */
+
+namespace MBOX
+{
+ /**
+ * message queue IDs
+ * FSP msg_queue range 0x80000000 - 0xFFFFFFFF
+ * Hostboot msg_queue range 0x00000001 - 0x7FFFFFFF
+ */
+ enum queue_id_t
+ {
+ NOT_FOUND = 0,
+ HB_MAILBOX_MSGQ,
+ HB_ISTEP_MSGQ,
+ // Add HB services here:
+
+ HB_TEST_MSGQ = 0x7FFFFFFF,
+
+ // FSP mailboxes
+ FSP_FIRST_MSGQ = 0x80000000,
+ FSP_MAILBOX_MSGQ = FSP_FIRST_MSGQ,
+ FSP_ECHO_MSGQ,
+ FSP_PROGRESS_CODES_MSGQ,
+ FSP_TRACE_MSGQ,
+ FSP_ERRL_MSGQ,
+ // Add FSP services here:
+ };
+
+ // Message types are only unique with in each message queue. Each message queue can
+ // use the entire range limited only by the restrictions listed below.
+ //
+ // Each HB and FSP service will need it's own list of message types
+ // Not sure where they belong.
+ //
+ // types 0x00000000 - 0x3FFFFFFF are considered secure messages
+ // and are disabled when under SecureBoot environment
+ // types 0x40000000 - 0x7FFFFFFF can be done at anytime
+ // types 0x80000000 - 0xFFFFFFFF are reserved on hostboot for kernel services
+ // This means hostboot services can't use them, but this is not a restriction
+ // on FSP services
+ enum
+ {
+ FIRST_SECURE_MSG = 0,
+ LAST_SECURE_MSG = 0x3FFFFFFF,
+ FIRST_UNSECURE_MSG = 0x40000000,
+ LAST_UNSECURE_MSG = 0x7FFFFFFF,
+ FIRST_HB_KERNEL_MSG = 0x80000000,
+ LAST_KERNEL_MSG = 0xFFFFFFFF
+ };
+
+ /**
+ * MBOX to MBOX service message types.
+ */
+ enum msg_type_t
+ {
+ MSG_REQUEST_DMA_BUFFERS = FIRST_UNSECURE_MSG,
+ };
+
+
+};
+
+#endif
+
OpenPOWER on IntegriCloud