mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

Updated DRTM setup functionality that mainly does below 2 things 1. Initialise the DRTM DMA protection, this function assumes the platform must support complete DMA protection. 2. Initialise the Crypto module that will be useful to calculate the hash of various DRTM element involved. Signed-off-by: Manish V Badarkhe <manish.badarkhe@arm.com> Signed-off-by: Lucian Paul-Trifu <lucian.paultrifu@gmail.com> Change-Id: I3d6e4d534686d391fa7626094d2b2535dac74e00
26 lines
424 B
C
26 lines
424 B
C
/*
|
|
* Copyright (c) 2022 Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
#ifndef DRTM_MAIN_H
|
|
#define DRTM_MAIN_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <lib/smccc.h>
|
|
|
|
#include "drtm_dma_prot.h"
|
|
|
|
enum drtm_retc {
|
|
SUCCESS = SMC_OK,
|
|
NOT_SUPPORTED = SMC_UNK,
|
|
INVALID_PARAMETERS = -2,
|
|
DENIED = -3,
|
|
NOT_FOUND = -4,
|
|
INTERNAL_ERROR = -5,
|
|
MEM_PROTECT_INVALID = -6,
|
|
};
|
|
|
|
#endif /* DRTM_MAIN_H */
|