4.104.114.84.95
Line | |
---|
1 | /** |
---|
2 | * @file itronsys/network.h |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _ITRONSYS_NETWORK_H |
---|
17 | #define _ITRONSYS_NETWORK_H |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif |
---|
22 | |
---|
23 | /* |
---|
24 | * NODE srcnode, dstnode, nod: |
---|
25 | */ |
---|
26 | |
---|
27 | #define TND_SELF 0 /* specifies the local node */ |
---|
28 | #define TND_OTHR (-1) /* specifies default remote node */ |
---|
29 | |
---|
30 | /* |
---|
31 | * Network Functions |
---|
32 | */ |
---|
33 | |
---|
34 | /* |
---|
35 | * nrea_dat - Read Data from another Node |
---|
36 | */ |
---|
37 | |
---|
38 | ER nrea_dat( |
---|
39 | INT *p_reasz, |
---|
40 | VP dstadr, |
---|
41 | NODE srcnode, |
---|
42 | VP srcadr, |
---|
43 | INT datsz |
---|
44 | ); |
---|
45 | |
---|
46 | /* |
---|
47 | * nwri_dat - Write Data to another Node |
---|
48 | */ |
---|
49 | |
---|
50 | ER nwri_dat( |
---|
51 | INT *p_wrisz, |
---|
52 | NODE dstnode, |
---|
53 | VP dstadr, |
---|
54 | VP srcadr, |
---|
55 | INT datsz |
---|
56 | ); |
---|
57 | |
---|
58 | /* |
---|
59 | * nget_nod - Get Local Node Number |
---|
60 | */ |
---|
61 | |
---|
62 | ER nget_nod( |
---|
63 | NODE *p_node |
---|
64 | ); |
---|
65 | |
---|
66 | /* |
---|
67 | * nget_ver - Get Version Information of another Node |
---|
68 | */ |
---|
69 | |
---|
70 | ER nget_ver( |
---|
71 | T_VER *pk_ver, |
---|
72 | NODE node |
---|
73 | ); |
---|
74 | |
---|
75 | |
---|
76 | #ifdef __cplusplus |
---|
77 | } |
---|
78 | #endif |
---|
79 | |
---|
80 | #endif |
---|
81 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.