mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00

secure_boot_api_f is defined to take uint32_t, uint32_t, and void * parameters. However rom_secure_boot_api_f is defined to take uint32_t *, uint32_t *, void *. These are incompatible and cause a warning when compiling with -Wextra. Align the rom definition to the more generic definition from where it's called. Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: Ia030803b3c2335d220aff09fc0eef5c7615276aa
31 lines
929 B
C
31 lines
929 B
C
/*
|
|
* Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef ROM_API_H
|
|
#define ROM_API_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define SBROM_OK (0x00000000U)
|
|
#define SBROM_ILLEGAL_INPUT_PARAM_ERR (0x0B000001U)
|
|
#define SBROM_ILLEGAL_OEM_HASH_VALUE_ERR (0x0B000008U)
|
|
#define SBROM_ILLEGAL_LCS_FOR_OPERATION_ERR (0x0B000010U)
|
|
#define SBROM_HASH_NOT_PROGRAMMED_ERR (0x0B000100U)
|
|
#define SBROM_PUB_KEY_HASH_VALIDATION_FAILURE (0xF1000006U)
|
|
#define SBROM_RSA_SIG_VERIFICATION_FAILED (0xF1000007U)
|
|
|
|
#define LCS_CM (0x0U)
|
|
#define LCS_DM (0x1U)
|
|
#define LCS_SD (0x3U)
|
|
#define LCS_SE (0x5U)
|
|
#define LCS_FA (0x7U)
|
|
|
|
typedef uint32_t(*rom_read_flash_f) (uint64_t src, uint8_t *dst, uint32_t len);
|
|
uint32_t rcar_rom_secure_boot_api(uint32_t key, uint32_t cert,
|
|
rom_read_flash_f f);
|
|
uint32_t rcar_rom_get_lcs(uint32_t *lcs);
|
|
|
|
#endif /* ROM_API_H */
|