ia64/xen-unstable

view linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.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 f1fc94516c4c
children
line source
1 #ifndef TPM_FRONT_H
2 #define TPM_FRONT_H
4 struct tpm_private {
5 tpmif_tx_interface_t *tx;
6 unsigned int evtchn;
7 unsigned int irq;
8 u8 is_connected;
9 u8 is_suspended;
11 spinlock_t tx_lock;
13 struct tx_buffer *tx_buffers[TPMIF_TX_RING_SIZE];
15 atomic_t tx_busy;
16 void *tx_remember;
17 domid_t backend_id;
18 wait_queue_head_t wait_q;
20 struct xenbus_device *dev;
21 int ring_ref;
22 };
24 struct tx_buffer {
25 unsigned int size; // available space in data
26 unsigned int len; // used space in data
27 unsigned char *data; // pointer to a page
28 };
30 #endif
32 /*
33 * Local variables:
34 * c-file-style: "linux"
35 * indent-tabs-mode: t
36 * c-indent-level: 8
37 * c-basic-offset: 8
38 * tab-width: 8
39 * End:
40 */