coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tis_atmel.c File Reference
#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>
Include dependency graph for tis_atmel.c:

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
 

Macro Definition Documentation

◆ RECV_TIMEOUT

#define RECV_TIMEOUT   (1 * 1000) /* 1 second */

Definition at line 15 of file tis_atmel.c.

◆ SLEEP_DURATION

#define SLEEP_DURATION   1000 /* microseconds */

Definition at line 17 of file tis_atmel.c.

◆ XMIT_TIMEOUT

#define XMIT_TIMEOUT   (1 * 1000) /* 1 second */

Definition at line 16 of file tis_atmel.c.

Function Documentation

◆ tis_close()

int tis_close ( void  )

Definition at line 30 of file tis_atmel.c.

◆ tis_init()

int tis_init ( void  )

Definition at line 35 of file tis_atmel.c.

◆ tis_open()

int tis_open ( void  )

Definition at line 25 of file tis_atmel.c.

◆ tis_sendrecv()

int tis_sendrecv ( const uint8_t sendbuf,
size_t  sbuf_size,
uint8_t recvbuf,
size_t rbuf_len 
)

Variable Documentation

◆ __packed