source: rtems/cpukit/itron/include/rtems/itron/mbox.h @ 8cd0907c

4.104.114.84.95
Last change on this file since 8cd0907c was 6df1f64, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/28/05 at 11:07:14

New header guards.

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