[26] | 1 | /*
|
---|
| 2 | * TOPPERS/JSP Kernel
|
---|
| 3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
| 4 | * Just Standard Profile Kernel
|
---|
| 5 | *
|
---|
| 6 | * Copyright (C) 2006-2010 by Witz Corporation, JAPAN
|
---|
| 7 | *
|
---|
| 8 | * The above copyright holders grant permission gratis to use,
|
---|
| 9 | * duplicate, modify, or redistribute (hereafter called use) this
|
---|
| 10 | * software (including the one made by modifying this software),
|
---|
| 11 | * provided that the following four conditions (1) through (4) are
|
---|
| 12 | * satisfied.
|
---|
| 13 | *
|
---|
| 14 | * (1) When this software is used in the form of source code, the above
|
---|
| 15 | * copyright notice, this use conditions, and the disclaimer shown
|
---|
| 16 | * below must be retained in the source code without modification.
|
---|
| 17 | *
|
---|
| 18 | * (2) When this software is redistributed in the forms usable for the
|
---|
| 19 | * development of other software, such as in library form, the above
|
---|
| 20 | * copyright notice, this use conditions, and the disclaimer shown
|
---|
| 21 | * below must be shown without modification in the document provided
|
---|
| 22 | * with the redistributed software, such as the user manual.
|
---|
| 23 | *
|
---|
| 24 | * (3) When this software is redistributed in the forms unusable for the
|
---|
| 25 | * development of other software, such as the case when the software
|
---|
| 26 | * is embedded in a piece of equipment, either of the following two
|
---|
| 27 | * conditions must be satisfied:
|
---|
| 28 | *
|
---|
| 29 | * (a) The above copyright notice, this use conditions, and the
|
---|
| 30 | * disclaimer shown below must be shown without modification in
|
---|
| 31 | * the document provided with the redistributed software, such as
|
---|
| 32 | * the user manual.
|
---|
| 33 | *
|
---|
| 34 | * (b) How the software is to be redistributed must be reported to the
|
---|
| 35 | * TOPPERS Project according to the procedure described
|
---|
| 36 | * separately.
|
---|
| 37 | *
|
---|
| 38 | * (4) The above copyright holders and the TOPPERS Project are exempt
|
---|
| 39 | * from responsibility for any type of damage directly or indirectly
|
---|
| 40 | * caused from the use of this software and are indemnified by any
|
---|
| 41 | * users or end users of this software from any and all causes of
|
---|
| 42 | * action whatsoever.
|
---|
| 43 | *
|
---|
| 44 | * THIS SOFTWARE IS PROVIDED "AS IS." THE ABOVE COPYRIGHT HOLDERS AND
|
---|
| 45 | * THE TOPPERS PROJECT DISCLAIM ANY EXPRESS OR IMPLIED WARRANTIES,
|
---|
| 46 | * INCLUDING, BUT NOT LIMITED TO, ITS APPLICABILITY TO A PARTICULAR
|
---|
| 47 | * PURPOSE. IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS AND THE
|
---|
| 48 | * TOPPERS PROJECT BE LIABLE FOR ANY TYPE OF DAMAGE DIRECTLY OR
|
---|
| 49 | * INDIRECTLY CAUSED FROM THE USE OF THIS SOFTWARE.
|
---|
| 50 | *
|
---|
| 51 | * ä¸è¨èä½æ¨©è
|
---|
| 52 | ã¯ï¼ä»¥ä¸ã® (1)ã(4) ã®æ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§
|
---|
| 53 | * ã¢ï¼æ¬ã½ããã¦ã§ã¢ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹å¤ã»
|
---|
| 54 | * åé
|
---|
| 55 | å¸ï¼ä»¥ä¸ï¼å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
| 56 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½æ¨©
|
---|
| 57 | * 表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼ã¹
|
---|
| 58 | * ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
| 59 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿ç¨
|
---|
| 60 | * ã§ããå½¢ã§åé
|
---|
| 61 | å¸ããå ´åã«ã¯ï¼åé
|
---|
| 62 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
| 63 | ã
|
---|
| 64 | * ãã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿
|
---|
| 65 | * 証è¦å®ãæ²è¼ãããã¨ï¼
|
---|
| 66 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿ç¨
|
---|
| 67 | * ã§ããªãå½¢ã§åé
|
---|
| 68 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®ããããã®æ¡ä»¶ãæºãããã¨ï¼
|
---|
| 69 | * (a) åé
|
---|
| 70 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
| 71 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½
|
---|
| 72 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
| 73 | * (b) åé
|
---|
| 74 | å¸ã®å½¢æ
|
---|
| 75 | ãï¼å¥ã«å®ããæ¹æ³ã«ãã£ã¦ï¼TOPPERSããã¸ã§ã¯ãã«å ±
|
---|
| 76 | * åãããã¨ï¼
|
---|
| 77 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ害
|
---|
| 78 | * ãããï¼ä¸è¨èä½æ¨©è
|
---|
| 79 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
| 80 | 責ãããã¨ï¼ã¾ãï¼
|
---|
| 81 | * æ¬ã½ããã¦ã§ã¢ã®ã¦ã¼ã¶ã¾ãã¯ã¨ã³ãã¦ã¼ã¶ããã®ãããªãçç±ã«åºã¥
|
---|
| 82 | * ãè«æ±ãããï¼ä¸è¨èä½æ¨©è
|
---|
| 83 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
| 84 | 責ãããã¨ï¼
|
---|
| 85 | *
|
---|
| 86 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨èä½æ¨©è
|
---|
| 87 | ãã
|
---|
| 88 | * ã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ç¹å®ã®ä½¿ç¨ç®çã«å¯¾ã
|
---|
| 89 | * ãé©åæ§ãå«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®å©ç¨
|
---|
| 90 | * ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ害ã«é¢ãã¦ãï¼ãã®è²¬ä»»ãè²
|
---|
| 91 | * ããªãï¼
|
---|
| 92 | *
|
---|
| 93 | * @(#) $Id: api.h,v 1.1 2006/04/10 08:19:25 honda Exp $
|
---|
| 94 | */
|
---|
| 95 |
|
---|
| 96 | #ifndef API_H
|
---|
| 97 | #define API_H
|
---|
| 98 |
|
---|
| 99 | #define __cycini
|
---|
| 100 | #define __cycenq
|
---|
| 101 | #define __sta_cyc
|
---|
| 102 | #define __stp_cyc
|
---|
| 103 | #define __cyccal
|
---|
| 104 | #define __dtqini
|
---|
| 105 | #define __dtqenq
|
---|
| 106 | #define __dtqfenq
|
---|
| 107 | #define __dtqdeq
|
---|
| 108 | #define __dtqsnd
|
---|
| 109 | #define __dtqrcv
|
---|
| 110 | #define __snd_dtq
|
---|
| 111 | #define __psnd_dtq
|
---|
| 112 | #define __ipsnd_dtq
|
---|
| 113 | #define __tsnd_dtq
|
---|
| 114 | #define __fsnd_dtq
|
---|
| 115 | #define __ifsnd_dtq
|
---|
| 116 | #define __rcv_dtq
|
---|
| 117 | #define __prcv_dtq
|
---|
| 118 | #define __trcv_dtq
|
---|
| 119 | #define __flgini
|
---|
| 120 | #define __flgcnd
|
---|
| 121 | #define __set_flg
|
---|
| 122 | #define __iset_flg
|
---|
| 123 | #define __clr_flg
|
---|
| 124 | #define __wai_flg
|
---|
| 125 | #define __pol_flg
|
---|
| 126 | #define __twai_flg
|
---|
| 127 | #define __excini
|
---|
| 128 | #define __vxsns_ctx
|
---|
| 129 | #define __vxsns_loc
|
---|
| 130 | #define __vxsns_dsp
|
---|
| 131 | #define __vxsns_dpn
|
---|
| 132 | #define __vxsns_tex
|
---|
| 133 | #define __inhini
|
---|
| 134 | #define __mbxini
|
---|
| 135 | #define __snd_mbx
|
---|
| 136 | #define __rcv_mbx
|
---|
| 137 | #define __prcv_mbx
|
---|
| 138 | #define __trcv_mbx
|
---|
| 139 | #define __mpfini
|
---|
| 140 | #define __mpfget
|
---|
| 141 | #define __get_mpf
|
---|
| 142 | #define __pget_mpf
|
---|
| 143 | #define __tget_mpf
|
---|
| 144 | #define __rel_mpf
|
---|
| 145 | #define __semini
|
---|
| 146 | #define __sig_sem
|
---|
| 147 | #define __isig_sem
|
---|
| 148 | #define __wai_sem
|
---|
| 149 | #define __pol_sem
|
---|
| 150 | #define __twai_sem
|
---|
| 151 | #define __rot_rdq
|
---|
| 152 | #define __irot_rdq
|
---|
| 153 | #define __get_tid
|
---|
| 154 | #define __iget_tid
|
---|
| 155 | #define __loc_cpu
|
---|
| 156 | #define __iloc_cpu
|
---|
| 157 | #define __unl_cpu
|
---|
| 158 | #define __iunl_cpu
|
---|
| 159 | #define __dis_dsp
|
---|
| 160 | #define __ena_dsp
|
---|
| 161 | #define __sns_ctx
|
---|
| 162 | #define __sns_loc
|
---|
| 163 | #define __sns_dsp
|
---|
| 164 | #define __sns_dpn
|
---|
| 165 | #define __logini
|
---|
| 166 | #define __vwri_log
|
---|
| 167 | #define __vrea_log
|
---|
| 168 | #define __vmsk_log
|
---|
| 169 | #define __logter
|
---|
| 170 | #define __tskini
|
---|
| 171 | #define __tsksched
|
---|
| 172 | #define __tskrun
|
---|
| 173 | #define __tsknrun
|
---|
| 174 | #define __tskdmt
|
---|
| 175 | #define __tskact
|
---|
| 176 | #define __tskext
|
---|
| 177 | #define __tskpri
|
---|
| 178 | #define __tskrot
|
---|
| 179 | #define __tsktex
|
---|
| 180 | #define __ras_tex
|
---|
| 181 | #define __iras_tex
|
---|
| 182 | #define __dis_tex
|
---|
| 183 | #define __ena_tex
|
---|
| 184 | #define __sns_tex
|
---|
| 185 | #define __act_tsk
|
---|
| 186 | #define __iact_tsk
|
---|
| 187 | #define __can_act
|
---|
| 188 | #define __ext_tsk
|
---|
| 189 | #define __ter_tsk
|
---|
| 190 | #define __chg_pri
|
---|
| 191 | #define __get_pri
|
---|
| 192 | #define __slp_tsk
|
---|
| 193 | #define __tslp_tsk
|
---|
| 194 | #define __wup_tsk
|
---|
| 195 | #define __iwup_tsk
|
---|
| 196 | #define __can_wup
|
---|
| 197 | #define __rel_wai
|
---|
| 198 | #define __irel_wai
|
---|
| 199 | #define __sus_tsk
|
---|
| 200 | #define __rsm_tsk
|
---|
| 201 | #define __frsm_tsk
|
---|
| 202 | #define __dly_tsk
|
---|
| 203 | #define __tmeini
|
---|
| 204 | #define __tmeup
|
---|
| 205 | #define __tmedown
|
---|
| 206 | #define __tmeins
|
---|
| 207 | #define __tmedel
|
---|
| 208 | #define __isig_tim
|
---|
| 209 | #define __set_tim
|
---|
| 210 | #define __get_tim
|
---|
| 211 | #define __vxget_tim
|
---|
| 212 | #define __waimake
|
---|
| 213 | #define __waicmp
|
---|
| 214 | #define __waitmo
|
---|
| 215 | #define __waitmook
|
---|
| 216 | #define __waican
|
---|
| 217 | #define __wairel
|
---|
| 218 | #define __wobjwai
|
---|
| 219 | #define __wobjwaitmo
|
---|
| 220 | #define __wobjpri
|
---|
| 221 |
|
---|
| 222 |
|
---|
| 223 | #endif
|
---|
| 224 |
|
---|