![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <assert.h>
#include <commonlib/endian.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <delay.h>
#include <device/i2c_simple.h>
#include <endian.h>
#include <lib.h>
#include <security/tpm/tis.h>
#include <timer.h>
#include <types.h>
Go to the source code of this file.
Data Structures | |
struct | tpm_output_header |
Macros | |
#define | RECV_TIMEOUT (1 * 1000) /* 1 second */ |
#define | XMIT_TIMEOUT (1 * 1000) /* 1 second */ |
#define | SLEEP_DURATION 1000 /* microseconds */ |
Functions | |
int | tis_open (void) |
int | tis_close (void) |
int | tis_init (void) |
int | tis_sendrecv (const uint8_t *sendbuf, size_t sbuf_size, uint8_t *recvbuf, size_t *rbuf_len) |
Variables | |
struct tpm_output_header | __packed |
#define RECV_TIMEOUT (1 * 1000) /* 1 second */ |
Definition at line 15 of file tis_atmel.c.
#define SLEEP_DURATION 1000 /* microseconds */ |
Definition at line 17 of file tis_atmel.c.
#define XMIT_TIMEOUT (1 * 1000) /* 1 second */ |
Definition at line 16 of file tis_atmel.c.
int tis_close | ( | void | ) |
Definition at line 30 of file tis_atmel.c.
int tis_init | ( | void | ) |
Definition at line 35 of file tis_atmel.c.
int tis_open | ( | void | ) |
Definition at line 25 of file tis_atmel.c.
int tis_sendrecv | ( | const uint8_t * | sendbuf, |
size_t | sbuf_size, | ||
uint8_t * | recvbuf, | ||
size_t * | rbuf_len | ||
) |
Definition at line 40 of file tis_atmel.c.
References ASSERT, BIOS_DEBUG, CONFIG, header, hexdump(), i2c_read_raw(), i2c_write_raw(), MIN, printk, read_at_be32(), RECV_TIMEOUT, SLEEP_DURATION, stopwatch_expired(), stopwatch_init_msecs_expire(), udelay(), and XMIT_TIMEOUT.
struct tpm_output_header __packed |