diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-17 15:24:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-17 15:24:11 +0000 |
commit | 5e96e917578509149814e300d56d2a7d47b7f268 (patch) | |
tree | 9d5057fdaa5b220839a7c7d6c426e207878949fd /c/src/exec/itron/include | |
parent | Corrected spacing. (diff) | |
download | rtems-5e96e917578509149814e300d56d2a7d47b7f268.tar.bz2 |
Updated Mailbox Manager submitted and split into multiple files.
Diffstat (limited to 'c/src/exec/itron/include')
-rw-r--r-- | c/src/exec/itron/include/itronsys/mbox.h | 22 | ||||
-rw-r--r-- | c/src/exec/itron/include/rtems/itron/mbox.h | 18 |
2 files changed, 28 insertions, 12 deletions
diff --git a/c/src/exec/itron/include/itronsys/mbox.h b/c/src/exec/itron/include/itronsys/mbox.h index ef0581d02e..4196035b2c 100644 --- a/c/src/exec/itron/include/itronsys/mbox.h +++ b/c/src/exec/itron/include/itronsys/mbox.h @@ -21,7 +21,7 @@ typedef struct t_cmbx { VP exinf; /* extended information */ ATR mbxatr; /* mailbox attributes */ /* Following is implementation-dependent function */ - INT bufcnt; /* ring buffer size */ + INT bufcnt; /* maximum number of messages to let pend */ /* additional information may be included depending on the implementation */ } T_CMBX; @@ -38,7 +38,11 @@ typedef struct t_msg { /* * A region (header) reserved by the OS may be included first * depending on the implementation. + * + * NOTE: The first two fields are RTEMS specific. */ + + INT msgpri; /* priority of each message */ /* VB msgcont[]; XXX */ unsigned8 msgcont[1]; } T_MSG; @@ -63,8 +67,8 @@ typedef struct t_rmbx { */ ER cre_mbx( - ID mbxid, - T_CMBX* pk_cmbx + ID mbxid, + T_CMBX *pk_cmbx ); /* @@ -80,7 +84,7 @@ ER del_mbx( */ ER snd_msg( - ID mbxid, + ID mbxid, T_MSG *pk_msg ); @@ -90,7 +94,7 @@ ER snd_msg( ER rcv_msg( T_MSG **ppk_msg, - ID mbxid + ID mbxid ); /* @@ -99,7 +103,7 @@ ER rcv_msg( ER prcv_msg( T_MSG **ppk_msg, - ID mbxid + ID mbxid ); /* @@ -108,8 +112,8 @@ ER prcv_msg( ER trcv_msg( T_MSG **ppk_msg, - ID mbxid, - TMO tmout + ID mbxid, + TMO tmout ); /* @@ -118,7 +122,7 @@ ER trcv_msg( ER ref_mbx( T_RMBX *pk_rmbx, - ID mbxid + ID mbxid ); diff --git a/c/src/exec/itron/include/rtems/itron/mbox.h b/c/src/exec/itron/include/rtems/itron/mbox.h index 5ce4180643..c0e0d53ea1 100644 --- a/c/src/exec/itron/include/rtems/itron/mbox.h +++ b/c/src/exec/itron/include/rtems/itron/mbox.h @@ -14,14 +14,17 @@ extern "C" { #endif #include <rtems/itron/object.h> +#include <rtems/score/coremsg.h> /* * The following defines the control block used to manage each mailbox. */ typedef struct { - ITRON_Objects_Control Object; - unsigned32 XXX_more_stuff_goes_here; + ITRON_Objects_Control Object; + unsigned32 count; + boolean do_message_priority; + CORE_message_queue_Control message_queue; } ITRON_Mailbox_Control; /* @@ -44,9 +47,18 @@ void _ITRON_Mailbox_Manager_initialization( ); /* - * XXX insert private stuff here + * _ITRON_Mailbox_Translate_core_message_queue_return_code + * + * DESCRIPTION: + * + * This routine translates a core message queue object status + * into the appropriate ITRON status code. */ +ER _ITRON_Mailbox_Translate_core_message_queue_return_code( + CORE_message_queue_Status status +); + #include <rtems/itron/mbox.inl> #ifdef __cplusplus |