/usr/include/tss/tddli.h is in libtspi-dev 0.3.14+fixed1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | /*++
TPM Device Driver Library interface
--*/
#ifndef __TDDLI_H__
#define __TDDLI_H__
#include <tss/tss_typedef.h>
#include <tss/tddl_error.h>
#if !defined(TDDLI)
#ifdef WIN32
// --- This should be used on Windows platforms
#ifdef TDDLI_EXPORTS
#define TDDLI __declspec(dllexport)
#else
#define TDDLI __declspec(dllimport)
#endif
#else
#define TDDLI
#endif
#endif /* !defined(TDDLI) */
#define TDDL_CAP_VERSION 0x0100
#define TDDL_CAP_VER_DRV 0x0101
#define TDDL_CAP_VER_FW 0x0102
#define TDDL_CAP_VER_FW_DATE 0x0103
#define TDDL_CAP_PROPERTY 0x0200
#define TDDL_CAP_PROP_MANUFACTURER 0x0201
#define TDDL_CAP_PROP_MODULE_TYPE 0x0202
#define TDDL_CAP_PROP_GLOBAL_STATE 0x0203
//--------------------------------------------------------------------
// TDDL specific helper redefinitions
#ifdef __cplusplus
extern "C" {
#endif
//establish a connection to the TPM device driver
TDDLI TSS_RESULT Tddli_Open(void);
//close a open connection to the TPM device driver
TDDLI TSS_RESULT Tddli_Close(void);
//cancels the last outstanding TPM command
TDDLI TSS_RESULT Tddli_Cancel(void);
// read the attributes returned by the TPM HW/FW
TDDLI TSS_RESULT Tddli_GetCapability(
UINT32 CapArea,
UINT32 SubCap,
BYTE *pCapBuf,
UINT32 *puntCapBufLen);
// set parameters to the TPM HW/FW
TDDLI TSS_RESULT Tddli_SetCapability(
UINT32 CapArea,
UINT32 SubCap,
BYTE *pCapBuf,
UINT32 puntCapBufLen);
// get status of the TPM driver and device
TDDLI TSS_RESULT Tddli_GetStatus(
UINT32 ReqStatusType,
UINT32 *puntStatus);
// send any data to the TPM module
TDDLI TSS_RESULT Tddli_TransmitData(
BYTE *pTransmitBuf,
UINT32 TransmitBufLen,
BYTE *pReceiveBuf,
UINT32 *puntReceiveBufLen);
TDDLI TSS_RESULT Tddli_SetPowerManagement(
TSS_BOOL SendSaveStateCommand, // in
UINT32 *QuerySetNewTPMPowerState); // in, out
TDDLI TSS_RESULT Tddli_PowerManagementControl(
TSS_BOOL SendPowerManager, // in
UINT32 *DriverManagesPowerStates); // out
#ifdef __cplusplus
}
#endif
#endif // __TDDLI_H__
|