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

All identifiers, regardless of use, that start with two underscores are reserved. This means they can't be used in header guards. The style that this project is now to use the full name of the file in capital letters followed by 'H'. For example, for a file called "uart_example.h", the header guard is UART_EXAMPLE_H. The exceptions are files that are imported from other projects: - CryptoCell driver - dt-bindings folders - zlib headers Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
31 lines
931 B
C
31 lines
931 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 */
|