From 331d1f5097d449a9335a6de8f2c7b9e8e3da7f81 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 17 Jun 2010 15:36:00 +0000 Subject: Remove (Abandoned). --- cpukit/itron/src/.cvsignore | 4 - cpukit/itron/src/TODO | 13 -- cpukit/itron/src/acp_por.c | 33 ----- cpukit/itron/src/act_cyc.c | 45 ------ cpukit/itron/src/cal_por.c | 33 ----- cpukit/itron/src/can_wup.c | 54 ------- cpukit/itron/src/chg_iXX.c | 29 ---- cpukit/itron/src/chg_pri.c | 70 --------- cpukit/itron/src/clr_flg.c | 30 ---- cpukit/itron/src/cre_flg.c | 30 ---- cpukit/itron/src/cre_mbf.c | 89 ------------ cpukit/itron/src/cre_mbx.c | 107 -------------- cpukit/itron/src/cre_mpf.c | 30 ---- cpukit/itron/src/cre_mpl.c | 30 ---- cpukit/itron/src/cre_por.c | 31 ---- cpukit/itron/src/cre_sem.c | 98 ------------- cpukit/itron/src/cre_tsk.c | 126 ---------------- cpukit/itron/src/def_alm.c | 48 ------- cpukit/itron/src/def_cyc.c | 53 ------- cpukit/itron/src/def_exc.c | 30 ---- cpukit/itron/src/def_int.c | 30 ---- cpukit/itron/src/def_svc.c | 30 ---- cpukit/itron/src/del_flg.c | 29 ---- cpukit/itron/src/del_mbf.c | 60 -------- cpukit/itron/src/del_mbx.c | 70 --------- cpukit/itron/src/del_mpf.c | 29 ---- cpukit/itron/src/del_mpl.c | 29 ---- cpukit/itron/src/del_por.c | 29 ---- cpukit/itron/src/del_sem.c | 70 --------- cpukit/itron/src/del_tsk.c | 74 ---------- cpukit/itron/src/dis_dsp.c | 40 ------ cpukit/itron/src/dis_int.c | 29 ---- cpukit/itron/src/dly_tsk.c | 50 ------- cpukit/itron/src/ena_dsp.c | 36 ----- cpukit/itron/src/ena_int.c | 30 ---- cpukit/itron/src/eventflags.c | 55 ------- cpukit/itron/src/exd_tsk.c | 50 ------- cpukit/itron/src/ext_tsk.c | 46 ------ cpukit/itron/src/fmempool.c | 56 -------- cpukit/itron/src/frsm_tsk.c | 62 -------- cpukit/itron/src/fwd_por.c | 33 ----- cpukit/itron/src/get_blf.c | 30 ---- cpukit/itron/src/get_blk.c | 31 ---- cpukit/itron/src/get_tid.c | 41 ------ cpukit/itron/src/get_tim.c | 32 ----- cpukit/itron/src/get_ver.c | 29 ---- cpukit/itron/src/itroninittasks.c | 62 -------- cpukit/itron/src/itronintr.c | 20 --- cpukit/itron/src/itronsem.c | 58 -------- cpukit/itron/src/itrontime.c | 23 --- cpukit/itron/src/loc_cpu.c | 27 ---- cpukit/itron/src/mbox.c | 57 -------- cpukit/itron/src/mboxtranslatereturncode.c | 48 ------- cpukit/itron/src/msgbuffer.c | 58 -------- cpukit/itron/src/msgbuffertranslatereturncode.c | 48 ------- cpukit/itron/src/network.c | 20 --- cpukit/itron/src/nget_nod.c | 29 ---- cpukit/itron/src/nget_ver.c | 30 ---- cpukit/itron/src/nrea_dat.c | 33 ----- cpukit/itron/src/nwri_dat.c | 34 ----- cpukit/itron/src/pacp_por.c | 33 ----- cpukit/itron/src/pcal_por.c | 33 ----- cpukit/itron/src/pget_blf.c | 30 ---- cpukit/itron/src/pget_blk.c | 31 ---- cpukit/itron/src/pol_flg.c | 32 ----- cpukit/itron/src/port.c | 54 ------- cpukit/itron/src/prcv_mbf.c | 34 ----- cpukit/itron/src/prcv_mbx.c | 33 ----- cpukit/itron/src/preq_sem.c | 33 ----- cpukit/itron/src/psnd_mbf.c | 34 ----- cpukit/itron/src/rcv_mbf.c | 34 ----- cpukit/itron/src/rcv_mbx.c | 33 ----- cpukit/itron/src/ref_alm.c | 33 ----- cpukit/itron/src/ref_cfg.c | 29 ---- cpukit/itron/src/ref_cyc.c | 60 -------- cpukit/itron/src/ref_flg.c | 30 ---- cpukit/itron/src/ref_iXX.c | 29 ---- cpukit/itron/src/ref_mbf.c | 85 ----------- cpukit/itron/src/ref_mbx.c | 67 --------- cpukit/itron/src/ref_mpf.c | 30 ---- cpukit/itron/src/ref_mpl.c | 30 ---- cpukit/itron/src/ref_por.c | 30 ---- cpukit/itron/src/ref_sem.c | 67 --------- cpukit/itron/src/ref_sys.c | 29 ---- cpukit/itron/src/ref_tsk.c | 101 ------------- cpukit/itron/src/rel_blf.c | 30 ---- cpukit/itron/src/rel_blk.c | 30 ---- cpukit/itron/src/rel_wai.c | 54 ------- cpukit/itron/src/ret_int.c | 26 ---- cpukit/itron/src/ret_tmr.c | 29 ---- cpukit/itron/src/ret_wup.c | 28 ---- cpukit/itron/src/rot_rdq.c | 55 ------- cpukit/itron/src/rpl_rdv.c | 31 ---- cpukit/itron/src/rsm_tsk.c | 62 -------- cpukit/itron/src/set_flg.c | 30 ---- cpukit/itron/src/set_tim.c | 46 ------ cpukit/itron/src/sig_sem.c | 58 -------- cpukit/itron/src/slp_tsk.c | 35 ----- cpukit/itron/src/snd_mbf.c | 34 ----- cpukit/itron/src/snd_mbx.c | 72 ---------- cpukit/itron/src/sta_tsk.c | 71 --------- cpukit/itron/src/sus_tsk.c | 64 --------- cpukit/itron/src/sysmgmt.c | 20 --- cpukit/itron/src/tacp_por.c | 34 ----- cpukit/itron/src/task.c | 184 ------------------------ cpukit/itron/src/tcal_por.c | 34 ----- cpukit/itron/src/ter_tsk.c | 60 -------- cpukit/itron/src/tget_blf.c | 31 ---- cpukit/itron/src/tget_blk.c | 32 ----- cpukit/itron/src/trcv_mbf.c | 88 ------------ cpukit/itron/src/trcv_mbx.c | 78 ---------- cpukit/itron/src/tslp_tsk.c | 36 ----- cpukit/itron/src/tsnd_mbf.c | 92 ------------ cpukit/itron/src/twai_flg.c | 33 ----- cpukit/itron/src/twai_sem.c | 72 ---------- cpukit/itron/src/unl_cpu.c | 27 ---- cpukit/itron/src/vmempool.c | 57 -------- cpukit/itron/src/wai_flg.c | 32 ----- cpukit/itron/src/wai_sem.c | 33 ----- cpukit/itron/src/wup_tsk.c | 36 ----- 120 files changed, 5398 deletions(-) delete mode 100644 cpukit/itron/src/.cvsignore delete mode 100644 cpukit/itron/src/TODO delete mode 100644 cpukit/itron/src/acp_por.c delete mode 100644 cpukit/itron/src/act_cyc.c delete mode 100644 cpukit/itron/src/cal_por.c delete mode 100644 cpukit/itron/src/can_wup.c delete mode 100644 cpukit/itron/src/chg_iXX.c delete mode 100644 cpukit/itron/src/chg_pri.c delete mode 100644 cpukit/itron/src/clr_flg.c delete mode 100644 cpukit/itron/src/cre_flg.c delete mode 100644 cpukit/itron/src/cre_mbf.c delete mode 100644 cpukit/itron/src/cre_mbx.c delete mode 100644 cpukit/itron/src/cre_mpf.c delete mode 100644 cpukit/itron/src/cre_mpl.c delete mode 100644 cpukit/itron/src/cre_por.c delete mode 100644 cpukit/itron/src/cre_sem.c delete mode 100644 cpukit/itron/src/cre_tsk.c delete mode 100644 cpukit/itron/src/def_alm.c delete mode 100644 cpukit/itron/src/def_cyc.c delete mode 100644 cpukit/itron/src/def_exc.c delete mode 100644 cpukit/itron/src/def_int.c delete mode 100644 cpukit/itron/src/def_svc.c delete mode 100644 cpukit/itron/src/del_flg.c delete mode 100644 cpukit/itron/src/del_mbf.c delete mode 100644 cpukit/itron/src/del_mbx.c delete mode 100644 cpukit/itron/src/del_mpf.c delete mode 100644 cpukit/itron/src/del_mpl.c delete mode 100644 cpukit/itron/src/del_por.c delete mode 100644 cpukit/itron/src/del_sem.c delete mode 100644 cpukit/itron/src/del_tsk.c delete mode 100644 cpukit/itron/src/dis_dsp.c delete mode 100644 cpukit/itron/src/dis_int.c delete mode 100644 cpukit/itron/src/dly_tsk.c delete mode 100644 cpukit/itron/src/ena_dsp.c delete mode 100644 cpukit/itron/src/ena_int.c delete mode 100644 cpukit/itron/src/eventflags.c delete mode 100644 cpukit/itron/src/exd_tsk.c delete mode 100644 cpukit/itron/src/ext_tsk.c delete mode 100644 cpukit/itron/src/fmempool.c delete mode 100644 cpukit/itron/src/frsm_tsk.c delete mode 100644 cpukit/itron/src/fwd_por.c delete mode 100644 cpukit/itron/src/get_blf.c delete mode 100644 cpukit/itron/src/get_blk.c delete mode 100644 cpukit/itron/src/get_tid.c delete mode 100644 cpukit/itron/src/get_tim.c delete mode 100644 cpukit/itron/src/get_ver.c delete mode 100644 cpukit/itron/src/itroninittasks.c delete mode 100644 cpukit/itron/src/itronintr.c delete mode 100644 cpukit/itron/src/itronsem.c delete mode 100644 cpukit/itron/src/itrontime.c delete mode 100644 cpukit/itron/src/loc_cpu.c delete mode 100644 cpukit/itron/src/mbox.c delete mode 100644 cpukit/itron/src/mboxtranslatereturncode.c delete mode 100644 cpukit/itron/src/msgbuffer.c delete mode 100644 cpukit/itron/src/msgbuffertranslatereturncode.c delete mode 100644 cpukit/itron/src/network.c delete mode 100644 cpukit/itron/src/nget_nod.c delete mode 100644 cpukit/itron/src/nget_ver.c delete mode 100644 cpukit/itron/src/nrea_dat.c delete mode 100644 cpukit/itron/src/nwri_dat.c delete mode 100644 cpukit/itron/src/pacp_por.c delete mode 100644 cpukit/itron/src/pcal_por.c delete mode 100644 cpukit/itron/src/pget_blf.c delete mode 100644 cpukit/itron/src/pget_blk.c delete mode 100644 cpukit/itron/src/pol_flg.c delete mode 100644 cpukit/itron/src/port.c delete mode 100644 cpukit/itron/src/prcv_mbf.c delete mode 100644 cpukit/itron/src/prcv_mbx.c delete mode 100644 cpukit/itron/src/preq_sem.c delete mode 100644 cpukit/itron/src/psnd_mbf.c delete mode 100644 cpukit/itron/src/rcv_mbf.c delete mode 100644 cpukit/itron/src/rcv_mbx.c delete mode 100644 cpukit/itron/src/ref_alm.c delete mode 100644 cpukit/itron/src/ref_cfg.c delete mode 100644 cpukit/itron/src/ref_cyc.c delete mode 100644 cpukit/itron/src/ref_flg.c delete mode 100644 cpukit/itron/src/ref_iXX.c delete mode 100644 cpukit/itron/src/ref_mbf.c delete mode 100644 cpukit/itron/src/ref_mbx.c delete mode 100644 cpukit/itron/src/ref_mpf.c delete mode 100644 cpukit/itron/src/ref_mpl.c delete mode 100644 cpukit/itron/src/ref_por.c delete mode 100644 cpukit/itron/src/ref_sem.c delete mode 100644 cpukit/itron/src/ref_sys.c delete mode 100644 cpukit/itron/src/ref_tsk.c delete mode 100644 cpukit/itron/src/rel_blf.c delete mode 100644 cpukit/itron/src/rel_blk.c delete mode 100644 cpukit/itron/src/rel_wai.c delete mode 100644 cpukit/itron/src/ret_int.c delete mode 100644 cpukit/itron/src/ret_tmr.c delete mode 100644 cpukit/itron/src/ret_wup.c delete mode 100644 cpukit/itron/src/rot_rdq.c delete mode 100644 cpukit/itron/src/rpl_rdv.c delete mode 100644 cpukit/itron/src/rsm_tsk.c delete mode 100644 cpukit/itron/src/set_flg.c delete mode 100644 cpukit/itron/src/set_tim.c delete mode 100644 cpukit/itron/src/sig_sem.c delete mode 100644 cpukit/itron/src/slp_tsk.c delete mode 100644 cpukit/itron/src/snd_mbf.c delete mode 100644 cpukit/itron/src/snd_mbx.c delete mode 100644 cpukit/itron/src/sta_tsk.c delete mode 100644 cpukit/itron/src/sus_tsk.c delete mode 100644 cpukit/itron/src/sysmgmt.c delete mode 100644 cpukit/itron/src/tacp_por.c delete mode 100644 cpukit/itron/src/task.c delete mode 100644 cpukit/itron/src/tcal_por.c delete mode 100644 cpukit/itron/src/ter_tsk.c delete mode 100644 cpukit/itron/src/tget_blf.c delete mode 100644 cpukit/itron/src/tget_blk.c delete mode 100644 cpukit/itron/src/trcv_mbf.c delete mode 100644 cpukit/itron/src/trcv_mbx.c delete mode 100644 cpukit/itron/src/tslp_tsk.c delete mode 100644 cpukit/itron/src/tsnd_mbf.c delete mode 100644 cpukit/itron/src/twai_flg.c delete mode 100644 cpukit/itron/src/twai_sem.c delete mode 100644 cpukit/itron/src/unl_cpu.c delete mode 100644 cpukit/itron/src/vmempool.c delete mode 100644 cpukit/itron/src/wai_flg.c delete mode 100644 cpukit/itron/src/wai_sem.c delete mode 100644 cpukit/itron/src/wup_tsk.c (limited to 'cpukit/itron/src') diff --git a/cpukit/itron/src/.cvsignore b/cpukit/itron/src/.cvsignore deleted file mode 100644 index 000074c626..0000000000 --- a/cpukit/itron/src/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -stamp-h -stamp-h.in -config.h -config.h.in diff --git a/cpukit/itron/src/TODO b/cpukit/itron/src/TODO deleted file mode 100644 index 8b87f58c8a..0000000000 --- a/cpukit/itron/src/TODO +++ /dev/null @@ -1,13 +0,0 @@ -# -# $Id$ -# - -The overall status including a major item todo list is in the Status -chapter of the RTEMS ITRON API User's Guide. This file contains very -short things that need to be addressed. - -+ unlimited object not support for allocate by index. Support either - needs to be added for this type of object or the manager initialization - code needs to consider it a fatal error to configure the object class - in this mode. - diff --git a/cpukit/itron/src/acp_por.c b/cpukit/itron/src/acp_por.c deleted file mode 100644 index 25ab97b0f8..0000000000 --- a/cpukit/itron/src/acp_por.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * acp_por - Accept Port for Rendezvous Poll - */ - -ER acp_por( - RNO *p_rdvno __attribute__((unused)), - VP msg __attribute__((unused)), - INT *p_cmsgsz __attribute__((unused)), - ID porid __attribute__((unused)), - UINT acpptn __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/act_cyc.c b/cpukit/itron/src/act_cyc.c deleted file mode 100644 index 35742e3756..0000000000 --- a/cpukit/itron/src/act_cyc.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * act_cyc - Activate Cyclic Handler - */ - -ER act_cyc( - HNO cycno __attribute__((unused)), - UINT cycact -) -{ - Watchdog_Control *object; - - if(cycact != TCY_OFF || cycact != TCY_ON) - return E_PAR; - -#if 0 - if( object->Object_ID != cycno) - return E_NOEXS; -#endif - - _Watchdog_Activate(object); - - return E_OK; -} diff --git a/cpukit/itron/src/cal_por.c b/cpukit/itron/src/cal_por.c deleted file mode 100644 index 77162f0c53..0000000000 --- a/cpukit/itron/src/cal_por.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * cal_por - Call Port for Rendezvous Poll - */ - -ER cal_por( - VP msg __attribute__((unused)), - INT *p_rmsgsz __attribute__((unused)), - ID porid __attribute__((unused)), - UINT calptn __attribute__((unused)), - INT cmsgsz __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/can_wup.c b/cpukit/itron/src/can_wup.c deleted file mode 100644 index 1cdea586b6..0000000000 --- a/cpukit/itron/src/can_wup.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - -/* - * can_wup - Cancel Wakeup Request - */ - -ER can_wup( - INT *p_wupcnt __attribute__((unused)), - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - /* - * XXX - FILL ME IN. - */ - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/chg_iXX.c b/cpukit/itron/src/chg_iXX.c deleted file mode 100644 index 8e8c80c7a4..0000000000 --- a/cpukit/itron/src/chg_iXX.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * chg_iXX - Change Interrupt Mask(Level or Priority) - */ - -ER chg_iXX( - UINT iXXXX __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/chg_pri.c b/cpukit/itron/src/chg_pri.c deleted file mode 100644 index 0a29128959..0000000000 --- a/cpukit/itron/src/chg_pri.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - -/* - * chg_pri - Change Task Priority - */ - -ER chg_pri( - ID tskid, - PRI tskpri -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - Priority_Control new_priority; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - if (_States_Is_dormant( the_thread->current_state )) - _ITRON_return_errorno( E_OBJ ); - - if (( tskpri <= 0 ) || ( tskpri >= PRIORITY_MAXIMUM-1 )) - _ITRON_return_errorno( E_PAR ); - - new_priority = _ITRON_Task_Priority_to_Core( tskpri ); - the_thread->real_priority = new_priority; - - /* - * The priority should not be changed until later if priority - * inheratance has occured. - */ - - if ( the_thread->resource_count == 0 || - the_thread->current_priority > new_priority ) - _Thread_Change_priority( the_thread, new_priority, false ); - - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/clr_flg.c b/cpukit/itron/src/clr_flg.c deleted file mode 100644 index af4410dab1..0000000000 --- a/cpukit/itron/src/clr_flg.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * clr_flg - Clear Eventflag - */ - -ER clr_flg( - ID flgid __attribute__((unused)), - UINT clrptn __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/cre_flg.c b/cpukit/itron/src/cre_flg.c deleted file mode 100644 index bc8938015d..0000000000 --- a/cpukit/itron/src/cre_flg.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * cre_flg - Create Eventflag - */ - -ER cre_flg( - ID flgid __attribute__((unused)), - T_CFLG *pk_cflg __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/cre_mbf.c b/cpukit/itron/src/cre_mbf.c deleted file mode 100644 index 0275be2cc5..0000000000 --- a/cpukit/itron/src/cre_mbf.c +++ /dev/null @@ -1,89 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * cre_mbf - Create MessageBuffer - */ - -ER cre_mbf( - ID mbfid, - T_CMBF *pk_cmbf -) -{ - CORE_message_queue_Attributes the_msgq_attributes; - ITRON_Message_buffer_Control *the_message_buffer; - - /* - * Bad pointer to the attributes structure - */ - - if ( !pk_cmbf ) - return E_PAR; - - /* - * Bits were set that were note defined. - */ - - if (pk_cmbf->mbfatr & ~(TA_TPRI)) - return E_RSATR; - - if (pk_cmbf->bufsz < 0 || pk_cmbf->maxmsz < 0) - return E_PAR; - - if (pk_cmbf->bufsz < pk_cmbf->maxmsz) - return E_PAR; - - _Thread_Disable_dispatch(); /* prevents deletion */ - - the_message_buffer = _ITRON_Message_buffer_Allocate(mbfid); - if ( !the_message_buffer ) { - _Thread_Enable_dispatch(); - return _ITRON_Message_buffer_Clarify_allocation_id_error(mbfid); - } - - if ( pk_cmbf->mbfatr & TA_TPRI ) - the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; - else - the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; - - _CORE_message_queue_Initialize( - &the_message_buffer->message_queue, - &the_msgq_attributes, - pk_cmbf->bufsz / pk_cmbf->maxmsz, - pk_cmbf->maxmsz - ); - - _ITRON_Objects_Open( &_ITRON_Message_buffer_Information, - &the_message_buffer->Object ); - - /* - * If multiprocessing were supported, this is where we would announce - * the existence of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - - _Thread_Enable_dispatch(); - - return E_OK; -} diff --git a/cpukit/itron/src/cre_mbx.c b/cpukit/itron/src/cre_mbx.c deleted file mode 100644 index bc4d766814..0000000000 --- a/cpukit/itron/src/cre_mbx.c +++ /dev/null @@ -1,107 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * cre_mbx - Create Mailbox - * - * Creates a Mailbox according to the following spec: - * - * ------Parameters------------------------- - * ID mbxid MailboxID - * T_CMBX *pk_cmbx Packet to Create Mailbox - * ----------------------------------------- - * -*pk_cmbx members*- - * VP exinf ExtendedInformation - * ATR mbxatr MailboxAttributes - * (the use of the following information - * is implementation dependent) - * INT bufcnt BufferMessageCount - * (CPU and/or implementation-dependent information - * may also be included) - * - * ----Return Parameters-------------------- - * ER ercd ErrorCode - * ----------------------------------------- - * - * - * ----C Language Interface----------------- - * ER ercd = cre_mbx ( ID mbxid, T_CMBX *pk_cmbx ) ; - * ----------------------------------------- - * - */ - -ER cre_mbx( - ID mbxid, - T_CMBX *pk_cmbx -) -{ - register ITRON_Mailbox_Control *the_mailbox; - CORE_message_queue_Attributes the_mailbox_attributes; - - if ( !pk_cmbx ) - return E_PAR; - - if ((pk_cmbx->mbxatr & (TA_TPRI | TA_MPRI)) != 0 ) - return E_RSATR; - - _Thread_Disable_dispatch(); /* protects object pointer */ - - the_mailbox = _ITRON_Mailbox_Allocate( mbxid ); - if ( !the_mailbox ) { - _Thread_Enable_dispatch(); - return _ITRON_Mailbox_Clarify_allocation_id_error( mbxid ); - } - - the_mailbox->count = pk_cmbx->bufcnt; - if (pk_cmbx->mbxatr & TA_MPRI) - the_mailbox->do_message_priority = TRUE; - else - the_mailbox->do_message_priority = FALSE; - - if (pk_cmbx->mbxatr & TA_TPRI) - the_mailbox_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY; - else - the_mailbox_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO; - - if ( !_CORE_message_queue_Initialize( - &the_mailbox->message_queue, - OBJECTS_ITRON_MAILBOXES, - &the_mailbox_attributes, - the_mailbox->count, - sizeof(T_MSG *), - NULL ) ) { /* Multiprocessing not supported */ - _ITRON_Mailbox_Free(the_mailbox); - _ITRON_return_errorno( E_OBJ ); - } - - _ITRON_Objects_Open( &_ITRON_Mailbox_Information, &the_mailbox->Object ); - - /* - * If multiprocessing were supported, this is where we would announce - * the existence of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/cre_mpf.c b/cpukit/itron/src/cre_mpf.c deleted file mode 100644 index 55cb4c7013..0000000000 --- a/cpukit/itron/src/cre_mpf.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * cre_mpf - Create Fixed-Size Memorypool - */ - -ER cre_mpf( - ID mpfid __attribute__((unused)), - T_CMPF *pk_cmpf __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/cre_mpl.c b/cpukit/itron/src/cre_mpl.c deleted file mode 100644 index 47565b9a6b..0000000000 --- a/cpukit/itron/src/cre_mpl.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * cre_mpl - Create Variable-Size Memorypool - */ - -ER cre_mpl( - ID mplid __attribute__((unused)), - T_CMPL *pk_cmpl __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/cre_por.c b/cpukit/itron/src/cre_por.c deleted file mode 100644 index af6e312de4..0000000000 --- a/cpukit/itron/src/cre_por.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * cre_por - Create Port for Rendezvous - */ - -ER cre_por( - ID porid __attribute__((unused)), - T_CPOR *pk_cpor __attribute__((unused)) -) -{ - return E_OK; -} - diff --git a/cpukit/itron/src/cre_sem.c b/cpukit/itron/src/cre_sem.c deleted file mode 100644 index 3e6e005728..0000000000 --- a/cpukit/itron/src/cre_sem.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * cre_sem - Create Semaphore - * - * This function implements the ITRON 3.0 cre_sem() service. - */ - -ER cre_sem( - ID semid, - T_CSEM *pk_csem -) -{ - CORE_semaphore_Attributes the_semaphore_attributes; - ITRON_Semaphore_Control *the_semaphore; - - /* - * Bad pointer to the attributes structure - */ - - if ( !pk_csem ) - return E_PAR; - - /* - * Bits were set that were note defined. - */ - - if ( pk_csem->sematr & _ITRON_SEMAPHORE_UNUSED_ATTRIBUTES ) - return E_RSATR; - - /* - * Initial semaphore count exceeds the maximum. - */ - - if ( pk_csem->isemcnt > pk_csem->maxsem ) - return E_PAR; - - /* - * This error is not in the specification but this condition - * does not make sense. - */ - - if ( pk_csem->maxsem == 0 ) - return E_PAR; - - _Thread_Disable_dispatch(); /* prevents deletion */ - - the_semaphore = _ITRON_Semaphore_Allocate( semid ); - if ( !the_semaphore ) { - _Thread_Enable_dispatch(); - return _ITRON_Semaphore_Clarify_allocation_id_error( semid ); - } - - if ( pk_csem->sematr & TA_TPRI ) - the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY; - else - the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO; - - the_semaphore_attributes.maximum_count = pk_csem->maxsem; - - _CORE_semaphore_Initialize( - &the_semaphore->semaphore, - &the_semaphore_attributes, - pk_csem->isemcnt - ); - - _ITRON_Objects_Open( &_ITRON_Semaphore_Information, &the_semaphore->Object ); - - /* - * If multiprocessing were supported, this is where we would announce - * the existence of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - - _Thread_Enable_dispatch(); - return E_OK; -} diff --git a/cpukit/itron/src/cre_tsk.c b/cpukit/itron/src/cre_tsk.c deleted file mode 100644 index 2053ff262c..0000000000 --- a/cpukit/itron/src/cre_tsk.c +++ /dev/null @@ -1,126 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include -#include - -#include - - -/* - * cre_tsk - Create Task - */ - -ER cre_tsk( - ID tskid, - T_CTSK *pk_ctsk -) -{ - register Thread_Control *the_thread; - bool status; - Priority_Control core_priority; - Objects_Name name; - - /* - * Validate Parameters. - */ - - if ( pk_ctsk == NULL ) - return E_PAR; - - if ((pk_ctsk->tskatr != TA_ASM ) && - (pk_ctsk->tskatr != TA_HLNG) && - (pk_ctsk->tskatr != TA_COP0) && - (pk_ctsk->tskatr != TA_COP1) && - (pk_ctsk->tskatr != TA_COP2) && - (pk_ctsk->tskatr != TA_COP3) && - (pk_ctsk->tskatr != TA_COP4) && - (pk_ctsk->tskatr != TA_COP5) && - (pk_ctsk->tskatr != TA_COP6) && - (pk_ctsk->tskatr != TA_COP7)) - return E_RSATR; - - if (( pk_ctsk->itskpri <= 0 ) || ( pk_ctsk->itskpri >= PRIORITY_MAXIMUM-1 )) - return E_PAR; - if ( pk_ctsk->task == NULL ) - return E_PAR; - if ( pk_ctsk->stksz < 0 ) - return E_PAR; - - /* - * Lock the allocator mutex for protection - */ - _RTEMS_Lock_allocator(); - - /* - * allocate the thread. - */ - - the_thread = _ITRON_Task_Allocate( tskid ); - if ( !the_thread ) { - _RTEMS_Unlock_allocator(); - return _ITRON_Task_Clarify_allocation_id_error( tskid ); - } - - /* - * Initialize the core thread for this task. - */ - - name.name_u32 = 0; - core_priority = _ITRON_Task_Priority_to_Core( pk_ctsk->itskpri ); - status = _Thread_Initialize( - &_ITRON_Task_Information, - the_thread, - NULL, - pk_ctsk->stksz, -#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) - true, /* XXX - All tasks FP (if the HW supports it) for now */ -#else - false, -#endif - core_priority, - true, /* preemptible */ - THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE, - NULL, /* no budget algorithm callout */ - 0, - name - ); - - if ( !status ) { - _ITRON_Task_Free( the_thread ); - _RTEMS_Unlock_allocator(); - return E_NOMEM; - } - - /* - * This insures we evaluate the process-wide signals pending when we - * first run. - * - * NOTE: Since the thread starts with all unblocked, this is necessary. - */ - - the_thread->do_post_task_switch_extension = true; - - the_thread->Start.entry_point = (Thread_Entry) pk_ctsk->task; - - _RTEMS_Unlock_allocator(); - return E_OK; -} diff --git a/cpukit/itron/src/def_alm.c b/cpukit/itron/src/def_alm.c deleted file mode 100644 index a2e0e1606f..0000000000 --- a/cpukit/itron/src/def_alm.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * def_alm - Define Alarm Handler - */ - -ER def_alm( - HNO almno __attribute__((unused)), - T_DALM *pk_dalm __attribute__((unused)) -) -{ -#if 0 - Objects_Control *objectAlrm; - Watchdog_Interval timeInterval; - - timeInterval = pk_dalm->almtim / 1000; - (void) _Watchdog_Remove(&objectAlrm); - _Watchdog_Initialize( - objectAlrm, - pk_dalm->almhdr, - almno, - pk_dalm->exinf); - _Watchdong_Insert_seconds(objectAlrm,timeInterval); - _Thread_Enable_dispatch(); -#endif - - return E_OK; -} diff --git a/cpukit/itron/src/def_cyc.c b/cpukit/itron/src/def_cyc.c deleted file mode 100644 index ceaa1b91c9..0000000000 --- a/cpukit/itron/src/def_cyc.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * def_cyc - Define Cyclic Handler - */ - -ER def_cyc( - HNO cycno __attribute__((unused)), - T_DCYC *pk_dcyc -) -{ - Watchdog_Control *object; -#if 0 - Watchdog_Interval timeInterval; -#endif - -/* XXX */ object = 0; - if ( pk_dcyc->cycatr != TA_HLNG) - return E_RSATR; -#if 0 - timeInterval = pk_dcyc->cyctim / 1000; - object->delta_interval = timeInterval; - _Watchdog_Initialize( - object, - pk_dcyc->cychdr, - cycno, - pk_dcyc->exinf - ); -#endif - _Watchdog_Deactivate(object); - - return E_OK; -} diff --git a/cpukit/itron/src/def_exc.c b/cpukit/itron/src/def_exc.c deleted file mode 100644 index fdc63e8b18..0000000000 --- a/cpukit/itron/src/def_exc.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * def_exc - Define Exception Handler - */ - -ER def_exc( - UINT exckind, - T_DEXC *pk_dexc -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/def_int.c b/cpukit/itron/src/def_int.c deleted file mode 100644 index 6948555d27..0000000000 --- a/cpukit/itron/src/def_int.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * def_int - Define Interrupt Handler - */ - -ER def_int( - UINT dintno __attribute__((unused)), - T_DINT *pk_dint __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/def_svc.c b/cpukit/itron/src/def_svc.c deleted file mode 100644 index efc96cb442..0000000000 --- a/cpukit/itron/src/def_svc.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * def_svc - Define Extended SVC Handler - */ - -ER def_svc( - FN s_fncd, - T_DSVC *pk_dsvc -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/del_flg.c b/cpukit/itron/src/del_flg.c deleted file mode 100644 index cf2b59210a..0000000000 --- a/cpukit/itron/src/del_flg.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * del_flg - Delete Eventflag - */ - -ER del_flg( - ID flgid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/del_mbf.c b/cpukit/itron/src/del_mbf.c deleted file mode 100644 index b94c25ddba..0000000000 --- a/cpukit/itron/src/del_mbf.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * del_mbf - Delete MessageBuffer - */ - -ER del_mbf( - ID mbfid -) -{ - ITRON_Message_buffer_Control *the_message_buffer; - Objects_Locations location; - - the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location); - switch (location) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: /* Multiprocessing not supported */ - return _ITRON_Message_buffer_Clarify_get_id_error(mbfid); - - case OBJECTS_LOCAL: - _CORE_message_queue_Flush(&the_message_buffer->message_queue); - _ITRON_Objects_Close( &_ITRON_Message_buffer_Information, - &the_message_buffer->Object); - _ITRON_Message_buffer_Free(the_message_buffer); - - /* - * If multiprocessing were supported, this is where we would announce - * the existence of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - _Thread_Enable_dispatch(); - return E_OK; - } - - return E_OK; -} diff --git a/cpukit/itron/src/del_mbx.c b/cpukit/itron/src/del_mbx.c deleted file mode 100644 index 5e3c7b353d..0000000000 --- a/cpukit/itron/src/del_mbx.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * del_mbx - Delete Mailbox - * - * - * ------Parameters-------------- - * ID mbxid The Mailbox's ID - * ------------------------------ - * - * -----Return Parameters------- - * ER ercd Itron Error Code - * ----------------------------- - * - * -----C Language Interface---- - * ER ercd = del_mbx(ID mbxid); - * ----------------------------- - * - */ - -ER del_mbx( - ID mbxid -) -{ - register ITRON_Mailbox_Control *the_mailbox; - Objects_Locations location; - - the_mailbox= _ITRON_Mailbox_Get( mbxid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Mailbox_Clarify_get_id_error( mbxid ); - - case OBJECTS_LOCAL: - _Objects_Close( &_ITRON_Mailbox_Information, &the_mailbox->Object ); - - _CORE_message_queue_Close( - &the_mailbox->message_queue, - NULL, /* Multiprocessing not supported */ - CORE_MESSAGE_QUEUE_STATUS_WAS_DELETED - ); - - _ITRON_Mailbox_Free(the_mailbox); - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/del_mpf.c b/cpukit/itron/src/del_mpf.c deleted file mode 100644 index ac1b140e7d..0000000000 --- a/cpukit/itron/src/del_mpf.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * del_mpf - Delete Fixed-Size Memorypool - */ - -ER del_mpf( - ID mpfid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/del_mpl.c b/cpukit/itron/src/del_mpl.c deleted file mode 100644 index 5c369254e3..0000000000 --- a/cpukit/itron/src/del_mpl.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * del_mpl - Delete Variable-Size Memorypool - */ - -ER del_mpl( - ID mplid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/del_por.c b/cpukit/itron/src/del_por.c deleted file mode 100644 index e5cf88bdc7..0000000000 --- a/cpukit/itron/src/del_por.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * del_por - Delete Port for Rendezvous - */ - -ER del_por( - ID porid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/del_sem.c b/cpukit/itron/src/del_sem.c deleted file mode 100644 index 404e632676..0000000000 --- a/cpukit/itron/src/del_sem.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * del_sem - Delete Semaphore - * - * This function implements the ITRON 3.0 del_sem() service. - */ - -ER del_sem( - ID semid -) -{ - ITRON_Semaphore_Control *the_semaphore; - Objects_Locations location; - - the_semaphore = _ITRON_Semaphore_Get( semid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* Multiprocessing not supported */ -#endif - case OBJECTS_ERROR: - return _ITRON_Semaphore_Clarify_get_id_error( semid ); - - case OBJECTS_LOCAL: - _CORE_semaphore_Flush( - &the_semaphore->semaphore, - NULL, /* Multiprocessing not supported */ - CORE_SEMAPHORE_WAS_DELETED - ); - - _ITRON_Objects_Close( - &_ITRON_Semaphore_Information, - &the_semaphore->Object - ); - - _ITRON_Semaphore_Free( the_semaphore ); - - /* - * If multiprocessing were supported, this is where we would announce - * the destruction of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - - _Thread_Enable_dispatch(); - return E_OK; - - } - return E_OK; -} diff --git a/cpukit/itron/src/del_tsk.c b/cpukit/itron/src/del_tsk.c deleted file mode 100644 index e7ed9442ff..0000000000 --- a/cpukit/itron/src/del_tsk.c +++ /dev/null @@ -1,74 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include -#include - -#include - - -/* - * del_tsk - Delete Task - */ - -ER del_tsk( - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - Objects_Information *the_information; - ER result = E_OK; /* to avoid warning */ - - _RTEMS_Lock_allocator(); - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - _RTEMS_Unlock_allocator(); - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - - if ( _Thread_Is_executing( the_thread ) ) { - _RTEMS_Unlock_allocator(); - _ITRON_return_errorno( E_OBJ ); - } - - if ( !_States_Is_dormant( the_thread->current_state ) ) { - _RTEMS_Unlock_allocator(); - _ITRON_return_errorno( E_OBJ ); - } - - the_information = _Objects_Get_information_id( the_thread->Object.id ); - _Thread_Close( the_information, the_thread ); - - _ITRON_Task_Free( the_thread ); - - _RTEMS_Unlock_allocator(); - result = E_OK; - break; - } - - _ITRON_return_errorno( result ); -} diff --git a/cpukit/itron/src/dis_dsp.c b/cpukit/itron/src/dis_dsp.c deleted file mode 100644 index 0f1561abaa..0000000000 --- a/cpukit/itron/src/dis_dsp.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * dis_dsp - Disable Dispatch - */ - -ER dis_dsp( void ) -{ - /* - * Disable dispatch for protection - */ - - _Thread_Disable_dispatch(); - - return E_OK; -} diff --git a/cpukit/itron/src/dis_int.c b/cpukit/itron/src/dis_int.c deleted file mode 100644 index 98412ce24c..0000000000 --- a/cpukit/itron/src/dis_int.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * dis_int - Disable Interrupt - */ - -ER dis_int( - UINT eintno __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/dly_tsk.c b/cpukit/itron/src/dly_tsk.c deleted file mode 100644 index 8c32613206..0000000000 --- a/cpukit/itron/src/dly_tsk.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * dly_tsk - Delay Task - */ - -ER dly_tsk( - DLYTIME dlytim -) -{ - Watchdog_Interval ticks; - - ticks = TOD_MILLISECONDS_TO_TICKS(dlytim); - - _Thread_Disable_dispatch(); - if ( ticks == 0 ) { - _Thread_Yield_processor(); - } else { - _Thread_Set_state( _Thread_Executing, STATES_DELAYING ); - _Watchdog_Initialize( - &_Thread_Executing->Timer, - _Thread_Delay_ended, - _Thread_Executing->Object.id, - NULL - ); - _Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks ); - } - _Thread_Enable_dispatch(); - return E_OK; -} diff --git a/cpukit/itron/src/ena_dsp.c b/cpukit/itron/src/ena_dsp.c deleted file mode 100644 index da25d99206..0000000000 --- a/cpukit/itron/src/ena_dsp.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * ena_dsp - Enable Dispatch - */ - -ER ena_dsp( void ) -{ - _Thread_Enable_dispatch(); - - return E_OK; -} diff --git a/cpukit/itron/src/ena_int.c b/cpukit/itron/src/ena_int.c deleted file mode 100644 index 234572a6a0..0000000000 --- a/cpukit/itron/src/ena_int.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ena_int - Enable Interrupt - */ - -ER ena_int( - UINT eintno __attribute__((unused)) -) -{ - return E_OK; -} - diff --git a/cpukit/itron/src/eventflags.c b/cpukit/itron/src/eventflags.c deleted file mode 100644 index a68783398a..0000000000 --- a/cpukit/itron/src/eventflags.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -/* - * _ITRON_Eventflags_Manager_initialization - * - * This routine initializes all event flags manager related data structures. - * - * Input parameters: NONE - * - * Output parameters: NONE - */ - -void _ITRON_Eventflags_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Eventflags_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_EVENTFLAGS, /* object class */ - Configuration_ITRON_API.maximum_eventflags, - /* maximum objects of this class */ - sizeof( ITRON_Eventflags_Control ), - /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ - -} diff --git a/cpukit/itron/src/exd_tsk.c b/cpukit/itron/src/exd_tsk.c deleted file mode 100644 index 41fa520ec5..0000000000 --- a/cpukit/itron/src/exd_tsk.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -#include -#include -#include -#include -#include -#include - -#include - -/* - * exd_tsk - Exit and Delete Task - */ - -void exd_tsk( void ) -{ - Objects_Information *the_information; - - _RTEMS_Lock_allocator(); - _Thread_Disable_dispatch(); - - the_information = _Objects_Get_information_id(_Thread_Executing->Object.id); - - /* This should never happen if _Thread_Get() works right */ - assert( the_information ); - - _Thread_Close( the_information, _Thread_Executing ); - - _ITRON_Task_Free( _Thread_Executing ); - - _RTEMS_Unlock_allocator(); - _Thread_Enable_dispatch(); -} diff --git a/cpukit/itron/src/ext_tsk.c b/cpukit/itron/src/ext_tsk.c deleted file mode 100644 index 20b83ff471..0000000000 --- a/cpukit/itron/src/ext_tsk.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * ext_tsk - Exit Issuing Task - */ - -void ext_tsk( void ) -{ - /* - * Figure out what to do if this happens. - * We can not return regardless - if ( _ITRON_Is_in_non_task_state() ) - return E_CTX; - */ - - _Thread_Disable_dispatch(); - - _Thread_Set_state( _Thread_Executing, STATES_DORMANT ); - _Thread_Reset( _Thread_Executing, NULL, 0 ); - - _Thread_Enable_dispatch(); -} diff --git a/cpukit/itron/src/fmempool.c b/cpukit/itron/src/fmempool.c deleted file mode 100644 index 51f8ac0a59..0000000000 --- a/cpukit/itron/src/fmempool.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -/* - * _ITRON_Fixed_memory_pool_Manager_initialization - * - * This routine initializes all fixed memory pool manager related - * data structures. - * - * Input parameters: NONE - * - * Output parameters: NONE - */ - -void _ITRON_Fixed_memory_pool_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Fixed_memory_pool_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_FIXED_MEMORY_POOLS, /* object class */ - Configuration_ITRON_API.maximum_fixed_memory_pools, - /* maximum objects of this class */ - sizeof( ITRON_Fixed_memory_pool_Control ), - /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ - -} diff --git a/cpukit/itron/src/frsm_tsk.c b/cpukit/itron/src/frsm_tsk.c deleted file mode 100644 index ce6d151011..0000000000 --- a/cpukit/itron/src/frsm_tsk.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * frsm_tsk - Forcibly Resume Suspended Task - */ - -ER frsm_tsk( - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - if ( _Thread_Is_executing( the_thread ) ) - _ITRON_return_errorno( E_OBJ ); - - if (_States_Is_dormant( the_thread->current_state )) - _ITRON_return_errorno( E_OBJ ); - - if ( ! _States_Is_suspended(the_thread->current_state) ) - _ITRON_return_errorno( E_OK ); - - _Thread_Resume( the_thread, true ); - break; - } - - _ITRON_return_errorno( E_OK ); - -} diff --git a/cpukit/itron/src/fwd_por.c b/cpukit/itron/src/fwd_por.c deleted file mode 100644 index aedba6cb1e..0000000000 --- a/cpukit/itron/src/fwd_por.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * fwd_por - Forward Rendezvous to Other Port - */ - -ER fwd_por( - ID porid __attribute__((unused)), - UINT calptn __attribute__((unused)), - RNO rdvno __attribute__((unused)), - VP msg __attribute__((unused)), - INT cmsgsz __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/get_blf.c b/cpukit/itron/src/get_blf.c deleted file mode 100644 index 34cc3f70e3..0000000000 --- a/cpukit/itron/src/get_blf.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * get_blf - Get Fixed-Size Memory Block - */ - -ER get_blf( - VP *p_blf __attribute__((unused)), - ID mpfid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/get_blk.c b/cpukit/itron/src/get_blk.c deleted file mode 100644 index 54ec3e1b24..0000000000 --- a/cpukit/itron/src/get_blk.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * get_blk - Get Variable-Size Memory Block - */ - -ER get_blk( - VP *p_blk __attribute__((unused)), - ID mplid __attribute__((unused)), - INT blksz __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/get_tid.c b/cpukit/itron/src/get_tid.c deleted file mode 100644 index e455179fe1..0000000000 --- a/cpukit/itron/src/get_tid.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - -/* - * get_tid - Get Task Identifier - */ - -ER get_tid( - ID *p_tskid -) -{ - /* - * This does not support multiprocessing. The id handling will have - * to be enhanced to support multiprocessing. - */ - - *p_tskid = _Objects_Get_index( _Thread_Executing->Object.id ); - return E_OK; -} diff --git a/cpukit/itron/src/get_tim.c b/cpukit/itron/src/get_tim.c deleted file mode 100644 index 56aa784421..0000000000 --- a/cpukit/itron/src/get_tim.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * get_tim - Get System Clock - */ - -ER get_tim( - SYSTIME *pk_tim __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/get_ver.c b/cpukit/itron/src/get_ver.c deleted file mode 100644 index c7fe75fe02..0000000000 --- a/cpukit/itron/src/get_ver.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * get_ver - Get Version Information - */ - -ER get_ver( - T_VER *pk_ver -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/itroninittasks.c b/cpukit/itron/src/itroninittasks.c deleted file mode 100644 index 6b00f91d68..0000000000 --- a/cpukit/itron/src/itroninittasks.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - -/* - * _ITRON_Task_Initialize_user_tasks - * - * This routine creates and starts all configured user - * initialzation threads. - */ - -void _ITRON_Task_Initialize_user_tasks_body( void ) -{ - uint32_t index; - uint32_t maximum; - ER return_value; - itron_initialization_tasks_table *user_tasks; - - user_tasks = Configuration_ITRON_API.User_initialization_tasks_table; - maximum = Configuration_ITRON_API.number_of_initialization_tasks; - - if ( !user_tasks || maximum == 0 ) - return; - - for ( index=0 ; index < maximum ; index++ ) { - - return_value = cre_tsk( - user_tasks[ index ].id, - &user_tasks[ index ].attributes - ); - - if ( return_value != E_OK ) - _Internal_error_Occurred( INTERNAL_ERROR_ITRON_API, true, return_value ); - - return_value = sta_tsk( user_tasks[ index ].id, 0 ); - - if ( return_value != E_OK ) - _Internal_error_Occurred( INTERNAL_ERROR_ITRON_API, true, return_value ); - - } -} diff --git a/cpukit/itron/src/itronintr.c b/cpukit/itron/src/itronintr.c deleted file mode 100644 index e2ee32f96d..0000000000 --- a/cpukit/itron/src/itronintr.c +++ /dev/null @@ -1,20 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* no ITRON API specific interrupt initialization */ diff --git a/cpukit/itron/src/itronsem.c b/cpukit/itron/src/itronsem.c deleted file mode 100644 index 15fcb78666..0000000000 --- a/cpukit/itron/src/itronsem.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include -#include - -/* - * _ITRON_Semaphore_Manager_initialization - * - * DESCRIPTION: - * - * This routine initializes all semaphore manager related data structures. - * - * Input parameters: NONE - * - * Output parameters: NONE - */ - -void _ITRON_Semaphore_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Semaphore_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_SEMAPHORES, /* object class */ - Configuration_ITRON_API.maximum_semaphores, - /* maximum objects of this class */ - sizeof(ITRON_Semaphore_Control), /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ - -} diff --git a/cpukit/itron/src/itrontime.c b/cpukit/itron/src/itrontime.c deleted file mode 100644 index cf93801c91..0000000000 --- a/cpukit/itron/src/itrontime.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* no initialization needed yet for ITRON time services */ diff --git a/cpukit/itron/src/loc_cpu.c b/cpukit/itron/src/loc_cpu.c deleted file mode 100644 index 0fc82305ed..0000000000 --- a/cpukit/itron/src/loc_cpu.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * loc_cpu - Lock CPU - */ - -ER loc_cpu( void ) -{ - return E_OK; -} diff --git a/cpukit/itron/src/mbox.c b/cpukit/itron/src/mbox.c deleted file mode 100644 index c567f378e5..0000000000 --- a/cpukit/itron/src/mbox.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -/* - * _ITRON_Mailbox_Manager_initialization - * - * This routine initializes all mailboxes manager related data structures. - * - * Input parameters: NONE - * - * Output parameters: NONE - */ - -void _ITRON_Mailbox_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Mailbox_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_MAILBOXES, /* object class */ - Configuration_ITRON_API.maximum_mailboxes, - /* maximum objects of this class */ - sizeof( ITRON_Mailbox_Control ), /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ - -} diff --git a/cpukit/itron/src/mboxtranslatereturncode.c b/cpukit/itron/src/mboxtranslatereturncode.c deleted file mode 100644 index acd34f8b24..0000000000 --- a/cpukit/itron/src/mboxtranslatereturncode.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * _ITRON_Mailbox_Translate_core_message_queue_return_code - * - * This routine translates a core message queue object status - * into the appropriate ITRON status code. - */ - -ER _ITRON_Mailbox_Translate_core_message_queue_return_code( - CORE_message_queue_Status status -) -{ - switch (status) { - case CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL: - return E_OK; - case CORE_MESSAGE_QUEUE_STATUS_TOO_MANY: - return E_TMOUT; - case CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE: - return E_PAR; - case CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT: - return E_TMOUT; - case CORE_MESSAGE_QUEUE_STATUS_TIMEOUT: - return E_TMOUT; - default: - return E_ID; - } -} diff --git a/cpukit/itron/src/msgbuffer.c b/cpukit/itron/src/msgbuffer.c deleted file mode 100644 index 7bbbafa736..0000000000 --- a/cpukit/itron/src/msgbuffer.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include - -/* - * _ITRON_Message_buffer_Manager_initialization - * - * This routine initializes all message buffer manager related data - * structures. - * - * Input parameters: NONE - * - * Output parameters: NONE - */ - -void _ITRON_Message_buffer_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Message_buffer_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_MESSAGE_BUFFERS, /* object class */ - Configuration_ITRON_API.maximum_message_buffers, - /* maximum objects of this class */ - sizeof( ITRON_Message_buffer_Control ), - /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ -} diff --git a/cpukit/itron/src/msgbuffertranslatereturncode.c b/cpukit/itron/src/msgbuffertranslatereturncode.c deleted file mode 100644 index 4623f2742a..0000000000 --- a/cpukit/itron/src/msgbuffertranslatereturncode.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * _ITRON_Message_buffer_Translate_core_message_buffer_return_code - * - * This routine translates a core message buffer object status - * into the appropriate ITRON status code. - */ - -ER _ITRON_Message_buffer_Translate_core_message_buffer_return_code( - CORE_message_queue_Status status -) -{ - switch (status) { - case CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL: - return E_OK; - case CORE_MESSAGE_QUEUE_STATUS_TOO_MANY: - return E_TMOUT; - case CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE: - return E_PAR; - case CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT: - return E_TMOUT; - case CORE_MESSAGE_QUEUE_STATUS_TIMEOUT: - return E_TMOUT; - default: - return E_ID; - } -} diff --git a/cpukit/itron/src/network.c b/cpukit/itron/src/network.c deleted file mode 100644 index 3069254e1f..0000000000 --- a/cpukit/itron/src/network.c +++ /dev/null @@ -1,20 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* no ITRON Network Manager specific initialization required */ diff --git a/cpukit/itron/src/nget_nod.c b/cpukit/itron/src/nget_nod.c deleted file mode 100644 index 7491d222ef..0000000000 --- a/cpukit/itron/src/nget_nod.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * nget_nod - Get Local Node Number - */ - -ER nget_nod( - NODE *p_node -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/nget_ver.c b/cpukit/itron/src/nget_ver.c deleted file mode 100644 index 4ebc9f7ab0..0000000000 --- a/cpukit/itron/src/nget_ver.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * nget_ver - Get Version Information of another Node - */ - -ER nget_ver( - T_VER *pk_ver, - NODE node -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/nrea_dat.c b/cpukit/itron/src/nrea_dat.c deleted file mode 100644 index bcdb8bb906..0000000000 --- a/cpukit/itron/src/nrea_dat.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * nrea_dat - Read Data from another Node - */ - -ER nrea_dat( - INT *p_reasz, - VP dstadr, - NODE srcnode, - VP srcadr, - INT datsz -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/nwri_dat.c b/cpukit/itron/src/nwri_dat.c deleted file mode 100644 index 639ece3531..0000000000 --- a/cpukit/itron/src/nwri_dat.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * nwri_dat - Write Data to another Node - */ - -ER nwri_dat( - INT *p_wrisz, - NODE dstnode, - VP dstadr, - VP srcadr, - INT datsz -) -{ - return E_OK; -} - diff --git a/cpukit/itron/src/pacp_por.c b/cpukit/itron/src/pacp_por.c deleted file mode 100644 index 2b5fcac9c1..0000000000 --- a/cpukit/itron/src/pacp_por.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * pacp_por - Poll and Accept Port for Rendezvous - */ - -ER pacp_por( - RNO *p_rdvno __attribute__((unused)), - VP msg __attribute__((unused)), - INT *p_cmsgsz __attribute__((unused)), - ID porid __attribute__((unused)), - UINT acpptn __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/pcal_por.c b/cpukit/itron/src/pcal_por.c deleted file mode 100644 index 464aa67f64..0000000000 --- a/cpukit/itron/src/pcal_por.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * pcal_por - Poll and Call Port for Rendezvous - */ - -ER pcal_por( - VP msg __attribute__((unused)), - INT *p_rmsgsz __attribute__((unused)), - ID porid __attribute__((unused)), - UINT calptn __attribute__((unused)), - INT cmsgsz __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/pget_blf.c b/cpukit/itron/src/pget_blf.c deleted file mode 100644 index d9ee7ab7a4..0000000000 --- a/cpukit/itron/src/pget_blf.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * pget_blf - Poll and Get Fixed-Size Memory Block - */ - -ER pget_blf( - VP *p_blf __attribute__((unused)), - ID mpfid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/pget_blk.c b/cpukit/itron/src/pget_blk.c deleted file mode 100644 index ab83554f30..0000000000 --- a/cpukit/itron/src/pget_blk.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * pget_blk - Poll and Get Variable-Size Memory Block - */ - -ER pget_blk( - VP *p_blk __attribute__((unused)), - ID mplid __attribute__((unused)), - INT blksz __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/pol_flg.c b/cpukit/itron/src/pol_flg.c deleted file mode 100644 index 5ff3fa9c90..0000000000 --- a/cpukit/itron/src/pol_flg.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * pol_flg - Wait for Eventflag(Polling) - */ - -ER pol_flg( - UINT *p_flgptn __attribute__((unused)), - ID flgid __attribute__((unused)), - UINT waiptn __attribute__((unused)), - UINT wfmode __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/port.c b/cpukit/itron/src/port.c deleted file mode 100644 index 1b2a2020c6..0000000000 --- a/cpukit/itron/src/port.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -/* - * _ITRON_Port_Manager_initialization - * - * This routine initializes all ports manager related data structures. - * - * Input parameters: NONE - * - * Output parameters: NONE - */ - -void _ITRON_Port_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Port_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_PORTS, /* object class */ - Configuration_ITRON_API.maximum_ports, - /* maximum objects of this class */ - sizeof( ITRON_Port_Control ), /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ - -} diff --git a/cpukit/itron/src/prcv_mbf.c b/cpukit/itron/src/prcv_mbf.c deleted file mode 100644 index e095d2ccb4..0000000000 --- a/cpukit/itron/src/prcv_mbf.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * prcv_mbf - Poll and Receive Message from MessageBuffer - */ - -ER prcv_mbf( - VP msg, - INT *p_msgsz, - ID mbfid -) -{ - return trcv_mbf(msg, p_msgsz, mbfid, TMO_POL); -} diff --git a/cpukit/itron/src/prcv_mbx.c b/cpukit/itron/src/prcv_mbx.c deleted file mode 100644 index 4986ae3744..0000000000 --- a/cpukit/itron/src/prcv_mbx.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * prcv_msg - Poll and Receive Message from Mailbox - */ - -ER prcv_msg( - T_MSG **ppk_msg, - ID mbxid -) -{ - return trcv_msg( ppk_msg, mbxid, TMO_POL ); -} diff --git a/cpukit/itron/src/preq_sem.c b/cpukit/itron/src/preq_sem.c deleted file mode 100644 index e68f92b5de..0000000000 --- a/cpukit/itron/src/preq_sem.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * preq_sem - Poll and Request Semaphore - * - * This function implements the ITRON 3.0 preq_sem() service. - */ - -ER preq_sem( - ID semid -) -{ - return twai_sem( semid, TMO_POL ); -} diff --git a/cpukit/itron/src/psnd_mbf.c b/cpukit/itron/src/psnd_mbf.c deleted file mode 100644 index bac72feb2a..0000000000 --- a/cpukit/itron/src/psnd_mbf.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * psnd_mbf - Poll and Send Message to MessageBuffer - */ - -ER psnd_mbf( - ID mbfid, - VP msg, - INT msgsz -) -{ - return tsnd_mbf( mbfid, msg, msgsz, TMO_POL ); -} diff --git a/cpukit/itron/src/rcv_mbf.c b/cpukit/itron/src/rcv_mbf.c deleted file mode 100644 index 6427f36250..0000000000 --- a/cpukit/itron/src/rcv_mbf.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * rcv_mbf - Receive Message from MessageBuffer - */ - -ER rcv_mbf( - VP msg, - INT *p_msgsz, - ID mbfid -) -{ - return trcv_mbf(msg, p_msgsz, mbfid, TMO_FEVR); -} diff --git a/cpukit/itron/src/rcv_mbx.c b/cpukit/itron/src/rcv_mbx.c deleted file mode 100644 index dde0f2697e..0000000000 --- a/cpukit/itron/src/rcv_mbx.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * rcv_msg - Receive Message from Mailbox - */ - -ER rcv_msg( - T_MSG **ppk_msg, - ID mbxid -) -{ - return trcv_msg( ppk_msg, mbxid, TMO_FEVR ); -} diff --git a/cpukit/itron/src/ref_alm.c b/cpukit/itron/src/ref_alm.c deleted file mode 100644 index 9d68d02469..0000000000 --- a/cpukit/itron/src/ref_alm.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * ref_alm - Reference Alarm Handler Status - */ - -ER ref_alm( - T_RALM *pk_ralm __attribute__((unused)), - HNO almno __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_cfg.c b/cpukit/itron/src/ref_cfg.c deleted file mode 100644 index 8d2c4a70a0..0000000000 --- a/cpukit/itron/src/ref_cfg.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_cfg - Reference Configuration Information - */ - -ER ref_cfg( - T_RCFG *pk_rcfg -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_cyc.c b/cpukit/itron/src/ref_cyc.c deleted file mode 100644 index 6ef11b20df..0000000000 --- a/cpukit/itron/src/ref_cyc.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * ref_cyc - Reference Cyclic Handler Status - */ - -ER ref_cyc( - T_RCYC *pk_rcyc, - HNO cycno __attribute__((unused)) -) -{ -#if 0 - int timeElapse_since_actCyclic; -#endif - T_DCYC *pk_dcyc; -#if 0 - Watchdog_Control *object; -#endif - -/* XXX */ pk_dcyc = 0; - -/* XXX will to use a "get" routine to map from id to object pointer */ -/* XXX and the object pointer should be of type specific to this manager */ -#if 0 - if( object->Object_ID == cycno)) -#else - if ( 1 ) -#endif - { - pk_rcyc->exinf = pk_dcyc->exinf; - pk_rcyc->cycact = pk_dcyc->cycact; -#if 0 - pk_rcyc->lfttim = pk_dcyc->cyctim - timeElapse_since_actCyclic; -#endif - - return E_OK; - } - else - return E_NOEXS; -} diff --git a/cpukit/itron/src/ref_flg.c b/cpukit/itron/src/ref_flg.c deleted file mode 100644 index 572dff4b7e..0000000000 --- a/cpukit/itron/src/ref_flg.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_flg - Reference Eventflag Status - */ - -ER ref_flg( - T_RFLG *pk_rflg __attribute__((unused)), - ID flgid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_iXX.c b/cpukit/itron/src/ref_iXX.c deleted file mode 100644 index cdf3946885..0000000000 --- a/cpukit/itron/src/ref_iXX.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_iXX - Reference Interrupt Mask(Level or Priority) - */ - -ER ref_iXX( - UINT *p_iXXXX __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_mbf.c b/cpukit/itron/src/ref_mbf.c deleted file mode 100644 index fd474ec62e..0000000000 --- a/cpukit/itron/src/ref_mbf.c +++ /dev/null @@ -1,85 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * ref_mbf - Reference Message Buffer Status - */ - -ER ref_mbf( - T_RMBF *pk_rmbf, - ID mbfid -) -{ - ITRON_Message_buffer_Control *the_message_buffer; - Objects_Locations location; - CORE_message_queue_Control *the_core_msgq; - - if ( !pk_rmbf ) - return E_PAR; /* XXX check this error code */ - - the_message_buffer = _ITRON_Message_buffer_Get( mbfid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* Multiprocessing not supported */ -#endif - case OBJECTS_ERROR: - return _ITRON_Message_buffer_Clarify_get_id_error( mbfid ); - - case OBJECTS_LOCAL: - the_core_msgq = &the_message_buffer->message_queue; - - /* - * Fill in the size of message to be sent - */ - - if (the_core_msgq->number_of_pending_messages == 0) { - pk_rmbf->msgsz = 0; - } else { - pk_rmbf->msgsz = ((CORE_message_queue_Buffer_control *) - the_core_msgq->Pending_messages.first)->Contents.size; - } - - /* - * Fill in the size of free buffer - */ - - pk_rmbf->frbufsz = - (the_core_msgq->maximum_pending_messages - - the_core_msgq->number_of_pending_messages) * - the_core_msgq->maximum_message_size; - - - /* - * Fill in whether or not there is a waiting task - */ - - if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) ) - pk_rmbf->wtsk = FALSE; - else - pk_rmbf->wtsk = TRUE; - - pk_rmbf->stsk = FALSE; - _Thread_Enable_dispatch(); - return E_OK; - } - return E_OK; -} diff --git a/cpukit/itron/src/ref_mbx.c b/cpukit/itron/src/ref_mbx.c deleted file mode 100644 index 214e52efbe..0000000000 --- a/cpukit/itron/src/ref_mbx.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * ref_mbx - Reference Mailbox Status - */ - -ER ref_mbx( - T_RMBX *pk_rmbx, - ID mbxid -) -{ - register ITRON_Mailbox_Control *the_mailbox; - Objects_Locations location; - Chain_Control *pending; - - if ( !pk_rmbx ) - return E_PAR; - - the_mailbox = _ITRON_Mailbox_Get( mbxid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Mailbox_Clarify_get_id_error( mbxid ); - - case OBJECTS_LOCAL: - - pending = &the_mailbox->message_queue.Pending_messages; - if ( _Chain_Is_empty( pending ) ) - pk_rmbx->pk_msg = NULL; - else - pk_rmbx->pk_msg = (T_MSG *) pending->first; - - /* - * Fill in whether or not there is a waiting task - */ - - if ( !_Thread_queue_First( &the_mailbox->message_queue.Wait_queue ) ) - pk_rmbx->wtsk = FALSE; - else - pk_rmbx->wtsk = TRUE; - - break; - } - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/ref_mpf.c b/cpukit/itron/src/ref_mpf.c deleted file mode 100644 index 5949649b01..0000000000 --- a/cpukit/itron/src/ref_mpf.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_mpf - Reference Fixed-Size Memorypool Status - */ - -ER ref_mpf( - T_RMPF *pk_rmpf __attribute__((unused)), - ID mpfid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_mpl.c b/cpukit/itron/src/ref_mpl.c deleted file mode 100644 index 671a210bfc..0000000000 --- a/cpukit/itron/src/ref_mpl.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_mpl - Reference Variable-Size Memorypool Status - */ - -ER ref_mpl( - T_RMPL *pk_rmpl __attribute__((unused)), - ID mplid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_por.c b/cpukit/itron/src/ref_por.c deleted file mode 100644 index d1a0fcb500..0000000000 --- a/cpukit/itron/src/ref_por.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_por - Reference Port Status - */ - -ER ref_por( - T_RPOR *pk_rpor __attribute__((unused)), - ID porid __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_sem.c b/cpukit/itron/src/ref_sem.c deleted file mode 100644 index 852e32bade..0000000000 --- a/cpukit/itron/src/ref_sem.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * ref_sem - Reference Semaphore Status - * - * This function implements the ITRON 3.0 ref_sem() service. - */ - -ER ref_sem( - ID semid, - T_RSEM *pk_rsem -) -{ - ITRON_Semaphore_Control *the_semaphore; - Objects_Locations location; - - if ( !pk_rsem ) - return E_PAR; /* XXX check this error code */ - - the_semaphore = _ITRON_Semaphore_Get( semid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* Multiprocessing not supported */ -#endif - case OBJECTS_ERROR: - return _ITRON_Semaphore_Clarify_get_id_error( semid ); - - case OBJECTS_LOCAL: - /* - * Fill in the current semaphore count - */ - - pk_rsem->semcnt = _CORE_semaphore_Get_count( &the_semaphore->semaphore ); - - /* - * Fill in whether or not there is a waiting task - */ - - if ( !_Thread_queue_First( &the_semaphore->semaphore.Wait_queue ) ) - pk_rsem->wtsk = FALSE; - else - pk_rsem->wtsk = TRUE; - - _Thread_Enable_dispatch(); - return E_OK; - } - return E_OK; -} diff --git a/cpukit/itron/src/ref_sys.c b/cpukit/itron/src/ref_sys.c deleted file mode 100644 index 8f4d3502be..0000000000 --- a/cpukit/itron/src/ref_sys.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ref_sys - Reference System Status - */ - -ER ref_sys( - T_RSYS *pk_rsys -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ref_tsk.c b/cpukit/itron/src/ref_tsk.c deleted file mode 100644 index 7804e96f44..0000000000 --- a/cpukit/itron/src/ref_tsk.c +++ /dev/null @@ -1,101 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * ref_tsk - Reference Task Status - */ - -ER ref_tsk( - T_RTSK *pk_rtsk, - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - Priority_Control core_priority; - - if (!pk_rtsk) - return E_PAR; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - - if ( location != OBJECTS_LOCAL ) - return _ITRON_Task_Clarify_get_id_error( tskid ); - - /* - * The following are extended functions [level X ]. - * XXX - tskwait, wid, wupcnt, and tskatr are presently not implemented. - */ - - pk_rtsk->tskwait = 0; - pk_rtsk->wid = 0; - pk_rtsk->wupcnt = 0; - pk_rtsk->suscnt = the_thread->suspend_count; - pk_rtsk->tskatr = 0; /* XXX - Not correctly implemented */ - pk_rtsk->task = (FP) the_thread->Start.entry_point; - core_priority = the_thread->Start.initial_priority; - pk_rtsk->itskpri = _ITRON_Task_Core_to_Priority( core_priority ); - pk_rtsk->stksz = the_thread->Start.Initial_stack.size; - - /* - * The following are required. - */ - - pk_rtsk->exinf = NULL; /* extended information */ - pk_rtsk->tskpri = - _ITRON_Task_Core_to_Priority(the_thread->current_priority); - - /* - * Mask in the tskstat information - * Convert the task state XXX double check this - */ - - pk_rtsk->tskstat = 0; - if ( the_thread == _Thread_Executing ) - pk_rtsk->tskstat |= TTS_RUN; - if ( _States_Is_ready(the_thread->current_state) ) - pk_rtsk->tskstat |= TTS_RDY; - if ( _States_Is_dormant( the_thread->current_state) ) - pk_rtsk->tskstat |= TTS_DMT; - if ( _States_Is_suspended(the_thread->current_state) ) - pk_rtsk->tskstat |= TTS_SUS; - if ( _States_Is_blocked(the_thread->current_state) ) - pk_rtsk->tskstat |= TTS_WAI; - - break; - } - - _ITRON_return_errorno( E_OK ); - -} diff --git a/cpukit/itron/src/rel_blf.c b/cpukit/itron/src/rel_blf.c deleted file mode 100644 index 30bf392471..0000000000 --- a/cpukit/itron/src/rel_blf.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * rel_blf - Release Fixed-Size Memory Block - */ - -ER rel_blf( - ID mpfid __attribute__((unused)), - VP blf __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/rel_blk.c b/cpukit/itron/src/rel_blk.c deleted file mode 100644 index d03029d087..0000000000 --- a/cpukit/itron/src/rel_blk.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * rel_blk - Release Variable-Size Memory Block - */ - -ER rel_blk( - ID mplid __attribute__((unused)), - VP blk __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/rel_wai.c b/cpukit/itron/src/rel_wai.c deleted file mode 100644 index 286a015c51..0000000000 --- a/cpukit/itron/src/rel_wai.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - -/* - * rel_wai - Release Wait of Other Task - */ - -ER rel_wai( - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - /* - * XXX - FILL ME IN. - */ - - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/ret_int.c b/cpukit/itron/src/ret_int.c deleted file mode 100644 index 173bfdc065..0000000000 --- a/cpukit/itron/src/ret_int.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ret_int - Return from Interrupt Handler - */ - -void ret_int( void ) -{ -} diff --git a/cpukit/itron/src/ret_tmr.c b/cpukit/itron/src/ret_tmr.c deleted file mode 100644 index f789e942d5..0000000000 --- a/cpukit/itron/src/ret_tmr.c +++ /dev/null @@ -1,29 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * ret_tmr - Return from Timer Handler - */ - -void ret_tmr( void ) -{ -} diff --git a/cpukit/itron/src/ret_wup.c b/cpukit/itron/src/ret_wup.c deleted file mode 100644 index 0cfe6aa8dd..0000000000 --- a/cpukit/itron/src/ret_wup.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * ret_wup - Return and Wakeup Task - */ - -void ret_wup( - ID tskid __attribute__((unused)) -) -{ -} diff --git a/cpukit/itron/src/rot_rdq.c b/cpukit/itron/src/rot_rdq.c deleted file mode 100644 index 9f57321dc9..0000000000 --- a/cpukit/itron/src/rot_rdq.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - -/* - * rot_rdq - Rotate Tasks on the Ready Queue - */ - -ER rot_rdq( - PRI tskpri -) -{ - PRI priority; - - - if (( tskpri <= 0 ) || ( tskpri >= PRIORITY_MAXIMUM-1 )) - return E_PAR; - - _Thread_Disable_dispatch(); - - /* - * Yield of processor will rotate the queue for this processor. - */ - - priority = _ITRON_Task_Core_to_Priority(_Thread_Executing->current_priority); - if ( priority == tskpri ) - _Thread_Yield_processor(); - else { - _Thread_Rotate_Ready_Queue( _ITRON_Task_Core_to_Priority( tskpri ) ); - } - _Thread_Enable_dispatch(); - - return E_OK; -} diff --git a/cpukit/itron/src/rpl_rdv.c b/cpukit/itron/src/rpl_rdv.c deleted file mode 100644 index 65d4b7a9e4..0000000000 --- a/cpukit/itron/src/rpl_rdv.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * rpl_rdv - Reply Rendezvous - */ - -ER rpl_rdv( - RNO rdvno __attribute__((unused)), - VP msg __attribute__((unused)), - INT rmsgsz __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/rsm_tsk.c b/cpukit/itron/src/rsm_tsk.c deleted file mode 100644 index 26fc1daa6f..0000000000 --- a/cpukit/itron/src/rsm_tsk.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * rsm_tsk - Resume Suspended Task - */ - -ER rsm_tsk( - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - - if ( _Thread_Is_executing( the_thread ) ) - _ITRON_return_errorno( E_OBJ ); - - if ( _States_Is_dormant( the_thread->current_state )) - _ITRON_return_errorno( E_OBJ ); - - if ( ! _States_Is_suspended(the_thread->current_state) ) - _ITRON_return_errorno( E_OBJ ); - - _Thread_Resume( the_thread, false ); - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/set_flg.c b/cpukit/itron/src/set_flg.c deleted file mode 100644 index 67b974b711..0000000000 --- a/cpukit/itron/src/set_flg.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * set_flg - Set Eventflag - */ - -ER set_flg( - ID flgid __attribute__((unused)), - UINT setptn __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/set_tim.c b/cpukit/itron/src/set_tim.c deleted file mode 100644 index 9aee8ef470..0000000000 --- a/cpukit/itron/src/set_tim.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include - -/* - * set_tim - Set System Clock - */ - -ER set_tim( - SYSTIME *pk_tim __attribute__((unused)) -) -{ -#if 0 - struct timespec time; - -/* convert *pk_tim which is 48 bits integer in binary into an ordinary - integer in milliseconds */ - -/* XXX */ temp = 0; - if(temp > 0) { - _Thread_Disable_dispatch(); - _TOD_Set(&time); - _Thread_Enable_dispatch(); - return E_OK; - } -#endif - return E_SYS; -} diff --git a/cpukit/itron/src/sig_sem.c b/cpukit/itron/src/sig_sem.c deleted file mode 100644 index 6098ab90a1..0000000000 --- a/cpukit/itron/src/sig_sem.c +++ /dev/null @@ -1,58 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * sig_sem - Signal Semaphore - * - * This function implements the ITRON 3.0 sig_sem() service. - */ - -ER sig_sem( - ID semid -) -{ - ITRON_Semaphore_Control *the_semaphore; - Objects_Locations location; - CORE_semaphore_Status status; - - the_semaphore = _ITRON_Semaphore_Get( semid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* Multiprocessing not supported */ -#endif - case OBJECTS_ERROR: - return _ITRON_Semaphore_Clarify_get_id_error( semid ); - - case OBJECTS_LOCAL: - /* - * XXX maxsemcnt - */ - - status = _CORE_semaphore_Surrender( - &the_semaphore->semaphore, - the_semaphore->Object.id, - NULL /* Multiprocessing not supported */ - ); - _Thread_Enable_dispatch(); - return _ITRON_Semaphore_Translate_core_semaphore_return_code( status ); - } - return E_OK; -} diff --git a/cpukit/itron/src/slp_tsk.c b/cpukit/itron/src/slp_tsk.c deleted file mode 100644 index 917ef11157..0000000000 --- a/cpukit/itron/src/slp_tsk.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - - -/* - * slp_tsk - Sleep Task - */ - -ER slp_tsk( void ) -{ - return E_OK; -} diff --git a/cpukit/itron/src/snd_mbf.c b/cpukit/itron/src/snd_mbf.c deleted file mode 100644 index 3c46aad75e..0000000000 --- a/cpukit/itron/src/snd_mbf.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * snd_mbf - Send Message to MessageBuffer - */ - -ER snd_mbf( - ID mbfid, - VP msg, - INT msgsz -) -{ - return tsnd_mbf( mbfid, msg, msgsz, TMO_FEVR ); -} diff --git a/cpukit/itron/src/snd_mbx.c b/cpukit/itron/src/snd_mbx.c deleted file mode 100644 index b66bd3d49e..0000000000 --- a/cpukit/itron/src/snd_mbx.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * snd_msg - Send Message to Mailbox - */ - -ER snd_msg( - ID mbxid, - T_MSG *pk_msg -) -{ - register ITRON_Mailbox_Control *the_mailbox; - Objects_Locations location; - uint32_t message_priority; - void *message_contents; - CORE_message_queue_Status msg_status; - - if ( !pk_msg ) - return E_PAR; - - the_mailbox = _ITRON_Mailbox_Get( mbxid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Mailbox_Clarify_get_id_error( mbxid ); - - case OBJECTS_LOCAL: - if ( the_mailbox->do_message_priority ) - message_priority = pk_msg->msgpri; - else - message_priority = CORE_MESSAGE_QUEUE_SEND_REQUEST; - - message_contents = pk_msg; - msg_status = _CORE_message_queue_Submit( - &the_mailbox->message_queue, - &message_contents, - sizeof(T_MSG *), - the_mailbox->Object.id, - NULL, /* multiprocessing not supported */ - message_priority, - false, /* do not allow sender to block */ - 0 /* no timeout */ - ); - break; - } - - _ITRON_return_errorno( - _ITRON_Mailbox_Translate_core_message_queue_return_code( msg_status ) - ); -} diff --git a/cpukit/itron/src/sta_tsk.c b/cpukit/itron/src/sta_tsk.c deleted file mode 100644 index bdab1e91c1..0000000000 --- a/cpukit/itron/src/sta_tsk.c +++ /dev/null @@ -1,71 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * sta_tsk - Start Task - */ - -ER sta_tsk( - ID tskid, - INT stacd __attribute__((unused)) -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - bool status; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - - if ( !_States_Is_dormant( the_thread->current_state ) ) - _ITRON_return_errorno( E_OBJ ); - - status = _Thread_Start( - the_thread, - THREAD_START_NUMERIC, /* XXX should be able to say we have no arg */ - the_thread->Start.entry_point, - 0, /* XXX supercore forces us to have an arg */ - 0 /* unused */ - ); - - /* - * This error can not happen entry_point is checked in create. - if ( !status ) - _ITRON_return_errorno( E_OBJ ); - */ - - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/sus_tsk.c b/cpukit/itron/src/sus_tsk.c deleted file mode 100644 index d586b9bf33..0000000000 --- a/cpukit/itron/src/sus_tsk.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * Task-Dependent Synchronization Functions - */ - -/* - * sus_tsk - Suspend Other Task - */ - -ER sus_tsk( - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - - if ( _Thread_Is_executing( the_thread ) ) - _ITRON_return_errorno( E_OBJ ); - - if (the_thread->suspend_count == INT_MAX ) - _ITRON_return_errorno( E_QOVR ); - - _Thread_Suspend( the_thread ); - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/sysmgmt.c b/cpukit/itron/src/sysmgmt.c deleted file mode 100644 index 4606b95649..0000000000 --- a/cpukit/itron/src/sysmgmt.c +++ /dev/null @@ -1,20 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* No ITRON API System Management Manager specific initialization required */ diff --git a/cpukit/itron/src/tacp_por.c b/cpukit/itron/src/tacp_por.c deleted file mode 100644 index d4b62f31b7..0000000000 --- a/cpukit/itron/src/tacp_por.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * tacp_por - Accept Port for Rendezvous with Timeout - */ - -ER tacp_por( - RNO *p_rdvno __attribute__((unused)), - VP msg __attribute__((unused)), - INT *p_cmsgsz __attribute__((unused)), - ID porid __attribute__((unused)), - UINT acpptn __attribute__((unused)), - TMO tmout __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/task.c b/cpukit/itron/src/task.c deleted file mode 100644 index c47b002d90..0000000000 --- a/cpukit/itron/src/task.c +++ /dev/null @@ -1,184 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#if 0 -/* - * _ITRON_Task_Create_extension - * - * This routine is an extension routine that is invoked as part - * of creating any type of task or thread in the system. If the - * task is created via another API, then this routine is invoked - * and this API given the opportunity to initialize its extension - * area. - */ - -bool _ITRON_Task_Create_extension( - Thread_Control *executing, - Thread_Control *created -) -{ - /* - * Until we actually put data in this structure, do not even - * allocate it. - */ -#if 0 - ITRON_API_Control *api; - - api = _Workspace_Allocate( sizeof( ITRON_API_Control ) ); - - if ( !api ) - return false; - - created->API_Extensions[ THREAD_API_ITRON ] = api; -#else - created->API_Extensions[ THREAD_API_ITRON ] = NULL; -#endif - - /* - * Initialize the ITRON API extension - */ - - return true; -} - -/* - * _ITRON_Task_Delete_extension - * - * This extension routine is invoked when a task is deleted. - */ - -User_extensions_routine _ITRON_Task_Delete_extension( - Thread_Control *executing, - Thread_Control *deleted -) -{ - /* - * Until we actually put data in this structure, do not even - * allocate it. - */ -#if 0 - (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_ITRON ] ); - - deleted->API_Extensions[ THREAD_API_ITRON ] = NULL; -#endif -} -#endif - -/* - * _ITRON_Task_Initialize_user_tasks - * - * This routine creates and starts all configured user - * initialzation threads. - */ - -void _ITRON_Task_Initialize_user_tasks( void ) -{ - if ( _ITRON_Initialize_user_tasks_p ) - (*_ITRON_Initialize_user_tasks_p)(); -} - -/* - * At this point in time, the ITRON API does not need any other - * extensions. See the POSIX and RTEMS API extensions for - * examples of how they can be used. - */ - -/* - * Extension Tables - */ - -API_extensions_Control _ITRON_Task_API_extensions = { - { NULL, NULL }, - #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) - NULL, /* predriver */ - #endif - _ITRON_Task_Initialize_user_tasks, /* postdriver */ - NULL /* post switch */ -}; - -/* - * Until ITRON needs this, do not even declare it. - */ -#if 0 -User_extensions_Control _ITRON_Task_User_extensions = { - { NULL, NULL }, - { { NULL, NULL }, NULL }, - { - _ITRON_Task_Create_extension, /* create */ - NULL, /* start */ - NULL, /* restart */ - _ITRON_Task_Delete_extension, /* delete */ - NULL, /* switch */ - NULL, /* begin */ - NULL, /* exitted */ - NULL /* fatal */ - } -}; -#endif - -/* - * _ITRON_Task_Manager_initialization - * - * This routine initializes all Task Manager related data structures. - * - * Input parameters: - * maximum_tasks - number of tasks to initialize - * - * Output parameters: NONE - */ - -void _ITRON_Task_Manager_initialization(void) -{ - - _Objects_Initialize_information( - &_ITRON_Task_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_TASKS, /* object class */ - Configuration_ITRON_API.maximum_tasks, - /* maximum objects of this class */ - sizeof( Thread_Control ), /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Until ITRON needs this, do not even declare it. - */ - #if 0 - /* - * Add all the extensions for this API - */ - _User_extensions_Add_API_set( &_ITRON_Task_User_extensions ); - #endif - - _API_extensions_Add( &_ITRON_Task_API_extensions ); - -} diff --git a/cpukit/itron/src/tcal_por.c b/cpukit/itron/src/tcal_por.c deleted file mode 100644 index 575242e149..0000000000 --- a/cpukit/itron/src/tcal_por.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * tcal_por - Call Port for Rendezvous with Timeout - */ - -ER tcal_por( - VP msg __attribute__((unused)), - INT *p_rmsgsz __attribute__((unused)), - ID porid __attribute__((unused)), - UINT calptn __attribute__((unused)), - INT cmsgsz __attribute__((unused)), - TMO tmout __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/ter_tsk.c b/cpukit/itron/src/ter_tsk.c deleted file mode 100644 index bdf22d7373..0000000000 --- a/cpukit/itron/src/ter_tsk.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * ter_tsk - Terminate Other Task - Set State to DORMANT - */ - -ER ter_tsk( - ID tskid -) -{ - register Thread_Control *the_thread; - Objects_Locations location; - - the_thread = _ITRON_Task_Get( tskid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); - - case OBJECTS_LOCAL: - - if ( _Thread_Is_executing( the_thread ) ) - _ITRON_return_errorno( E_OBJ ); - - if ( _States_Is_dormant( the_thread->current_state ) ) - _ITRON_return_errorno( E_OBJ ); - - _Thread_Restart( the_thread, NULL, 0 ); - _Thread_Set_state( the_thread, STATES_DORMANT ); - break; - } - - _ITRON_return_errorno( E_OK ); -} diff --git a/cpukit/itron/src/tget_blf.c b/cpukit/itron/src/tget_blf.c deleted file mode 100644 index 9d6b41e6ec..0000000000 --- a/cpukit/itron/src/tget_blf.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * tget_blf - Get Fixed-Size Memory Block with Timeout - */ - -ER tget_blf( - VP *p_blf __attribute__((unused)), - ID mpfid __attribute__((unused)), - TMO tmout __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/tget_blk.c b/cpukit/itron/src/tget_blk.c deleted file mode 100644 index 67eec3c28f..0000000000 --- a/cpukit/itron/src/tget_blk.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * tget_blk - Get Variable-Size Memory Block with Timeout - */ - -ER tget_blk( - VP *p_blk __attribute__((unused)), - ID mplid __attribute__((unused)), - INT blksz __attribute__((unused)), - TMO tmout __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/trcv_mbf.c b/cpukit/itron/src/trcv_mbf.c deleted file mode 100644 index 1aee879682..0000000000 --- a/cpukit/itron/src/trcv_mbf.c +++ /dev/null @@ -1,88 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * trcv_mbf - Receive Message from MessageBuffer with Timeout - */ - -ER trcv_mbf( - VP msg, - INT *p_msgsz, - ID mbfid, - TMO tmout -) -{ - ITRON_Message_buffer_Control *the_message_buffer; - Objects_Locations location; - CORE_message_queue_Status status; - bool wait; - Watchdog_Interval interval; - size_t msgsz; - - interval = 0; - if (tmout == TMO_POL) { - wait = false; - } else { - wait = true; - if (tmout != TMO_FEVR) - interval = TOD_MILLISECONDS_TO_TICKS(tmout); - } - - if (wait && _ITRON_Is_in_non_task_state() ) - return E_CTX; - - if (!p_msgsz || !msg || tmout <= -2) - return E_PAR; - - the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location); - switch (location) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: /* Multiprocessing not supported */ - return _ITRON_Message_buffer_Clarify_get_id_error(mbfid); - - case OBJECTS_LOCAL: - _CORE_message_queue_Seize( - &the_message_buffer->message_queue, - the_message_buffer->Object.id, - msg, - &msgsz, - wait, - interval - ); - _Thread_Enable_dispatch(); - *p_msgsz = msgsz; - status = (CORE_message_queue_Status)_Thread_Executing->Wait.return_code; - return - _ITRON_Message_buffer_Translate_core_message_buffer_return_code(status); - } - - /* - * If multiprocessing were supported, this is where we would announce - * the existence of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - return E_OK; -} diff --git a/cpukit/itron/src/trcv_mbx.c b/cpukit/itron/src/trcv_mbx.c deleted file mode 100644 index 156b3b004d..0000000000 --- a/cpukit/itron/src/trcv_mbx.c +++ /dev/null @@ -1,78 +0,0 @@ -/* - * ITRON 3.0 Mailbox Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -/* - * trcv_msg - Receive Message from Mailbox with Timeout - */ - -ER trcv_msg( - T_MSG **ppk_msg, - ID mbxid, - TMO tmout -) -{ - register ITRON_Mailbox_Control *the_mailbox; - Watchdog_Interval interval; - bool wait; - Objects_Locations location; - size_t size; - - if (!ppk_msg) - return E_PAR; - - interval = 0; - if ( tmout == TMO_POL ) { - wait = false; - } else { - wait = true; - if ( tmout != TMO_FEVR ) - interval = TOD_MILLISECONDS_TO_TICKS(tmout); - } - - if ( wait && _ITRON_Is_in_non_task_state() ) - return E_CTX; - - the_mailbox = _ITRON_Mailbox_Get( mbxid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - return _ITRON_Mailbox_Clarify_get_id_error( mbxid ); - - case OBJECTS_LOCAL: - - _CORE_message_queue_Seize( - &the_mailbox->message_queue, - the_mailbox->Object.id, - ppk_msg, - &size, - wait, - interval - ); - break; - } - - _ITRON_return_errorno( - _ITRON_Mailbox_Translate_core_message_queue_return_code( - _Thread_Executing->Wait.return_code ) ); -} diff --git a/cpukit/itron/src/tslp_tsk.c b/cpukit/itron/src/tslp_tsk.c deleted file mode 100644 index b90a370de9..0000000000 --- a/cpukit/itron/src/tslp_tsk.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * tslp_tsk - Sleep Task with Timeout - */ - -ER tslp_tsk( - TMO tmout __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/tsnd_mbf.c b/cpukit/itron/src/tsnd_mbf.c deleted file mode 100644 index c6df538572..0000000000 --- a/cpukit/itron/src/tsnd_mbf.c +++ /dev/null @@ -1,92 +0,0 @@ -/* - * ITRON Message Buffer Manager - * - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include - -#include /* only for blocking */ - -/* - * tsnd_mbf - Send Message to MessageBuffer with Timeout - */ - -ER tsnd_mbf( - ID mbfid, - VP msg, - INT msgsz, - TMO tmout -) -{ - ITRON_Message_buffer_Control *the_message_buffer; - Objects_Locations location; - Watchdog_Interval interval; - bool wait; - CORE_message_queue_Status msg_status; - - if (msgsz <= 0 || !msg) - return E_PAR; - - interval = 0; - if ( tmout == TMO_POL ) { - wait = false; - } else { - wait = true; - if ( tmout != TMO_FEVR ) - interval = TOD_MILLISECONDS_TO_TICKS(tmout); - } - - if ( wait && _ITRON_Is_in_non_task_state() ) - return E_CTX; - - the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location); - switch (location) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: /* Multiprocessing not supported */ - return _ITRON_Message_buffer_Clarify_get_id_error(mbfid); - - case OBJECTS_LOCAL: - /* XXX Submit needs to take into account blocking */ - msg_status = _CORE_message_queue_Submit( - &the_message_buffer->message_queue, - msg, - msgsz, - the_message_buffer->Object.id, - NULL, - CORE_MESSAGE_QUEUE_SEND_REQUEST, - wait, /* sender may block */ - interval /* timeout interval */ - ); - _Thread_Enable_dispatch(); - return _ITRON_Message_buffer_Translate_core_message_buffer_return_code( - msg_status - ); - } - - /* - * If multiprocessing were supported, this is where we would announce - * the existence of the semaphore to the rest of the system. - */ - -#if defined(RTEMS_MULTIPROCESSING) -#endif - - return E_OK; -} diff --git a/cpukit/itron/src/twai_flg.c b/cpukit/itron/src/twai_flg.c deleted file mode 100644 index 676c6aac74..0000000000 --- a/cpukit/itron/src/twai_flg.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * twai_flg - Wait on Eventflag with Timeout - */ - -ER twai_flg( - UINT *p_flgptn __attribute__((unused)), - ID flgid __attribute__((unused)), - UINT waiptn __attribute__((unused)), - UINT wfmode __attribute__((unused)), - TMO tmout __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/twai_sem.c b/cpukit/itron/src/twai_sem.c deleted file mode 100644 index e17de71e28..0000000000 --- a/cpukit/itron/src/twai_sem.c +++ /dev/null @@ -1,72 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * twai_sem - Wait on Semaphore with Timeout - * - * This function implements the ITRON 3.0 twai_sem() service. - */ - -ER twai_sem( - ID semid, - TMO tmout -) -{ - ITRON_Semaphore_Control *the_semaphore; - Objects_Locations location; - Watchdog_Interval interval; - bool blocking; - - interval = 0; - if ( tmout == TMO_POL ) { - blocking = false; - } else { - blocking = true; - - if ( tmout != TMO_FEVR ) - interval = TOD_MILLISECONDS_TO_TICKS(tmout); - - if ( _ITRON_Is_in_non_task_state() ) - return E_CTX; - } - - the_semaphore = _ITRON_Semaphore_Get( semid, &location ); - switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: /* Multiprocessing not supported */ -#endif - case OBJECTS_ERROR: - return _ITRON_Semaphore_Clarify_get_id_error( semid ); - - case OBJECTS_LOCAL: - _CORE_semaphore_Seize( - &the_semaphore->semaphore, - the_semaphore->Object.id, - blocking, /* wait for a timeout */ - interval /* timeout value */ - ); - _Thread_Enable_dispatch(); - return _ITRON_Semaphore_Translate_core_semaphore_return_code( - _Thread_Executing->Wait.return_code - ); - } - return E_OK; -} diff --git a/cpukit/itron/src/unl_cpu.c b/cpukit/itron/src/unl_cpu.c deleted file mode 100644 index ed4b05e783..0000000000 --- a/cpukit/itron/src/unl_cpu.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * unl_cpu - Unlock CPU - */ - -ER unl_cpu( void ) -{ - return E_OK; -} diff --git a/cpukit/itron/src/vmempool.c b/cpukit/itron/src/vmempool.c deleted file mode 100644 index ea2548f430..0000000000 --- a/cpukit/itron/src/vmempool.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2008. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include -#include -#include - -/* - * _ITRON_Variable_memory_pool_Manager_initialization - * - * This routine initializes all variable memory pool manager related - * data structures. - * - * Input parameters: - * maximum_variable_memory_pools - maximum configured variable memory pools - * - * Output parameters: NONE - */ - -void _ITRON_Variable_memory_pool_Manager_initialization(void) -{ - _Objects_Initialize_information( - &_ITRON_Variable_memory_pool_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_VARIABLE_MEMORY_POOLS, /* object class */ - Configuration_ITRON_API.maximum_memory_pools, - /* maximum objects of this class */ - sizeof( ITRON_Variable_memory_pool_Control ), - /* size of this object's control block */ - false, /* true if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ -#if defined(RTEMS_MULTIPROCESSING) - , - false, /* true if this is a global object class */ - NULL /* Proxy extraction support callout */ -#endif - ); - - /* - * Register the MP Process Packet routine. - * - * NOTE: No MP Support YET in RTEMS ITRON implementation. - */ - -} diff --git a/cpukit/itron/src/wai_flg.c b/cpukit/itron/src/wai_flg.c deleted file mode 100644 index 3b6782d1c8..0000000000 --- a/cpukit/itron/src/wai_flg.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * COPYRIGHT (c) 1989-2007. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include - -/* - * wai_flg - Wait on Eventflag - */ - -ER wai_flg( - UINT *p_flgptn __attribute__((unused)), - ID flgid __attribute__((unused)), - UINT waiptn __attribute__((unused)), - UINT wfmode __attribute__((unused)) -) -{ - return E_OK; -} diff --git a/cpukit/itron/src/wai_sem.c b/cpukit/itron/src/wai_sem.c deleted file mode 100644 index 7c4364b594..0000000000 --- a/cpukit/itron/src/wai_sem.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include - -/* - * wai_sem - Wait on Semaphore - * - * This function implements the ITRON 3.0 wai_sem() service. - */ - -ER wai_sem( - ID semid -) -{ - return twai_sem( semid, TMO_FEVR ); -} diff --git a/cpukit/itron/src/wup_tsk.c b/cpukit/itron/src/wup_tsk.c deleted file mode 100644 index 169278a479..0000000000 --- a/cpukit/itron/src/wup_tsk.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include - -#include -#include -#include -#include -#include - -#include - - -/* - * wup_tsk - Wakeup Other Task - */ - -ER wup_tsk( - ID tskid __attribute__((unused)) -) -{ - return E_OK; -} -- cgit v1.2.3