coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cr50.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause */
2
3
#ifndef __DRIVERS_TPM_CR50_H__
4
#define __DRIVERS_TPM_CR50_H__
5
6
#include <types.h>
7
8
/* Structure describing the elements of GSC firmware version. */
9
struct
cr50_firmware_version
{
10
int
epoch
;
11
int
major
;
12
int
minor
;
13
};
14
15
/* Indicates whether Cr50 ready pulses are guaranteed to be at least 100us. */
16
bool
cr50_is_long_interrupt_pulse_enabled
(
void
);
17
18
/* Get the GSC firmware version information. */
19
enum
cb_err
cr50_get_firmware_version
(
struct
cr50_firmware_version
*
version
);
20
21
/* Set the BOARD_CFG register depending on Cr50 Kconfigs */
22
enum
cb_err
cr50_set_board_cfg
(
void
);
23
24
#endif
/* __DRIVERS_TPM_CR50_H__ */
cb_err
cb_err
coreboot error codes
Definition:
cb_err.h:15
cr50_get_firmware_version
enum cb_err cr50_get_firmware_version(struct cr50_firmware_version *version)
Definition:
cr50.c:186
cr50_set_board_cfg
enum cb_err cr50_set_board_cfg(void)
Set the BOARD_CFG register on the TPM chip to a particular compile-time constant value.
Definition:
cr50.c:100
cr50_is_long_interrupt_pulse_enabled
bool cr50_is_long_interrupt_pulse_enabled(void)
Definition:
cr50.c:151
version
unsigned int version[2]
Definition:
edid.c:55
cr50_firmware_version
Definition:
cr50.h:9
cr50_firmware_version::epoch
int epoch
Definition:
cr50.h:10
cr50_firmware_version::major
int major
Definition:
cr50.h:11
cr50_firmware_version::minor
int minor
Definition:
cr50.h:12
src
drivers
tpm
cr50.h
Generated by
1.9.1