coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tpm.h File Reference
#include <stdint.h>
Include dependency graph for tpm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tpm_vendor_specific
 
struct  tpm_chip
 

Macros

#define TPM_BUFSIZE   1260
 
#define TPM_HEADER_SIZE   10
 
#define TPM_CMD_SIZE_BYTE   2
 
#define TPM_CMD_ORDINAL_BYTE   6
 
#define TPM_RSP_SIZE_BYTE   2
 
#define TPM_RSP_RC_BYTE   6
 
#define TPM_ACCESS(l)   (0x0000 | ((l) << 4))
 
#define TPM_STS(l)   (0x0001 | ((l) << 4))
 
#define TPM_DATA_FIFO(l)   (0x0005 | ((l) << 4))
 
#define TPM_DID_VID(l)   (0x0006 | ((l) << 4))
 

Enumerations

enum  tpm_timeout { TPM_TIMEOUT = 1 }
 

Functions

int tpm_vendor_probe (unsigned int bus, uint32_t addr)
 
int tpm_vendor_init (struct tpm_chip *chip, unsigned int bus, uint32_t dev_addr)
 
void tpm_vendor_cleanup (struct tpm_chip *chip)
 

Macro Definition Documentation

◆ TPM_ACCESS

#define TPM_ACCESS (   l)    (0x0000 | ((l) << 4))

Definition at line 35 of file tpm.h.

◆ TPM_BUFSIZE

#define TPM_BUFSIZE   1260

Definition at line 22 of file tpm.h.

◆ TPM_CMD_ORDINAL_BYTE

#define TPM_CMD_ORDINAL_BYTE   6

Definition at line 29 of file tpm.h.

◆ TPM_CMD_SIZE_BYTE

#define TPM_CMD_SIZE_BYTE   2

Definition at line 28 of file tpm.h.

◆ TPM_DATA_FIFO

#define TPM_DATA_FIFO (   l)    (0x0005 | ((l) << 4))

Definition at line 37 of file tpm.h.

◆ TPM_DID_VID

#define TPM_DID_VID (   l)    (0x0006 | ((l) << 4))

Definition at line 38 of file tpm.h.

◆ TPM_HEADER_SIZE

#define TPM_HEADER_SIZE   10

Definition at line 25 of file tpm.h.

◆ TPM_RSP_RC_BYTE

#define TPM_RSP_RC_BYTE   6

Definition at line 33 of file tpm.h.

◆ TPM_RSP_SIZE_BYTE

#define TPM_RSP_SIZE_BYTE   2

Definition at line 32 of file tpm.h.

◆ TPM_STS

#define TPM_STS (   l)    (0x0001 | ((l) << 4))

Definition at line 36 of file tpm.h.

Enumeration Type Documentation

◆ tpm_timeout

Enumerator
TPM_TIMEOUT 

Definition at line 17 of file tpm.h.

Function Documentation

◆ tpm_vendor_cleanup()

void tpm_vendor_cleanup ( struct tpm_chip chip)

Definition at line 513 of file cr50.c.

References chip, tpm_vendor_specific::locality, release_locality(), and tpm_chip::vendor.

Referenced by tis_close().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tpm_vendor_init()

◆ tpm_vendor_probe()

int tpm_vendor_probe ( unsigned int  bus,
uint32_t  addr 
)