coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tpm.h File Reference
#include <drivers/tpm/cr50.h>
#include <stddef.h>
#include <spi-generic.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  tpm2_info
 

Macros

#define TPM_LOCALITY_0_SPI_BASE   0x00d40000
 

Functions

int tpm2_init (struct spi_slave *spi_if)
 
size_t tpm2_process_command (const void *tpm2_command, size_t command_size, void *tpm2_response, size_t max_response)
 
void tpm2_get_info (struct tpm2_info *info)
 

Macro Definition Documentation

◆ TPM_LOCALITY_0_SPI_BASE

#define TPM_LOCALITY_0_SPI_BASE   0x00d40000

Definition at line 10 of file tpm.h.

Function Documentation

◆ tpm2_get_info()

void tpm2_get_info ( struct tpm2_info info)

Definition at line 266 of file tpm.c.

References CRB_REG, CRB_REG_INTF_ID, cur_loc, tpm2_info::device_id, info, read64(), tpm2_info::revision, tpm_info, and tpm2_info::vendor_id.

Referenced by tis_init().

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

◆ tpm2_init()

int tpm2_init ( struct spi_slave spi_if)

Definition at line 426 of file tpm.c.

◆ tpm2_process_command()

size_t tpm2_process_command ( const void tpm2_command,
size_t  command_size,
void tpm2_response,
size_t  max_response 
)