blob: 48529fd1531e4132507f5c00cf911bd3635b36d7 [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_DIF_AUTOGEN_DIF_SMC_CTRL_AUTOGEN_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_AUTOGEN_DIF_SMC_CTRL_AUTOGEN_H_
// THIS FILE HAS BEEN GENERATED, DO NOT EDIT MANUALLY. COMMAND:
// util/make_new_dif.py --mode=regen --only=autogen
/**
* @file
* @brief <a href="/hw/ip/smc_ctrl/doc/">SMC_CTRL</a> Device Interface Functions
*/
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_base.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/**
* A handle to smc_ctrl.
*
* This type should be treated as opaque by users.
*/
typedef struct dif_smc_ctrl {
/**
* The base address for the smc_ctrl hardware registers.
*/
mmio_region_t base_addr;
} dif_smc_ctrl_t;
/**
* Creates a new handle for a(n) smc_ctrl peripheral.
*
* This function does not actuate the hardware.
*
* @param base_addr The MMIO base address of the smc_ctrl peripheral.
* @param[out] smc_ctrl Out param for the initialized handle.
* @return The result of the operation.
*/
OT_WARN_UNUSED_RESULT
dif_result_t dif_smc_ctrl_init(mmio_region_t base_addr,
dif_smc_ctrl_t *smc_ctrl);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif // OPENTITAN_SW_DEVICE_LIB_DIF_AUTOGEN_DIF_SMC_CTRL_AUTOGEN_H_