ia64/xen-unstable

view xen/include/public/io/tpmif.h @ 8208:773735517d9d

Inclide grant_ref_t definition in split-driver struct
defns.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Dec 03 10:50:22 2005 +0100 (2005-12-03)
parents ff95b53bd39a
children 4c588e255c85
line source
1 /******************************************************************************
2 * tpmif.h
3 *
4 * TPM I/O interface for Xen guest OSes.
5 *
6 * Copyright (c) 2005, IBM Corporation
7 *
8 * Author: Stefan Berger, stefanb@us.ibm.com
9 * Grant table support: Mahadevan Gomathisankaran
10 *
11 * This code has been derived from tools/libxc/xen/io/netif.h
12 *
13 * Copyright (c) 2003-2004, Keir Fraser
14 */
16 #ifndef __XEN_PUBLIC_IO_TPMIF_H__
17 #define __XEN_PUBLIC_IO_TPMIF_H__
19 #include "../gnttab.h" /* for grant_ref_t */
21 typedef struct {
22 unsigned long addr; /* Machine address of packet. */
23 grant_ref_t ref; /* grant table access reference */
24 uint16_t id; /* Echoed in response message. */
25 uint16_t size; /* Packet size in bytes. */
26 } tpmif_tx_request_t;
28 /*
29 * The TPMIF_TX_RING_SIZE defines the number of pages the
30 * front-end and backend can exchange (= size of array).
31 */
32 typedef uint32_t TPMIF_RING_IDX;
34 #define TPMIF_TX_RING_SIZE 10
36 /* This structure must fit in a memory page. */
38 typedef struct {
39 tpmif_tx_request_t req;
40 } tpmif_ring_t;
42 typedef struct {
43 tpmif_ring_t ring[TPMIF_TX_RING_SIZE];
44 } tpmif_tx_interface_t;
46 #endif
48 /*
49 * Local variables:
50 * mode: C
51 * c-set-style: "BSD"
52 * c-basic-offset: 4
53 * tab-width: 4
54 * indent-tabs-mode: nil
55 * End:
56 */