source: rtems/cpukit/itron/include/itronsys/port.h @ c4a3f1e

Last change on this file since c4a3f1e was c4a3f1e, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:46:52

2003-09-04 Joel Sherrill <joel@…>

  • include/itron.h, include/itronsys/eventflags.h, include/itronsys/fmempool.h, include/itronsys/intr.h, include/itronsys/mbox.h, include/itronsys/msgbuffer.h, include/itronsys/network.h, include/itronsys/port.h, include/itronsys/semaphore.h, include/itronsys/status.h, include/itronsys/sysmgmt.h, include/itronsys/task.h, include/itronsys/time.h, include/itronsys/types.h, include/itronsys/vmempool.h, include/rtems/itron/config.h, include/rtems/itron/eventflags.h, include/rtems/itron/fmempool.h, include/rtems/itron/intr.h, include/rtems/itron/itronapi.h, include/rtems/itron/mbox.h, include/rtems/itron/msgbuffer.h, include/rtems/itron/network.h, include/rtems/itron/object.h, include/rtems/itron/port.h, include/rtems/itron/semaphore.h, include/rtems/itron/sysmgmt.h, include/rtems/itron/task.h, include/rtems/itron/time.h, include/rtems/itron/vmempool.h, inline/rtems/itron/eventflags.inl, inline/rtems/itron/fmempool.inl, inline/rtems/itron/intr.inl, inline/rtems/itron/mbox.inl, inline/rtems/itron/msgbuffer.inl, inline/rtems/itron/network.inl, inline/rtems/itron/port.inl, inline/rtems/itron/semaphore.inl, inline/rtems/itron/sysmgmt.inl, inline/rtems/itron/task.inl, inline/rtems/itron/time.inl, inline/rtems/itron/vmempool.inl, macros/rtems/itron/eventflags.inl, macros/rtems/itron/fmempool.inl, macros/rtems/itron/intr.inl, macros/rtems/itron/mbox.inl, macros/rtems/itron/msgbuffer.inl, macros/rtems/itron/network.inl, macros/rtems/itron/port.inl, macros/rtems/itron/semaphore.inl, macros/rtems/itron/sysmgmt.inl, macros/rtems/itron/task.inl, macros/rtems/itron/time.inl, macros/rtems/itron/vmempool.inl, src/can_wup.c, src/chg_pri.c, src/cre_mbf.c, src/cre_mbx.c, src/cre_sem.c, src/cre_tsk.c, src/del_mbf.c, src/del_mbx.c, src/del_sem.c, src/del_tsk.c, src/dis_dsp.c, src/ena_dsp.c, src/eventflags.c, src/exd_tsk.c, src/ext_tsk.c, src/fmempool.c, src/frsm_tsk.c, src/get_tid.c, src/itronintr.c, src/itronsem.c, src/itrontime.c, src/mbox.c, src/mboxtranslatereturncode.c, src/msgbuffer.c, src/msgbuffertranslatereturncode.c, src/network.c, src/port.c, src/prcv_mbf.c, src/prcv_mbx.c, src/preq_sem.c, src/psnd_mbf.c, src/rcv_mbf.c, src/rcv_mbx.c, src/ref_mbf.c, src/ref_mbx.c, src/ref_sem.c, src/ref_tsk.c, src/rel_wai.c, src/rot_rdq.c, src/rsm_tsk.c, src/sig_sem.c, src/slp_tsk.c, src/snd_mbf.c, src/snd_mbx.c, src/sta_tsk.c, src/sus_tsk.c, src/sysmgmt.c, src/task.c, src/ter_tsk.c, src/trcv_mbf.c, src/trcv_mbx.c, src/tslp_tsk.c, src/tsnd_mbf.c, src/twai_sem.c, src/vmempool.c, src/wai_sem.c, src/wup_tsk.c: URL for license changed.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-1999.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#ifndef __ITRON_PORT_h_
13#define __ITRON_PORT_h_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19/*
20 *  Create Port (cre_por) Structure
21 */
22
23typedef struct t_cpor {
24  VP    exinf;     /* extended information */
25  ATR   poratr;    /* port attributes */
26  INT   maxcmsz;   /* maximum call message size */
27  INT   maxrmsz;   /* maximum reply message size */
28  /* additional information may be included depending on the implementation */
29} T_CPOR;
30
31/*
32 *  poratr
33 */
34
35#define TA_NULL   0   /* specifies no particular attributes */
36
37/*
38 *  TA_NULL should be used in place of zeroes to turn off all
39 *          attribute features.
40 */
41
42/*
43 *  Reference Port (ref_por) Structure
44 */
45
46typedef struct t_rpor {
47  VP        exinf;   /* extended information */
48  BOOL_ID   wtsk;    /* indicates whether or not there is a task */
49                     /* waiting to call a rendezvous */
50  BOOL_ID   atsk;    /* indicates whether or not there is a task */
51                     /* waiting to accept a rendezvous */
52  /* additional information may be included depending on the implementation */
53} T_RPOR;
54
55/*
56 *  Port Functions
57 */
58
59/*
60 *  cre_por - Create Port for Rendezvous
61 */
62
63ER cre_por(
64  ID porid,
65  T_CPOR *pk_cpor
66);
67
68/*
69 *  del_por - Delete Port for Rendezvous
70 */
71
72ER del_por(
73  ID porid
74);
75
76/*
77 *  cal_por - Call Port for Rendezvous Poll
78 */
79
80ER cal_por(
81  VP msg,
82  INT *p_rmsgsz,
83  ID porid,
84  UINT calptn,
85  INT cmsgsz
86);
87
88/*
89 *  pcal_por - Poll and Call Port for Rendezvous
90 */
91
92ER pcal_por(
93  VP msg,
94  INT *p_rmsgsz,
95  ID porid,
96  UINT calptn,
97  INT cmsgsz
98);
99
100/*
101 *  tcal_por - Call Port for Rendezvous with Timeout
102 */
103
104ER tcal_por(
105  VP msg,
106  INT *p_rmsgsz,
107  ID porid,
108  UINT calptn,
109  INT cmsgsz,
110  TMO tmout
111);
112
113/*
114 *  acp_por - Accept Port for Rendezvous Poll
115 */
116
117ER acp_por(
118  RNO *p_rdvno,
119  VP msg,
120  INT *p_cmsgsz,
121  ID porid,
122  UINT acpptn
123);
124
125/*
126 *  pacp_por - Poll and Accept Port for Rendezvous
127 */
128
129ER pacp_por(
130  RNO *p_rdvno,
131  VP msg,
132  INT *p_cmsgsz,
133  ID porid,
134  UINT acpptn
135);
136
137/*
138 *  tacp_por - Accept Port for Rendezvous with Timeout
139 */
140
141ER tacp_por(
142  RNO *p_rdvno,
143  VP msg,
144  INT *p_cmsgsz,
145  ID porid,
146  UINT acpptn,
147  TMO tmout
148);
149
150/*
151 *  fwd_por - Forward Rendezvous to Other Port
152 */
153
154ER fwd_por(
155  ID porid,
156  UINT calptn,
157  RNO rdvno,
158  VP msg,
159  INT cmsgsz
160);
161
162/*
163 *  rpl_rdv - Reply Rendezvous
164 */
165
166ER rpl_rdv(
167  RNO rdvno,
168  VP msg,
169  INT rmsgsz
170);
171
172/*
173 *  ref_por - Reference Port Status
174 */
175
176ER ref_por(
177  T_RPOR *pk_rpor,
178  ID porid
179);
180
181
182
183
184#ifdef __cplusplus
185}
186#endif
187
188#endif
189/* end of include file */
190
Note: See TracBrowser for help on using the repository browser.