ia64/xen-unstable

view linux-2.6-xen-sparse/include/xen/tpmfe.h @ 8786:e9d78d8bd568

Clean up the TPM stack a bit.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author cl349@firebug.cl.cam.ac.uk
date Tue Feb 07 20:38:44 2006 +0000 (2006-02-07)
parents fd9b2c1bb577
children
line source
1 #ifndef TPM_FE_H
2 #define TPM_FE_H
4 struct tpm_private;
6 struct tpmfe_device {
7 /*
8 * Let upper layer receive data from front-end
9 */
10 int (*receive)(const u8 *buffer, size_t count, const void *ptr);
11 /*
12 * Indicate the status of the front-end to the upper
13 * layer.
14 */
15 void (*status)(unsigned int flags);
17 /*
18 * This field indicates the maximum size the driver can
19 * transfer in one chunk. It is filled out by the front-end
20 * driver and should be propagated to the generic tpm driver
21 * for allocation of buffers.
22 */
23 unsigned int max_tx_size;
24 /*
25 * The following is a private structure of the underlying
26 * driver. It's expected as first parameter in the send function.
27 */
28 struct tpm_private *tpm_private;
29 };
31 enum {
32 TPMFE_STATUS_DISCONNECTED = 0x0,
33 TPMFE_STATUS_CONNECTED = 0x1
34 };
36 int tpm_fe_send(struct tpm_private * tp, const u8 * buf, size_t count, void *ptr);
37 int tpm_fe_register_receiver(struct tpmfe_device *);
38 void tpm_fe_unregister_receiver(void);
40 #endif