source: rtems/cpukit/itron/include/rtems/itron/mbox.h @ 5e96e917

4.104.114.84.95
Last change on this file since 5e96e917 was 5e96e917, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 15:24:11

Updated Mailbox Manager submitted and split into multiple files.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.OARcorp.com/rtems/license.html.
5 *
6 *  $Id$
7 */
8
9#ifndef __RTEMS_ITRON_MBOX_h_
10#define __RTEMS_ITRON_MBOX_h_
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#include <rtems/itron/object.h>
17#include <rtems/score/coremsg.h>
18
19/*
20 *  The following defines the control block used to manage each mailbox.
21 */
22
23typedef struct {
24  ITRON_Objects_Control       Object;
25  unsigned32                  count;
26  boolean                     do_message_priority;
27  CORE_message_queue_Control  message_queue;
28}   ITRON_Mailbox_Control;
29
30/*
31 *  The following defines the information control block used to manage
32 *  this class of objects.
33 */
34
35ITRON_EXTERN Objects_Information  _ITRON_Mailbox_Information;
36
37/*
38 *  _ITRON_Mailbox_Manager_initialization
39 *
40 *  DESCRIPTION:
41 *
42 *  This routine performs the initialization necessary for this manager.
43 */
44
45void _ITRON_Mailbox_Manager_initialization(
46  unsigned32 maximum_mailboxes
47);
48
49/*
50 *  _ITRON_Mailbox_Translate_core_message_queue_return_code
51 *
52 *  DESCRIPTION:
53 *
54 *  This routine translates a core message queue object status
55 *  into the appropriate ITRON status code.
56 */
57
58ER _ITRON_Mailbox_Translate_core_message_queue_return_code(
59  CORE_message_queue_Status status
60);
61
62#include <rtems/itron/mbox.inl>
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif
69/* end of include file */
70
Note: See TracBrowser for help on using the repository browser.