coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ppi_stub.c File Reference
#include <types.h>
#include <acpi/acpigen.h>
#include <acpi/acpi_device.h>
#include "tpm_ppi.h"
Include dependency graph for ppi_stub.c:

Go to the source code of this file.

Functions

static void tpm_ppi_func0_cb (void *arg)
 
static void tpm_ppi_func1_cb (void *arg)
 
static void tpm_ppi_func2_cb (void *arg)
 
static void tpm_ppi_func3_cb (void *arg)
 
static void tpm_ppi_func4_cb (void *arg)
 
static void tpm_ppi_func5_cb (void *arg)
 
static void tpm_ppi_func6_cb (void *arg)
 
static void tpm_ppi_func7_cb (void *arg)
 
static void tpm_ppi_func8_cb (void *arg)
 
static void tpm_mci_func0_cb (void *arg)
 
static void tpm_mci_func1_cb (void *arg)
 
void tpm_ppi_acpi_fill_ssdt (const struct device *dev)
 

Variables

static void(* tpm_ppi_callbacks [])(void *)
 
static void(* tpm_mci_callbacks [])(void *)
 

Function Documentation

◆ tpm_mci_func0_cb()

static void tpm_mci_func0_cb ( void arg)
static

Definition at line 92 of file ppi_stub.c.

References acpigen_write_return_singleton_buffer().

Here is the call graph for this function:

◆ tpm_mci_func1_cb()

static void tpm_mci_func1_cb ( void arg)
static

Definition at line 97 of file ppi_stub.c.

References acpigen_write_return_byte().

Here is the call graph for this function:

◆ tpm_ppi_acpi_fill_ssdt()

void tpm_ppi_acpi_fill_ssdt ( const struct device dev)

Definition at line 108 of file ppi_stub.c.

References acpigen_write_dsm_uuid_arr(), ARRAY_SIZE, DSM_UUID, NULL, tpm_mci_callbacks, TPM_MCI_UUID, tpm_ppi_callbacks, and TPM_PPI_UUID.

Here is the call graph for this function:

◆ tpm_ppi_func0_cb()

static void tpm_ppi_func0_cb ( void arg)
static

Definition at line 9 of file ppi_stub.c.

References acpigen_write_return_byte_buffer(), and buf.

Here is the call graph for this function:

◆ tpm_ppi_func1_cb()

static void tpm_ppi_func1_cb ( void arg)
static

Definition at line 16 of file ppi_stub.c.

References acpigen_write_return_string(), CONFIG, and TPM2.

Here is the call graph for this function:

◆ tpm_ppi_func2_cb()

static void tpm_ppi_func2_cb ( void arg)
static

Definition at line 26 of file ppi_stub.c.

References acpigen_write_return_byte(), and PPI2_RET_SUCCESS.

Here is the call graph for this function:

◆ tpm_ppi_func3_cb()

static void tpm_ppi_func3_cb ( void arg)
static

Definition at line 32 of file ppi_stub.c.

References acpigen_emit_byte(), acpigen_pop_len(), acpigen_write_byte(), acpigen_write_package(), and RETURN_OP.

Here is the call graph for this function:

◆ tpm_ppi_func4_cb()

static void tpm_ppi_func4_cb ( void arg)
static

Definition at line 42 of file ppi_stub.c.

References acpigen_write_return_byte().

Here is the call graph for this function:

◆ tpm_ppi_func5_cb()

static void tpm_ppi_func5_cb ( void arg)
static

Definition at line 48 of file ppi_stub.c.

References acpigen_emit_byte(), acpigen_pop_len(), acpigen_write_byte(), acpigen_write_package(), and RETURN_OP.

Here is the call graph for this function:

◆ tpm_ppi_func6_cb()

static void tpm_ppi_func6_cb ( void arg)
static

Definition at line 59 of file ppi_stub.c.

References acpigen_write_return_byte(), and PPI6_RET_NOT_IMPLEMENTED.

Here is the call graph for this function:

◆ tpm_ppi_func7_cb()

static void tpm_ppi_func7_cb ( void arg)
static

Definition at line 68 of file ppi_stub.c.

References acpigen_write_return_byte(), and PPI7_RET_BLOCKED_BY_FIRMWARE.

Here is the call graph for this function:

◆ tpm_ppi_func8_cb()

static void tpm_ppi_func8_cb ( void arg)
static

Definition at line 74 of file ppi_stub.c.

References acpigen_write_return_byte(), and PPI8_RET_FIRMWARE_ONLY.

Here is the call graph for this function:

Variable Documentation

◆ tpm_mci_callbacks

void(* tpm_mci_callbacks[])(void *) ( void )
static
Initial value:
= {
}
static void tpm_mci_func1_cb(void *arg)
Definition: ppi_stub.c:97
static void tpm_mci_func0_cb(void *arg)
Definition: ppi_stub.c:92

Definition at line 103 of file ppi_stub.c.

Referenced by tpm_ppi_acpi_fill_ssdt().

◆ tpm_ppi_callbacks

void(* tpm_ppi_callbacks[])(void *) ( void )
static
Initial value:
= {
}
static void tpm_ppi_func7_cb(void *arg)
Definition: ppi_stub.c:68
static void tpm_ppi_func0_cb(void *arg)
Definition: ppi_stub.c:9
static void tpm_ppi_func6_cb(void *arg)
Definition: ppi_stub.c:59
static void tpm_ppi_func1_cb(void *arg)
Definition: ppi_stub.c:16
static void tpm_ppi_func3_cb(void *arg)
Definition: ppi_stub.c:32
static void tpm_ppi_func8_cb(void *arg)
Definition: ppi_stub.c:74
static void tpm_ppi_func5_cb(void *arg)
Definition: ppi_stub.c:48
static void tpm_ppi_func4_cb(void *arg)
Definition: ppi_stub.c:42
static void tpm_ppi_func2_cb(void *arg)
Definition: ppi_stub.c:26

Definition at line 80 of file ppi_stub.c.

Referenced by tpm_ppi_acpi_fill_ssdt().