TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformLibWrapper.c File Reference
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include "hal/base.h"

Go to the source code of this file.

Functions

void libspdm_sleep (uint64_t milliseconds)
 
void libspdm_sleep_in_us (uint64_t microseconds)
 
bool libspdm_start_watchdog (uint32_t session_id, uint16_t seconds)
 
bool libspdm_stop_watchdog (uint32_t session_id)
 
bool libspdm_reset_watchdog (uint32_t session_id)
 

Detailed Description

EDKII Device Security library for SPDM device. It follows the SPDM Specification.

Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PlatformLibWrapper.c.

Function Documentation

◆ libspdm_reset_watchdog()

bool libspdm_reset_watchdog ( uint32_t  session_id)

Reset the watchdog in heartbeat response.

Parameters
session_idIndicate the SPDM session ID.

Definition at line 80 of file PlatformLibWrapper.c.

◆ libspdm_sleep()

void libspdm_sleep ( uint64_t  milliseconds)

Suspends the execution of the current thread until the time-out interval elapses.

Parameters
millisecondsThe time interval for which execution is to be suspended, in milliseconds.

Definition at line 21 of file PlatformLibWrapper.c.

◆ libspdm_sleep_in_us()

void libspdm_sleep_in_us ( uint64_t  microseconds)

Suspends the execution of the current thread until the time-out interval elapses.

Parameters
microsecondsThe time interval for which execution is to be suspended, in milliseconds.

Definition at line 35 of file PlatformLibWrapper.c.

◆ libspdm_start_watchdog()

bool libspdm_start_watchdog ( uint32_t  session_id,
uint16_t  seconds 
)

If no heartbeat arrives in seconds, the watchdog timeout event should terminate the session.

Parameters
session_idIndicate the SPDM session ID.
secondsheartbeat period, in seconds.

Definition at line 51 of file PlatformLibWrapper.c.

◆ libspdm_stop_watchdog()

bool libspdm_stop_watchdog ( uint32_t  session_id)

stop watchdog.

Parameters
session_idIndicate the SPDM session ID.

Definition at line 66 of file PlatformLibWrapper.c.