Subversion Repositories f9daq

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _VXI11_H_RPCGEN
  7. #define _VXI11_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. #include <pthread.h>
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17.  
  18. typedef long Device_Link;
  19.  
  20. enum Device_AddrFamily {
  21.         DEVICE_TCP = 0,
  22.         DEVICE_UDP = 1,
  23. };
  24. typedef enum Device_AddrFamily Device_AddrFamily;
  25.  
  26. typedef long Device_Flags;
  27.  
  28. typedef long Device_ErrorCode;
  29.  
  30. struct Device_Error {
  31.         Device_ErrorCode error;
  32. };
  33. typedef struct Device_Error Device_Error;
  34.  
  35. struct Create_LinkParms {
  36.         long clientId;
  37.         bool_t lockDevice;
  38.         u_long lock_timeout;
  39.         char *device;
  40. };
  41. typedef struct Create_LinkParms Create_LinkParms;
  42.  
  43. struct Create_LinkResp {
  44.         Device_ErrorCode error;
  45.         Device_Link lid;
  46.         u_short abortPort;
  47.         u_long maxRecvSize;
  48. };
  49. typedef struct Create_LinkResp Create_LinkResp;
  50.  
  51. struct Device_WriteParms {
  52.         Device_Link lid;
  53.         u_long io_timeout;
  54.         u_long lock_timeout;
  55.         Device_Flags flags;
  56.         struct {
  57.                 u_int data_len;
  58.                 char *data_val;
  59.         } data;
  60. };
  61. typedef struct Device_WriteParms Device_WriteParms;
  62.  
  63. struct Device_WriteResp {
  64.         Device_ErrorCode error;
  65.         u_long size;
  66. };
  67. typedef struct Device_WriteResp Device_WriteResp;
  68.  
  69. struct Device_ReadParms {
  70.         Device_Link lid;
  71.         u_long requestSize;
  72.         u_long io_timeout;
  73.         u_long lock_timeout;
  74.         Device_Flags flags;
  75.         char termChar;
  76. };
  77. typedef struct Device_ReadParms Device_ReadParms;
  78.  
  79. struct Device_ReadResp {
  80.         Device_ErrorCode error;
  81.         long reason;
  82.         struct {
  83.                 u_int data_len;
  84.                 char *data_val;
  85.         } data;
  86. };
  87. typedef struct Device_ReadResp Device_ReadResp;
  88.  
  89. struct Device_ReadStbResp {
  90.         Device_ErrorCode error;
  91.         u_char stb;
  92. };
  93. typedef struct Device_ReadStbResp Device_ReadStbResp;
  94.  
  95. struct Device_GenericParms {
  96.         Device_Link lid;
  97.         Device_Flags flags;
  98.         u_long lock_timeout;
  99.         u_long io_timeout;
  100. };
  101. typedef struct Device_GenericParms Device_GenericParms;
  102.  
  103. struct Device_RemoteFunc {
  104.         u_long hostAddr;
  105.         u_long hostPort;
  106.         u_long progNum;
  107.         u_long progVers;
  108.         Device_AddrFamily progFamily;
  109. };
  110. typedef struct Device_RemoteFunc Device_RemoteFunc;
  111.  
  112. struct Device_EnableSrqParms {
  113.         Device_Link lid;
  114.         bool_t enable;
  115.         struct {
  116.                 u_int handle_len;
  117.                 char *handle_val;
  118.         } handle;
  119. };
  120. typedef struct Device_EnableSrqParms Device_EnableSrqParms;
  121.  
  122. struct Device_LockParms {
  123.         Device_Link lid;
  124.         Device_Flags flags;
  125.         u_long lock_timeout;
  126. };
  127. typedef struct Device_LockParms Device_LockParms;
  128.  
  129. struct Device_DocmdParms {
  130.         Device_Link lid;
  131.         Device_Flags flags;
  132.         u_long io_timeout;
  133.         u_long lock_timeout;
  134.         long cmd;
  135.         bool_t network_order;
  136.         long datasize;
  137.         struct {
  138.                 u_int data_in_len;
  139.                 char *data_in_val;
  140.         } data_in;
  141. };
  142. typedef struct Device_DocmdParms Device_DocmdParms;
  143.  
  144. struct Device_DocmdResp {
  145.         Device_ErrorCode error;
  146.         struct {
  147.                 u_int data_out_len;
  148.                 char *data_out_val;
  149.         } data_out;
  150. };
  151. typedef struct Device_DocmdResp Device_DocmdResp;
  152.  
  153. struct Device_SrqParms {
  154.         struct {
  155.                 u_int handle_len;
  156.                 char *handle_val;
  157.         } handle;
  158. };
  159. typedef struct Device_SrqParms Device_SrqParms;
  160.  
  161. #define DEVICE_ASYNC 0x0607B0
  162. #define DEVICE_ASYNC_VERSION 1
  163.  
  164. #if defined(__STDC__) || defined(__cplusplus)
  165. #define device_abort 1
  166. extern  enum clnt_stat device_abort_1(Device_Link *, Device_Error *, CLIENT *);
  167. extern  bool_t device_abort_1_svc(Device_Link *, Device_Error *, struct svc_req *);
  168. extern int device_async_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  169.  
  170. #else /* K&R C */
  171. #define device_abort 1
  172. extern  enum clnt_stat device_abort_1();
  173. extern  bool_t device_abort_1_svc();
  174. extern int device_async_1_freeresult ();
  175. #endif /* K&R C */
  176.  
  177. #define DEVICE_CORE 0x0607AF
  178. #define DEVICE_CORE_VERSION 1
  179.  
  180. #if defined(__STDC__) || defined(__cplusplus)
  181. #define create_link 10
  182. extern  enum clnt_stat create_link_1(Create_LinkParms *, Create_LinkResp *, CLIENT *);
  183. extern  bool_t create_link_1_svc(Create_LinkParms *, Create_LinkResp *, struct svc_req *);
  184. #define device_write 11
  185. extern  enum clnt_stat device_write_1(Device_WriteParms *, Device_WriteResp *, CLIENT *);
  186. extern  bool_t device_write_1_svc(Device_WriteParms *, Device_WriteResp *, struct svc_req *);
  187. #define device_read 12
  188. extern  enum clnt_stat device_read_1(Device_ReadParms *, Device_ReadResp *, CLIENT *);
  189. extern  bool_t device_read_1_svc(Device_ReadParms *, Device_ReadResp *, struct svc_req *);
  190. #define device_readstb 13
  191. extern  enum clnt_stat device_readstb_1(Device_GenericParms *, Device_ReadStbResp *, CLIENT *);
  192. extern  bool_t device_readstb_1_svc(Device_GenericParms *, Device_ReadStbResp *, struct svc_req *);
  193. #define device_trigger 14
  194. extern  enum clnt_stat device_trigger_1(Device_GenericParms *, Device_Error *, CLIENT *);
  195. extern  bool_t device_trigger_1_svc(Device_GenericParms *, Device_Error *, struct svc_req *);
  196. #define device_clear 15
  197. extern  enum clnt_stat device_clear_1(Device_GenericParms *, Device_Error *, CLIENT *);
  198. extern  bool_t device_clear_1_svc(Device_GenericParms *, Device_Error *, struct svc_req *);
  199. #define device_remote 16
  200. extern  enum clnt_stat device_remote_1(Device_GenericParms *, Device_Error *, CLIENT *);
  201. extern  bool_t device_remote_1_svc(Device_GenericParms *, Device_Error *, struct svc_req *);
  202. #define device_local 17
  203. extern  enum clnt_stat device_local_1(Device_GenericParms *, Device_Error *, CLIENT *);
  204. extern  bool_t device_local_1_svc(Device_GenericParms *, Device_Error *, struct svc_req *);
  205. #define device_lock 18
  206. extern  enum clnt_stat device_lock_1(Device_LockParms *, Device_Error *, CLIENT *);
  207. extern  bool_t device_lock_1_svc(Device_LockParms *, Device_Error *, struct svc_req *);
  208. #define device_unlock 19
  209. extern  enum clnt_stat device_unlock_1(Device_Link *, Device_Error *, CLIENT *);
  210. extern  bool_t device_unlock_1_svc(Device_Link *, Device_Error *, struct svc_req *);
  211. #define device_enable_srq 20
  212. extern  enum clnt_stat device_enable_srq_1(Device_EnableSrqParms *, Device_Error *, CLIENT *);
  213. extern  bool_t device_enable_srq_1_svc(Device_EnableSrqParms *, Device_Error *, struct svc_req *);
  214. #define device_docmd 22
  215. extern  enum clnt_stat device_docmd_1(Device_DocmdParms *, Device_DocmdResp *, CLIENT *);
  216. extern  bool_t device_docmd_1_svc(Device_DocmdParms *, Device_DocmdResp *, struct svc_req *);
  217. #define destroy_link 23
  218. extern  enum clnt_stat destroy_link_1(Device_Link *, Device_Error *, CLIENT *);
  219. extern  bool_t destroy_link_1_svc(Device_Link *, Device_Error *, struct svc_req *);
  220. #define create_intr_chan 25
  221. extern  enum clnt_stat create_intr_chan_1(Device_RemoteFunc *, Device_Error *, CLIENT *);
  222. extern  bool_t create_intr_chan_1_svc(Device_RemoteFunc *, Device_Error *, struct svc_req *);
  223. #define destroy_intr_chan 26
  224. extern  enum clnt_stat destroy_intr_chan_1(void *, Device_Error *, CLIENT *);
  225. extern  bool_t destroy_intr_chan_1_svc(void *, Device_Error *, struct svc_req *);
  226. extern int device_core_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  227.  
  228. #else /* K&R C */
  229. #define create_link 10
  230. extern  enum clnt_stat create_link_1();
  231. extern  bool_t create_link_1_svc();
  232. #define device_write 11
  233. extern  enum clnt_stat device_write_1();
  234. extern  bool_t device_write_1_svc();
  235. #define device_read 12
  236. extern  enum clnt_stat device_read_1();
  237. extern  bool_t device_read_1_svc();
  238. #define device_readstb 13
  239. extern  enum clnt_stat device_readstb_1();
  240. extern  bool_t device_readstb_1_svc();
  241. #define device_trigger 14
  242. extern  enum clnt_stat device_trigger_1();
  243. extern  bool_t device_trigger_1_svc();
  244. #define device_clear 15
  245. extern  enum clnt_stat device_clear_1();
  246. extern  bool_t device_clear_1_svc();
  247. #define device_remote 16
  248. extern  enum clnt_stat device_remote_1();
  249. extern  bool_t device_remote_1_svc();
  250. #define device_local 17
  251. extern  enum clnt_stat device_local_1();
  252. extern  bool_t device_local_1_svc();
  253. #define device_lock 18
  254. extern  enum clnt_stat device_lock_1();
  255. extern  bool_t device_lock_1_svc();
  256. #define device_unlock 19
  257. extern  enum clnt_stat device_unlock_1();
  258. extern  bool_t device_unlock_1_svc();
  259. #define device_enable_srq 20
  260. extern  enum clnt_stat device_enable_srq_1();
  261. extern  bool_t device_enable_srq_1_svc();
  262. #define device_docmd 22
  263. extern  enum clnt_stat device_docmd_1();
  264. extern  bool_t device_docmd_1_svc();
  265. #define destroy_link 23
  266. extern  enum clnt_stat destroy_link_1();
  267. extern  bool_t destroy_link_1_svc();
  268. #define create_intr_chan 25
  269. extern  enum clnt_stat create_intr_chan_1();
  270. extern  bool_t create_intr_chan_1_svc();
  271. #define destroy_intr_chan 26
  272. extern  enum clnt_stat destroy_intr_chan_1();
  273. extern  bool_t destroy_intr_chan_1_svc();
  274. extern int device_core_1_freeresult ();
  275. #endif /* K&R C */
  276.  
  277. #define DEVICE_INTR 0x0607B1
  278. #define DEVICE_INTR_VERSION 1
  279.  
  280. #if defined(__STDC__) || defined(__cplusplus)
  281. #define device_intr_srq 30
  282. extern  enum clnt_stat device_intr_srq_1(Device_SrqParms *, void *, CLIENT *);
  283. extern  bool_t device_intr_srq_1_svc(Device_SrqParms *, void *, struct svc_req *);
  284. extern int device_intr_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  285.  
  286. #else /* K&R C */
  287. #define device_intr_srq 30
  288. extern  enum clnt_stat device_intr_srq_1();
  289. extern  bool_t device_intr_srq_1_svc();
  290. extern int device_intr_1_freeresult ();
  291. #endif /* K&R C */
  292.  
  293. /* the xdr functions */
  294.  
  295. #if defined(__STDC__) || defined(__cplusplus)
  296. extern  bool_t xdr_Device_Link (XDR *, Device_Link*);
  297. extern  bool_t xdr_Device_AddrFamily (XDR *, Device_AddrFamily*);
  298. extern  bool_t xdr_Device_Flags (XDR *, Device_Flags*);
  299. extern  bool_t xdr_Device_ErrorCode (XDR *, Device_ErrorCode*);
  300. extern  bool_t xdr_Device_Error (XDR *, Device_Error*);
  301. extern  bool_t xdr_Create_LinkParms (XDR *, Create_LinkParms*);
  302. extern  bool_t xdr_Create_LinkResp (XDR *, Create_LinkResp*);
  303. extern  bool_t xdr_Device_WriteParms (XDR *, Device_WriteParms*);
  304. extern  bool_t xdr_Device_WriteResp (XDR *, Device_WriteResp*);
  305. extern  bool_t xdr_Device_ReadParms (XDR *, Device_ReadParms*);
  306. extern  bool_t xdr_Device_ReadResp (XDR *, Device_ReadResp*);
  307. extern  bool_t xdr_Device_ReadStbResp (XDR *, Device_ReadStbResp*);
  308. extern  bool_t xdr_Device_GenericParms (XDR *, Device_GenericParms*);
  309. extern  bool_t xdr_Device_RemoteFunc (XDR *, Device_RemoteFunc*);
  310. extern  bool_t xdr_Device_EnableSrqParms (XDR *, Device_EnableSrqParms*);
  311. extern  bool_t xdr_Device_LockParms (XDR *, Device_LockParms*);
  312. extern  bool_t xdr_Device_DocmdParms (XDR *, Device_DocmdParms*);
  313. extern  bool_t xdr_Device_DocmdResp (XDR *, Device_DocmdResp*);
  314. extern  bool_t xdr_Device_SrqParms (XDR *, Device_SrqParms*);
  315.  
  316. #else /* K&R C */
  317. extern bool_t xdr_Device_Link ();
  318. extern bool_t xdr_Device_AddrFamily ();
  319. extern bool_t xdr_Device_Flags ();
  320. extern bool_t xdr_Device_ErrorCode ();
  321. extern bool_t xdr_Device_Error ();
  322. extern bool_t xdr_Create_LinkParms ();
  323. extern bool_t xdr_Create_LinkResp ();
  324. extern bool_t xdr_Device_WriteParms ();
  325. extern bool_t xdr_Device_WriteResp ();
  326. extern bool_t xdr_Device_ReadParms ();
  327. extern bool_t xdr_Device_ReadResp ();
  328. extern bool_t xdr_Device_ReadStbResp ();
  329. extern bool_t xdr_Device_GenericParms ();
  330. extern bool_t xdr_Device_RemoteFunc ();
  331. extern bool_t xdr_Device_EnableSrqParms ();
  332. extern bool_t xdr_Device_LockParms ();
  333. extern bool_t xdr_Device_DocmdParms ();
  334. extern bool_t xdr_Device_DocmdResp ();
  335. extern bool_t xdr_Device_SrqParms ();
  336.  
  337. #endif /* K&R C */
  338.  
  339. #ifdef __cplusplus
  340. }
  341. #endif
  342.  
  343. #endif /* !_VXI11_H_RPCGEN */
  344.