summaryrefslogtreecommitdiff
path: root/src/include/rpc_tcstp.h
blob: 50859e2a8fa170cd5deb0c808fdca31a3ab49953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

/*
 * Licensed Materials - Property of IBM
 *
 * trousers - An open source TCG Software Stack
 *
 * (C) Copyright International Business Machines Corp. 2004-2006
 *
 */

#ifndef _RPC_TCSTP_H_
#define _RPC_TCSTP_H_

#include "tcs_tsp.h"

typedef unsigned char  TCSD_PACKET_TYPE;

/* Packet header used for TCSD communication */
struct tcsd_packet_hdr {
	UINT32 packet_size;
	union {
		UINT32 ordinal;
		UINT32 result;
	} u;
	UINT32 num_parms;
	UINT32 type_size;
	UINT32 type_offset;
	UINT32 parm_size;
	UINT32 parm_offset;
} STRUCTURE_PACKING_ATTRIBUTE;

struct tcsd_comm_data {
	BYTE *buf;
	UINT32 buf_size;
	struct tcsd_packet_hdr hdr;
} STRUCTURE_PACKING_ATTRIBUTE;

#define TCSD_INIT_TXBUF_SIZE	1024

#endif