OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [itron/] [include/] [itronsys/] [port.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  COPYRIGHT (c) 1989-1999.
3
 *  On-Line Applications Research Corporation (OAR).
4
 *
5
 *  The license and distribution terms for this file may be
6
 *  found in the file LICENSE in this distribution or at
7
 *  http://www.OARcorp.com/rtems/license.html.
8
 *
9
 *  $Id: port.h,v 1.2 2001-09-27 11:59:12 chris Exp $
10
 */
11
 
12
#ifndef __ITRON_PORT_h_
13
#define __ITRON_PORT_h_
14
 
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
 
19
/*
20
 *  Create Port (cre_por) Structure
21
 */
22
 
23
typedef 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
 
46
typedef 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
 
63
ER cre_por(
64
  ID porid,
65
  T_CPOR *pk_cpor
66
);
67
 
68
/*
69
 *  del_por - Delete Port for Rendezvous
70
 */
71
 
72
ER del_por(
73
  ID porid
74
);
75
 
76
/*
77
 *  cal_por - Call Port for Rendezvous Poll
78
 */
79
 
80
ER 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
 
92
ER 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
 
104
ER 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
 
117
ER 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
 
129
ER 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
 
141
ER 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
 
154
ER 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
 
166
ER rpl_rdv(
167
  RNO rdvno,
168
  VP msg,
169
  INT rmsgsz
170
);
171
 
172
/*
173
 *  ref_por - Reference Port Status
174
 */
175
 
176
ER 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.