ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-xen/tpmfe.h @ 8534:da7873110bbb

Tiny bootstrap cleanup.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jan 09 19:46:46 2006 +0100 (2006-01-09)
parents 86cf8f4e5de5
children
line source
1 #ifndef TPM_FE_H
2 #define TPM_FE_H
4 struct tpmfe_device {
5 /*
6 * Let upper layer receive data from front-end
7 */
8 int (*receive)(const u8 *buffer, size_t count, const void *ptr);
9 /*
10 * Indicate the status of the front-end to the upper
11 * layer.
12 */
13 void (*status)(unsigned int flags);
15 /*
16 * This field indicates the maximum size the driver can
17 * transfer in one chunk. It is filled out by the front-end
18 * driver and should be propagated to the generic tpm driver
19 * for allocation of buffers.
20 */
21 unsigned int max_tx_size;
22 };
24 enum {
25 TPMFE_STATUS_DISCONNECTED = 0x0,
26 TPMFE_STATUS_CONNECTED = 0x1
27 };
29 int tpm_fe_send(const u8 * buf, size_t count, void *ptr);
30 int tpm_fe_register_receiver(struct tpmfe_device *);
31 void tpm_fe_unregister_receiver(void);
33 #endif