RTEMS 6.1-rc1
fsl_iee_apc.h
1/*
2 * Copyright 2020-2021, NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef _FSL_IEE_APC_H_
9#define _FSL_IEE_APC_H_
10
11#include "fsl_common.h"
12
18/*******************************************************************************
19 * Definitions
20 ******************************************************************************/
21
34#define FSL_IEE_APC_DRIVER_VERSION (MAKE_VERSION(2, 0, 1))
38typedef enum _iee_apc_region
39{
49
51typedef enum _apc_iee_domain
52{
56
57/*******************************************************************************
58 * API
59 ******************************************************************************/
60#if defined(__cplusplus)
61extern "C" {
62#endif
63
72
81
92status_t IEE_APC_SetRegionConfig(IEE_APC_Type *base, iee_apc_region_t region, uint32_t startAddr, uint32_t endAddr);
93
105
115
116#if defined(__cplusplus)
117}
118#endif
119
124#endif /* _FSL_IEE_APC_H_ */
_iee_apc_region
APC IEE regions.
Definition: fsl_iee_apc.h:39
_apc_iee_domain
APC IEE domains.
Definition: fsl_iee_apc.h:52
status_t IEE_APC_LockRegionConfig(IEE_APC_Type *base, iee_apc_region_t region, iee_apc_domain_t domain)
Lock the LPSR GPR and APC IEE configuration.
Definition: fsl_iee_apc.c:149
void IEE_APC_RegionEnable(IEE_APC_Type *base, iee_apc_region_t region)
Enable the IEE encryption/decryption and can lock this setting.
Definition: fsl_iee_apc.c:355
status_t IEE_APC_SetRegionConfig(IEE_APC_Type *base, iee_apc_region_t region, uint32_t startAddr, uint32_t endAddr)
Sets the APC IEE Memory Region Descriptors.
Definition: fsl_iee_apc.c:65
enum _iee_apc_region iee_apc_region_t
APC IEE regions.
enum _apc_iee_domain iee_apc_domain_t
APC IEE domains.
void IEE_APC_GlobalDisable(IEE_APC_Type *base)
Disables the APC IEE Region setting.
Definition: fsl_iee_apc.c:47
void IEE_APC_GlobalEnable(IEE_APC_Type *base)
Enable the APC IEE Region setting.
Definition: fsl_iee_apc.c:32
@ kIEE_APC_Region1
Definition: fsl_iee_apc.h:41
@ kIEE_APC_Region0
Definition: fsl_iee_apc.h:40
@ kIEE_APC_Region5
Definition: fsl_iee_apc.h:45
@ kIEE_APC_Region7
Definition: fsl_iee_apc.h:47
@ kIEE_APC_Region3
Definition: fsl_iee_apc.h:43
@ kIEE_APC_Region4
Definition: fsl_iee_apc.h:44
@ kIEE_APC_Region2
Definition: fsl_iee_apc.h:42
@ kIEE_APC_Region6
Definition: fsl_iee_apc.h:46
@ kIEE_APC_Domain1
Definition: fsl_iee_apc.h:54
@ kIEE_APC_Domain0
Definition: fsl_iee_apc.h:53
int32_t status_t
Type used for all status and error return values.
Definition: fsl_common.h:225
Definition: MIMXRT1166_cm4.h:46394