StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rtsComLib.h
1 #ifndef _RTS_COM_STUB_H_
2 #define _RTS_COM_STUB_H_
3 
4 
5 #include <iccp.h>
6 
7 
8 /************* VXWORKS *********************/
9 #if defined(vxworks)
10 
11 #include <vxWorks.h>
12 #include <msgQLib.h>
13 
14 typedef MSG_Q_ID RTS_QUEUE_ID ;
15 
16 
17 /*************** UNIX - empty stubs *************/
18 #else
19 
20 typedef int RTS_QUEUE_ID ;
21 
22 // mimic vxWorks
23 #define NO_WAIT 0
24 #define WAIT_FOREVER (-1)
25 
26 #define MSG_PRI_NORMAL 0
27 #define MSG_PRI_URGENT 1
28 
29 
30 #endif
31 
32 
33 extern unsigned short rtsNodeId ; // reset by application or rtsMsgInit
34 extern unsigned short rtsMyriNodeId ; // reset by myrinet
35 extern unsigned int rtsMyriBoard ; // reset by myrinet
36 
37 extern int (*stub_myriMsgSend)(unsigned short node, ic_msg *m, int board ) ; // reset by myrinet
38 extern int (*stub_myriMsgSend_n)(unsigned short *node, ic_msg *m, int board ) ; // reset by myrinet
39 extern int (*stub_myriMsgSend_m)(unsigned short node, ic_msg *m[], int board ) ; // reset by myrinet
40 extern int (*stub_myriMsgSend_nm)(unsigned short *node, ic_msg *m[], int board ) ; // reset by myrinet
41 
42 
43 extern int (*rtsSendLocal)(RTS_QUEUE_ID id, char *m, unsigned int bytes, int wait, int prio) ; // reset by application
44 
45 extern int rtsMsgInit(RTS_QUEUE_ID *qlist, unsigned short myid, RTS_QUEUE_ID eth, RTS_QUEUE_ID vme) ;
46 
47 extern int rtsMsgSend(unsigned short node, ic_msg *m) ;
48 extern int rtsMsgSend(unsigned short *node, ic_msg *m) ;
49 extern int rtsMsgSend(unsigned short node, ic_msg *m[]) ;
50 extern int rtsMsgSend(unsigned short *node, ic_msg *m[]) ;
51 
52 #endif
Definition: iccp.h:685