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 |
---|
20 | extern "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 | |
---|
30 | typedef 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 | |
---|
42 | ITRON_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 | |
---|
52 | void _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 | |
---|
65 | ER _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 */ |
---|