1 /*
2  * Copyright (c) 2010-2012 United States Government, as represented by
3  * the Secretary of Defense.  All rights reserved.
4  *
5  * THIS SOFTWARE AND ITS DOCUMENTATION ARE PROVIDED AS IS AND WITHOUT
6  * ANY EXPRESS OR IMPLIED WARRANTIES WHATSOEVER. ALL WARRANTIES
7  * INCLUDING, BUT NOT LIMITED TO, PERFORMANCE, MERCHANTABILITY, FITNESS
8  * FOR A PARTICULAR  PURPOSE, AND NONINFRINGEMENT ARE HEREBY
9  * DISCLAIMED. USERS ASSUME THE ENTIRE RISK AND LIABILITY OF USING THE
10  * SOFTWARE.
11  */
12 
13 #ifndef VTPM_PCRS_H
14 #define VTPM_PCRS_H
15 
16 #include "tpm/tpm_structures.h"
17 
18 #define VTPM_PCR0 1
19 #define VTPM_PCR1 1 << 1
20 #define VTPM_PCR2 1 << 2
21 #define VTPM_PCR3 1 << 3
22 #define VTPM_PCR4 1 << 4
23 #define VTPM_PCR5 1 << 5
24 #define VTPM_PCR6 1 << 6
25 #define VTPM_PCR7 1 << 7
26 #define VTPM_PCR8 1 << 8
27 #define VTPM_PCR9 1 << 9
28 #define VTPM_PCR10 1 << 10
29 #define VTPM_PCR11 1 << 11
30 #define VTPM_PCR12 1 << 12
31 #define VTPM_PCR13 1 << 13
32 #define VTPM_PCR14 1 << 14
33 #define VTPM_PCR15 1 << 15
34 #define VTPM_PCR16 1 << 16
35 #define VTPM_PCR17 1 << 17
36 #define VTPM_PCR18 1 << 18
37 #define VTPM_PCR19 1 << 19
38 #define VTPM_PCR20 1 << 20
39 #define VTPM_PCR21 1 << 21
40 #define VTPM_PCR22 1 << 22
41 #define VTPM_PCR23 1 << 23
42 
43 #define VTPM_PCRALL (1 << TPM_NUM_PCR) - 1
44 #define VTPM_PCRNONE 0
45 
46 #define VTPM_NUMPCRS 24
47 
48 struct tpmfront_dev;
49 
50 TPM_RESULT vtpm_initialize_hw_pcrs(struct tpmfront_dev* tpmfront_dev, unsigned long pcrs);
51 
52 
53 #endif
54