Go to the documentation of this file.
18 #ifndef __TPM_IBMVTPM_H__
19 #define __TPM_IBMVTPM_H__
51 #define CRQ_RES_BUF_SIZE PAGE_SIZE
54 #define INIT_CRQ_CMD 0xC001000000000000LL
55 #define INIT_CRQ_COMP_CMD 0xC002000000000000LL
56 #define INIT_CRQ_RES 0x01
57 #define INIT_CRQ_COMP_RES 0x02
58 #define VALID_INIT_CRQ 0xC0
61 #define VTPM_MSG_RES 0x80
62 #define IBMVTPM_VALID_CMD 0x80
65 #define VTPM_GET_VERSION 0x01
66 #define VTPM_GET_VERSION_RES (0x01 | VTPM_MSG_RES)
68 #define VTPM_TPM_COMMAND 0x02
69 #define VTPM_TPM_COMMAND_RES (0x02 | VTPM_MSG_RES)
71 #define VTPM_GET_RTCE_BUFFER_SIZE 0x03
72 #define VTPM_GET_RTCE_BUFFER_SIZE_RES (0x03 | VTPM_MSG_RES)
74 #define VTPM_PREPARE_TO_SUSPEND 0x04
75 #define VTPM_PREPARE_TO_SUSPEND_RES (0x04 | VTPM_MSG_RES)