source: rtems/cpukit/sapi/src/itronapi.c @ ebbe119e

4.104.114.84.95
Last change on this file since ebbe119e was ebbe119e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/01/04 at 10:14:23

2004-04-01 Ralf Corsepius <ralf_corsepius@…>

  • libblock/include/rtems/bdbuf.h: Include <rtems/chain.h> instead of <chain.h>.
  • libblock/include/rtems/ide_part_table.h: Include <rtems/chain.h> instead of <chain.h>.
  • libcsupport/src/malloc.c: Include <rtems/chain.h> instead of <chain.h>.
  • libcsupport/src/mount.c: Include <rtems/chain.h> instead of <chain.h>.
  • libcsupport/src/unmount.c: Include <rtems/chain.h> instead of <chain.h>.
  • libfs/src/imfs/imfs.h: Include <rtems/chain.h> instead of <chain.h>.
  • libfs/src/imfs/imfs_directory.c: Include <rtems/chain.h> instead of <chain.h>.
  • libfs/src/imfs/imfs_load_tar.c: Include <rtems/chain.h> instead of <chain.h>.
  • sapi/include/confdefs.h: Include <rtems/clockdrv.h> instead of <clockdrv.h>.
  • sapi/include/confdefs.h: Include <rtems/console.h> instead of <console.h>.
  • libfs/src/imfs/imfs_load_tar.c: Include <rtems/imfs.h> instead of <imfs.h>.
  • libmisc/shell/cmds.c: Include <rtems/imfs.h> instead of <imfs.h>.
  • libmisc/fsmount/fsmount.c: Include <rtems/imfs.h> instead of <imfs.h>.
  • sapi/include/confdefs.h: Include <rtems/imfs.h> instead of <imfs.h>.
  • itron/src/can_wup.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/chg_pri.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/cre_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/cre_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/cre_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/cre_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/del_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/del_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/del_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/del_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/dis_dsp.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ena_dsp.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/eventflags.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/exd_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ext_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/fmempool.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/frsm_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/get_tid.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/itronintr.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/itronsem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/itrontime.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/mbox.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/mboxtranslatereturncode.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/msgbuffer.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/msgbuffertranslatereturncode.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/network.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/port.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/prcv_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/prcv_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/preq_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/psnd_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/rcv_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/rcv_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ref_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ref_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ref_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ref_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/rel_wai.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/rot_rdq.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/rsm_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/sig_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/slp_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/snd_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/snd_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/sta_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/sus_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/sysmgmt.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/task.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/ter_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/trcv_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/trcv_mbx.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/tslp_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/tsnd_mbf.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/twai_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/vmempool.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/wai_sem.c: Include <rtems/itron.h> instead of <itron.h>.
  • itron/src/wup_tsk.c: Include <rtems/itron.h> instead of <itron.h>.
  • sapi/include/rtems/config.h: Include <rtems/itron.h> instead of <itron.h>.
  • sapi/include/confdefs.h: Include <rtems/itron.h> instead of <itron.h>.
  • sapi/src/itronapi.c: Include <rtems/itron.h> instead of <itron.h>.
  • sapi/include/confdefs.h: Include <rtems/rtc.h> instead of <rtc.h>.
  • sapi/include/confdefs.h: Include <rtems/timerdrv.h> instead of <timerdrv.h>.
  • Property mode set to 100644
File size: 3.0 KB
Line 
1/*
2 *  ITRON API Initialization Support
3 *
4 *  NOTE:
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#include <assert.h>
17
18/*
19 *  ITRON_API_INIT is defined so all of the ITRON API
20 *  data will be included in this object file.
21 */
22
23#define ITRON_API_INIT
24
25#include <rtems/system.h>    /* include this before checking RTEMS_ITRON_API */
26#ifdef RTEMS_ITRON_API
27
28#include <rtems/itron.h>
29
30#include <sys/types.h>
31#include <rtems/config.h>
32#include <rtems/score/object.h>
33
34#include <rtems/itron/eventflags.h>
35#include <rtems/itron/fmempool.h>
36#include <rtems/itron/mbox.h>
37#include <rtems/itron/msgbuffer.h>
38#include <rtems/itron/port.h>
39#include <rtems/itron/semaphore.h>
40#include <rtems/itron/task.h>
41#include <rtems/itron/vmempool.h>
42
43/*PAGE
44 *
45 *  _ITRON_API_Initialize
46 *
47 *  XXX
48 */
49
50itron_api_configuration_table _ITRON_Default_configuration = {
51  0,                             /* maximum_tasks */
52  0,                             /* maximum_semaphores */
53  0,                             /* maximum_eventflags */
54  0,                             /* maximum_mailboxes */
55  0,                             /* maximum_message_buffers */
56  0,                             /* maximum_ports */
57  0,                             /* maximum_memory_pools */
58  0,                             /* maximum_fixed_memory_pools */
59  0,                             /* number_of_initialization_tasks */
60  NULL                           /* User_initialization_tasks_table */
61};
62
63Objects_Information *_ITRON_Objects[ OBJECTS_ITRON_CLASSES_LAST + 1 ];
64
65void _ITRON_API_Initialize(
66  rtems_configuration_table *configuration_table
67)
68{
69  itron_api_configuration_table *api_configuration;
70
71  /* XXX need to assert here based on size assumptions */
72
73  assert( sizeof(ID) == sizeof(Objects_Id) );
74
75  api_configuration = configuration_table->ITRON_api_configuration;
76  if ( !api_configuration )
77    api_configuration = &_ITRON_Default_configuration;
78
79  _Objects_Information_table[OBJECTS_ITRON_API] = _ITRON_Objects;
80   
81  _ITRON_Task_Manager_initialization(
82    api_configuration->maximum_tasks,
83    api_configuration->number_of_initialization_tasks,
84    api_configuration->User_initialization_tasks_table
85  );
86 
87  _ITRON_Semaphore_Manager_initialization(
88    api_configuration->maximum_semaphores
89  );
90
91  _ITRON_Eventflags_Manager_initialization(
92    api_configuration->maximum_eventflags
93  );
94
95  _ITRON_Fixed_memory_pool_Manager_initialization(
96    api_configuration->maximum_fixed_memory_pools
97  );
98
99  _ITRON_Mailbox_Manager_initialization(
100    api_configuration->maximum_mailboxes
101  );
102
103  _ITRON_Message_buffer_Manager_initialization(
104    api_configuration->maximum_message_buffers
105  );
106
107  _ITRON_Port_Manager_initialization(
108    api_configuration->maximum_ports
109  );
110
111  _ITRON_Variable_memory_pool_Manager_initialization(
112    api_configuration->maximum_memory_pools
113  );
114
115
116}
117
118#endif
119/* end of file */
Note: See TracBrowser for help on using the repository browser.