source: rtems/c/src/exec/itron/src/eventflags.c @ 9fbe22cc

4.104.114.84.95
Last change on this file since 9fbe22cc was 9fbe22cc, checked in by Joel Sherrill <joel.sherrill@…>, on 07/01/02 at 22:35:43

2002-07-01 Joel Sherrill <joel@…>

  • Mega patch merge to change the format of the object IDs to loosen the dependency between the SCORE and the various APIs. There was considerable work to simplify the object name management and it appears that the name_table field is no longer needed. This patch also includes the addition of the internal mutex which is currently only used to protect some types of allocation and deallocation. This significantly can reduce context switch latency under certain circumstances. In particular, some heap/region operations were O(n) and had dispatching disabled. This should help enormously. With this merge, the patch is not as clean as it should be. In particular, the documentation has not been modified to reflect the new object ID layout, the IDs in the test screens are not updated, and _Objects_Get_information needs to be a real routine not inlined. As part of this patch a lot of MP code for thread/proxy blocking was made conditional and cleaned up.
  • src/cre_mbf.c, src/cre_sem.c, src/eventflags.c, src/fmempool.c, src/itronsem.c, src/mbox.c, src/msgbuffer.c, src/port.c, src/task.c, src/vmempool.c: Modified as part of above.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.OARcorp.com/rtems/license.html.
8 *
9 *  $Id$
10 */
11
12#if HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <itron.h>
17
18#include <rtems/itron/eventflags.h>
19
20/*   
21 *  _ITRON_Eventflags_Manager_initialization
22 * 
23 *  This routine initializes all event flags manager related data structures.
24 *
25 *  Input parameters:
26 *    maximum_eventflags - maximum configured eventflags
27 *
28 *  Output parameters:  NONE
29 */
30
31void _ITRON_Eventflags_Manager_initialization(
32  unsigned32 maximum_eventflags
33)
34{
35  _Objects_Initialize_information(
36    &_ITRON_Eventflags_Information,     /* object information table */
37    OBJECTS_ITRON_API,                  /* object API */
38    OBJECTS_ITRON_EVENTFLAGS,           /* object class */
39    maximum_eventflags,                 /* maximum objects of this class */
40    sizeof( ITRON_Eventflags_Control ),
41                                 /* size of this object's control block */
42    FALSE,                       /* TRUE if names for this object are strings */
43    ITRON_MAXIMUM_NAME_LENGTH    /* maximum length of each object's name */
44#if defined(RTEMS_MULTIPROCESSING)
45    ,
46    FALSE,                       /* TRUE if this is a global object class */
47    NULL                         /* Proxy extraction support callout */
48#endif
49  );
50   
51  /*
52   *  Register the MP Process Packet routine.
53   *
54   *  NOTE: No MP Support YET in RTEMS ITRON implementation.
55   */
56 
57}
58
59/*
60 *  cre_flg - Create Eventflag
61 */
62
63ER cre_flg(
64  ID      flgid,
65  T_CFLG *pk_cflg
66)
67{
68  return E_OK;
69}
70
71/*
72 *  del_flg - Delete Eventflag
73 */
74
75ER del_flg(
76  ID flgid
77)
78{
79  return E_OK;
80}
81
82/*
83 *  set_flg - Set Eventflag
84 */
85
86ER set_flg(
87  ID   flgid,
88  UINT setptn
89)
90{
91  return E_OK;
92}
93
94/*
95 *  clr_flg - Clear Eventflag
96 */
97
98ER clr_flg(
99  ID   flgid,
100  UINT clrptn
101)
102{
103  return E_OK;
104}
105
106/*
107 *  wai_flg - Wait on Eventflag
108 */
109
110ER wai_flg(
111  UINT *p_flgptn,
112  ID    flgid,
113  UINT  waiptn,
114  UINT  wfmode
115)
116{
117  return E_OK;
118}
119
120/*
121 *  pol_flg - Wait for Eventflag(Polling)
122 */
123
124ER pol_flg(
125  UINT *p_flgptn,
126  ID    flgid,
127  UINT  waiptn,
128  UINT  wfmode
129)
130{
131  return E_OK;
132}
133
134/*
135 *  twai_flg - Wait on Eventflag with Timeout
136 */
137
138ER twai_flg(
139  UINT *p_flgptn,
140  ID    flgid,
141  UINT  waiptn,
142  UINT  wfmode,
143  TMO   tmout
144)
145{
146  return E_OK;
147}
148
149/*
150 *  ref_flg - Reference Eventflag Status
151 */
152
153ER ref_flg(
154  T_RFLG *pk_rflg,
155  ID      flgid
156)
157{
158  return E_OK;
159}
160
Note: See TracBrowser for help on using the repository browser.