[352c9b2] | 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 | #include <itron.h> |
---|
| 10 | |
---|
| 11 | #include <rtems/itron/mbox.h> |
---|
| 12 | |
---|
| 13 | /* |
---|
| 14 | * _ITRON_Mailbox_Manager_initialization |
---|
| 15 | * |
---|
| 16 | * This routine initializes all mailboxes manager related data structures. |
---|
| 17 | * |
---|
| 18 | * Input parameters: |
---|
| 19 | * maximum_mailboxes - maximum configured mailboxes |
---|
| 20 | * |
---|
| 21 | * Output parameters: NONE |
---|
| 22 | */ |
---|
| 23 | |
---|
| 24 | void _ITRON_Mailbox_Manager_initialization( |
---|
| 25 | unsigned32 maximum_mailboxes |
---|
| 26 | ) |
---|
| 27 | { |
---|
| 28 | _Objects_Initialize_information( |
---|
| 29 | &_ITRON_Mailbox_Information, /* object information table */ |
---|
| 30 | OBJECTS_ITRON_MAILBOXES, /* object class */ |
---|
| 31 | FALSE, /* TRUE if this is a global */ |
---|
| 32 | /* object class */ |
---|
| 33 | maximum_mailboxes, /* maximum objects of this class */ |
---|
| 34 | sizeof( ITRON_Mailbox_Control ), /* size of this object's control block */ |
---|
| 35 | FALSE, /* TRUE if names for this object */ |
---|
| 36 | /* are strings */ |
---|
| 37 | RTEMS_MAXIMUM_NAME_LENGTH, /* maximum length of each object's */ |
---|
| 38 | /* name */ |
---|
| 39 | FALSE /* TRUE if this class is threads */ |
---|
| 40 | ); |
---|
| 41 | |
---|
| 42 | /* |
---|
| 43 | * Register the MP Process Packet routine. |
---|
| 44 | * |
---|
| 45 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
| 46 | */ |
---|
| 47 | |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | /* |
---|
| 51 | * cre_mbx - Create Mailbox |
---|
| 52 | */ |
---|
| 53 | |
---|
| 54 | ER cre_mbx( |
---|
| 55 | ID mbxid, |
---|
| 56 | T_CMBX *pk_cmbx |
---|
| 57 | ) |
---|
| 58 | { |
---|
| 59 | return E_OK; |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | /* |
---|
| 63 | * del_mbx - Delete Mailbox |
---|
| 64 | */ |
---|
| 65 | |
---|
| 66 | ER del_mbx( |
---|
| 67 | ID mbxid |
---|
| 68 | ) |
---|
| 69 | { |
---|
| 70 | return E_OK; |
---|
| 71 | } |
---|
| 72 | |
---|
| 73 | /* |
---|
| 74 | * snd_msg - Send Message to Mailbox |
---|
| 75 | */ |
---|
| 76 | |
---|
| 77 | ER snd_msg( |
---|
| 78 | ID mbxid, |
---|
| 79 | T_MSG *pk_msg |
---|
| 80 | ) |
---|
| 81 | { |
---|
| 82 | return E_OK; |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | /* |
---|
| 86 | * rcv_msg - Receive Message from Mailbox |
---|
| 87 | */ |
---|
| 88 | |
---|
| 89 | ER rcv_msg( |
---|
| 90 | T_MSG **ppk_msg, |
---|
| 91 | ID mbxid |
---|
| 92 | ) |
---|
| 93 | { |
---|
| 94 | return E_OK; |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | /* |
---|
| 98 | * prcv_msg - Poll and Receive Message from Mailbox |
---|
| 99 | */ |
---|
| 100 | |
---|
| 101 | ER prcv_msg( |
---|
| 102 | T_MSG **ppk_msg, |
---|
| 103 | ID mbxid |
---|
| 104 | ) |
---|
| 105 | { |
---|
| 106 | return E_OK; |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | /* |
---|
| 110 | * trcv_msg - Receive Message from Mailbox with Timeout |
---|
| 111 | */ |
---|
| 112 | |
---|
| 113 | ER trcv_msg( |
---|
| 114 | T_MSG **ppk_msg, |
---|
| 115 | ID mbxid, |
---|
| 116 | TMO tmout |
---|
| 117 | ) |
---|
| 118 | { |
---|
| 119 | return E_OK; |
---|
| 120 | } |
---|
| 121 | |
---|
| 122 | /* |
---|
| 123 | * ref_mbx - Reference Mailbox Status |
---|
| 124 | */ |
---|
| 125 | |
---|
| 126 | ER ref_mbx( |
---|
| 127 | T_RMBX *pk_rmbx, |
---|
| 128 | ID mbxid |
---|
| 129 | ) |
---|
| 130 | { |
---|
| 131 | return E_OK; |
---|
| 132 | } |
---|
| 133 | |
---|