![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
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) |
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().
size_t tpm2_process_command | ( | const void * | tpm2_command, |
size_t | command_size, | ||
void * | tpm2_response, | ||
size_t | max_response | ||
) |
Definition at line 195 of file tpm.c.
References BIOS_DEBUG, BIOS_ERR, control_area::command_bfr, control_area::command_size, crb_activate_locality(), CRB_REG, CRB_REG_START, CRB_REG_START_START, CRB_REG_STATUS, CRB_REG_STATUS_ERROR, crb_switch_to_ready(), crb_wait_for_reg32(), cur_loc, length, memcpy(), printk, read32(), control_area::response_bfr, control_area::response_size, and write8().
Referenced by tis_sendrecv().