xref: /netbsd-src/crypto/external/cpl/trousers/dist/src/include/rpc_tcstp.h (revision 1023804e3833a0bd94414f2545512128f6502c74)
1 
2 /*
3  * Licensed Materials - Property of IBM
4  *
5  * trousers - An open source TCG Software Stack
6  *
7  * (C) Copyright International Business Machines Corp. 2004-2006
8  *
9  */
10 
11 #ifndef _RPC_TCSTP_H_
12 #define _RPC_TCSTP_H_
13 
14 #include "tcs_tsp.h"
15 
16 typedef unsigned char  TCSD_PACKET_TYPE;
17 
18 /* Packet header used for TCSD communication */
19 struct tcsd_packet_hdr {
20 	UINT32 packet_size;
21 	union {
22 		UINT32 ordinal;
23 		UINT32 result;
24 	} u;
25 	UINT32 num_parms;
26 	UINT32 type_size;
27 	UINT32 type_offset;
28 	UINT32 parm_size;
29 	UINT32 parm_offset;
30 } STRUCTURE_PACKING_ATTRIBUTE;
31 
32 struct tcsd_comm_data {
33 	BYTE *buf;
34 	UINT32 buf_size;
35 	struct tcsd_packet_hdr hdr;
36 } STRUCTURE_PACKING_ATTRIBUTE;
37 
38 #define TCSD_INIT_TXBUF_SIZE	1024
39 #define TCSD_INCR_TXBUF_SIZE	4096
40 
41 #endif
42