blob: 187bad7992c155ccb52e83de6083a7bb05b3f45e [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_OTP_CTRL_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_OTP_CTRL_TESTUTILS_H_
#include "sw/device/lib/dif/dif_otp_ctrl.h"
/**
* Waits for the DAI operation to finish (busy wait).
*/
void otp_ctrl_testutils_wait_for_dai(const dif_otp_ctrl_t *otp_ctrl);
/**
* Issues a partition lock and waits for the DAI operation to finish (busy
* wait).
*/
void otp_ctrl_testutils_lock_partition(const dif_otp_ctrl_t *otp,
dif_otp_ctrl_partition_t partition,
uint64_t digest);
#endif // OPENTITAN_SW_DEVICE_LIB_TESTING_OTP_CTRL_TESTUTILS_H_