![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <stdint.h>
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) |
enum tpm_timeout |
Definition at line 513 of file cr50.c.
References chip, tpm_vendor_specific::locality, release_locality(), and tpm_chip::vendor.
Referenced by tis_close().
Definition at line 476 of file cr50.c.
References tpm_inf_dev::addr, BIOS_DEBUG, BIOS_ERR, tpm_inf_dev::bus, tpm_vendor_specific::cancel, chip, chip_name, tpm_inf_dev::chip_type, claim_locality(), cr50_get_firmware_version(), cr50_i2c_probe(), cr50_set_board_cfg(), cr50_vendor_init(), ENV_BOOTBLOCK, ENV_SEPARATE_VERSTAGE, iic_tpm_read(), tpm_chip::is_open, memset(), NULL, printk, process_reset(), tpm_vendor_specific::recv, release_locality(), tpm_vendor_specific::req_canceled, tpm_vendor_specific::req_complete_mask, tpm_vendor_specific::req_complete_val, request_locality(), tpm_vendor_specific::send, SLB9635, SLB9645, SLEEP_DURATION, SLEEP_DURATION_LONG, tpm_inf_dev::sleep_long, tpm_inf_dev::sleep_short, tpm_vendor_specific::status, tpm_dev, TPM_DID_VID, tpm_first_access_this_boot(), TPM_STS_COMMAND_READY, TPM_STS_DATA_AVAIL, TPM_STS_VALID, TPM_TIS_I2C_DID_VID_9635, TPM_TIS_I2C_DID_VID_9645, tpm_tis_i2c_ready(), tpm_tis_i2c_recv(), tpm_tis_i2c_send(), tpm_tis_i2c_status(), UNKNOWN, vendor, and tpm_chip::vendor.
Referenced by tis_open().
Definition at line 436 of file cr50.c.
References addr, tpm_inf_dev::addr, BIOS_INFO, buf, tpm_inf_dev::bus, tpm_inf_dev::chip_type, iic_tpm_read(), printk, SLEEP_DURATION, SLEEP_DURATION_LONG, SLEEP_DURATION_PROBE_MS, tpm_inf_dev::sleep_long, tpm_inf_dev::sleep_short, stopwatch_duration_msecs(), stopwatch_expired(), stopwatch_init_msecs_expire(), TPM_ACCESS, tpm_dev, TPM_STS_VALID, udelay(), and UNKNOWN.
Referenced by tis_init().