Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Macros | |
#define | DAIFSET_FIQ_BIT BIT(0) |
#define | DAIFSET_IRQ_BIT BIT(1) |
#define | DAIFSET_ABT_BIT BIT(2) |
#define | DAIFSET_DBG_BIT BIT(3) |
#define | DAIFCLR_FIQ_BIT BIT(0) |
#define | DAIFCLR_IRQ_BIT BIT(1) |
#define | DAIFCLR_ABT_BIT BIT(2) |
#define | DAIFCLR_DBG_BIT BIT(3) |
#define | DAIF_FIQ_BIT BIT(6) |
#define | DAIF_IRQ_BIT BIT(7) |
#define | DAIF_ABT_BIT BIT(8) |
#define | DAIF_DBG_BIT BIT(9) |
#define | SPSR_DAIF_SHIFT (6) |
#define | SPSR_DAIF_MASK (0xf << SPSR_DAIF_SHIFT) |
#define | SPSR_MODE_EL0T (0x0) |
#define | SPSR_MODE_EL1T (0x4) |
#define | SPSR_MODE_EL1H (0x5) |
#define | SPSR_MODE_EL2T (0x8) |
#define | SPSR_MODE_EL2H (0x9) |
#define | SPSR_MODE_MASK (0xf) |
#define | SCTLR_EL3_RES1 |
#define | SCTLR_EL2_RES1 |
#define | SCTLR_EL1_RES1 |
#define | SCTLR_M_BIT BIT(0) |
#define | SCTLR_A_BIT BIT(1) |
#define | SCTLR_C_BIT BIT(2) |
#define | SCTLR_SA_BIT BIT(3) |
#define | SCTLR_I_BIT BIT(12) |
#define | SCTLR_BR_BIT BIT(17) |
#define | CPACR_EL1_FPEN_NOTRAP (0x3 << 20) |
#define | SCR_NS_BIT BIT(0) |
#define | SCR_IRQ_BIT BIT(1) |
#define | SCR_FIQ_BIT BIT(2) |
#define | SCR_EA_BIT BIT(3) |
#define | SCR_SMD_BIT BIT(7) |
#define | SCR_HCE_BIT BIT(8) |
#define | SCR_RW_BIT BIT(10) |
#define | SCR_ST_BIT BIT(11) |
#define | SCR_EEL2_BIT BIT(18) |
#define | SCR_RES1 (BIT(4) | BIT(5)) |
#define | MPIDR_AFFLVL_MASK (0xffULL) |
#define | MPIDR_AFF0_SHIFT (0) |
#define | MPIDR_AFF1_SHIFT (8) |
#define | MPIDR_AFF2_SHIFT (16) |
#define | MPIDR_AFF3_SHIFT (32) |
#define | MPIDR_AFF_MASK (GENMASK(23, 0) | GENMASK(39, 32)) |
#define | MPIDR_AFFLVL(mpidr, aff_level) |
#define | GET_MPIDR() |
#define | MPIDR_TO_CORE(mpidr) |
#define | MODE_EL_SHIFT (0x2) |
#define | MODE_EL_MASK (0x3) |
#define | MODE_EL3 (0x3) |
#define | MODE_EL2 (0x2) |
#define | MODE_EL1 (0x1) |
#define | MODE_EL0 (0x0) |
#define | GET_EL(_mode) |
#define | ESR_EC_SHIFT (26) |
#define | ESR_EC_MASK BIT_MASK(6) |
#define | ESR_ISS_SHIFT (0) |
#define | ESR_ISS_MASK BIT_MASK(25) |
#define | ESR_IL_SHIFT (25) |
#define | ESR_IL_MASK BIT_MASK(1) |
#define | GET_ESR_EC(esr) |
#define | GET_ESR_IL(esr) |
#define | GET_ESR_ISS(esr) |
#define | CNTV_CTL_ENABLE_BIT BIT(0) |
#define | CNTV_CTL_IMASK_BIT BIT(1) |
#define | ID_AA64PFR0_EL0_SHIFT (0) |
#define | ID_AA64PFR0_EL1_SHIFT (4) |
#define | ID_AA64PFR0_EL2_SHIFT (8) |
#define | ID_AA64PFR0_EL3_SHIFT (12) |
#define | ID_AA64PFR0_ELX_MASK (0xf) |
#define | ID_AA64PFR0_SEL2_SHIFT (36) |
#define | ID_AA64PFR0_SEL2_MASK (0xf) |
#define | ACTLR_EL3_CPUACTLR_BIT BIT(0) |
#define | ACTLR_EL3_CPUECTLR_BIT BIT(1) |
#define | ACTLR_EL3_L2CTLR_BIT BIT(4) |
#define | ACTLR_EL3_L2ECTLR_BIT BIT(5) |
#define | ACTLR_EL3_L2ACTLR_BIT BIT(6) |
#define | CPTR_EZ_BIT BIT(8) |
#define | CPTR_TFP_BIT BIT(10) |
#define | CPTR_TTA_BIT BIT(20) |
#define | CPTR_TCPAC_BIT BIT(31) |
#define | CPTR_EL2_RES1 BIT(13) | BIT(12) | BIT(9) | (0xff) |
#define | HCR_FMO_BIT BIT(3) |
#define | HCR_IMO_BIT BIT(4) |
#define | HCR_AMO_BIT BIT(5) |
#define | HCR_TGE_BIT BIT(27) |
#define | HCR_RW_BIT BIT(31) |
#define | ICC_IGRPEN1_EL1 S3_0_C12_C12_7 |
#define | ICC_SGI1R S3_0_C12_C11_5 |
#define | ICC_SRE_EL1 S3_0_C12_C12_5 |
#define | ICC_SRE_EL2 S3_4_C12_C9_5 |
#define | ICC_SRE_EL3 S3_6_C12_C12_5 |
#define | ICC_CTLR_EL1 S3_0_C12_C12_4 |
#define | ICC_CTLR_EL3 S3_6_C12_C12_4 |
#define | ICC_PMR_EL1 S3_0_C4_C6_0 |
#define | ICC_RPR_EL1 S3_0_C12_C11_3 |
#define | ICC_IGRPEN1_EL3 S3_6_C12_C12_7 |
#define | ICC_IGRPEN0_EL1 S3_0_C12_C12_6 |
#define | ICC_HPPIR0_EL1 S3_0_C12_C8_2 |
#define | ICC_HPPIR1_EL1 S3_0_C12_C12_2 |
#define | ICC_IAR0_EL1 S3_0_C12_C8_0 |
#define | ICC_IAR1_EL1 S3_0_C12_C12_0 |
#define | ICC_EOIR0_EL1 S3_0_C12_C8_1 |
#define | ICC_EOIR1_EL1 S3_0_C12_C12_1 |
#define | ICC_SGI0R_EL1 S3_0_C12_C11_7 |
#define | ICC_SRE_ELx_SRE_BIT BIT(0) |
#define | ICC_SRE_ELx_DFB_BIT BIT(1) |
#define | ICC_SRE_ELx_DIB_BIT BIT(2) |
#define | ICC_SRE_EL3_EN_BIT BIT(3) |
#define | SGIR_TGT_MASK (0xffff) |
#define | SGIR_AFF1_SHIFT (16) |
#define | SGIR_AFF2_SHIFT (32) |
#define | SGIR_AFF3_SHIFT (48) |
#define | SGIR_AFF_MASK (0xff) |
#define | SGIR_INTID_SHIFT (24) |
#define | SGIR_INTID_MASK (0xf) |
#define | SGIR_IRM_SHIFT (40) |
#define | SGIR_IRM_MASK (0x1) |
#define | SGIR_IRM_TO_AFF (0) |
#define | GICV3_SGIR_VALUE(_aff3, _aff2, _aff1, _intid, _irm, _tgt) |
#define | L1_CACHE_SHIFT (6) |
#define | L1_CACHE_BYTES BIT(L1_CACHE_SHIFT) |
#define | ARM64_CPU_INIT_SIZE L1_CACHE_BYTES |
#define ACTLR_EL3_CPUACTLR_BIT BIT(0) |
#define ACTLR_EL3_CPUECTLR_BIT BIT(1) |
#define ACTLR_EL3_L2ACTLR_BIT BIT(6) |
#define ACTLR_EL3_L2CTLR_BIT BIT(4) |
#define ACTLR_EL3_L2ECTLR_BIT BIT(5) |
#define ARM64_CPU_INIT_SIZE L1_CACHE_BYTES |
#define CNTV_CTL_ENABLE_BIT BIT(0) |
#define CNTV_CTL_IMASK_BIT BIT(1) |
#define CPACR_EL1_FPEN_NOTRAP (0x3 << 20) |
#define CPTR_EZ_BIT BIT(8) |
#define CPTR_TCPAC_BIT BIT(31) |
#define CPTR_TFP_BIT BIT(10) |
#define CPTR_TTA_BIT BIT(20) |
#define DAIF_ABT_BIT BIT(8) |
#define DAIF_DBG_BIT BIT(9) |
#define DAIF_FIQ_BIT BIT(6) |
#define DAIF_IRQ_BIT BIT(7) |
#define DAIFCLR_ABT_BIT BIT(2) |
#define DAIFCLR_DBG_BIT BIT(3) |
#define DAIFCLR_FIQ_BIT BIT(0) |
#define DAIFCLR_IRQ_BIT BIT(1) |
#define DAIFSET_ABT_BIT BIT(2) |
#define DAIFSET_DBG_BIT BIT(3) |
#define DAIFSET_FIQ_BIT BIT(0) |
#define DAIFSET_IRQ_BIT BIT(1) |
#define ESR_EC_MASK BIT_MASK(6) |
#define ESR_EC_SHIFT (26) |
#define ESR_IL_MASK BIT_MASK(1) |
#define ESR_IL_SHIFT (25) |
#define ESR_ISS_MASK BIT_MASK(25) |
#define ESR_ISS_SHIFT (0) |
#define GET_EL | ( | _mode | ) |
#define GET_ESR_EC | ( | esr | ) |
#define GET_ESR_IL | ( | esr | ) |
#define GET_ESR_ISS | ( | esr | ) |
#define GET_MPIDR | ( | ) |
#define GICV3_SGIR_VALUE | ( | _aff3, | |
_aff2, | |||
_aff1, | |||
_intid, | |||
_irm, | |||
_tgt ) |
#define HCR_AMO_BIT BIT(5) |
#define HCR_FMO_BIT BIT(3) |
#define HCR_IMO_BIT BIT(4) |
#define HCR_RW_BIT BIT(31) |
#define HCR_TGE_BIT BIT(27) |
#define ICC_CTLR_EL1 S3_0_C12_C12_4 |
#define ICC_CTLR_EL3 S3_6_C12_C12_4 |
#define ICC_EOIR0_EL1 S3_0_C12_C8_1 |
#define ICC_EOIR1_EL1 S3_0_C12_C12_1 |
#define ICC_HPPIR0_EL1 S3_0_C12_C8_2 |
#define ICC_HPPIR1_EL1 S3_0_C12_C12_2 |
#define ICC_IAR0_EL1 S3_0_C12_C8_0 |
#define ICC_IAR1_EL1 S3_0_C12_C12_0 |
#define ICC_IGRPEN0_EL1 S3_0_C12_C12_6 |
#define ICC_IGRPEN1_EL1 S3_0_C12_C12_7 |
#define ICC_IGRPEN1_EL3 S3_6_C12_C12_7 |
#define ICC_PMR_EL1 S3_0_C4_C6_0 |
#define ICC_RPR_EL1 S3_0_C12_C11_3 |
#define ICC_SGI0R_EL1 S3_0_C12_C11_7 |
#define ICC_SGI1R S3_0_C12_C11_5 |
#define ICC_SRE_EL1 S3_0_C12_C12_5 |
#define ICC_SRE_EL2 S3_4_C12_C9_5 |
#define ICC_SRE_EL3 S3_6_C12_C12_5 |
#define ICC_SRE_EL3_EN_BIT BIT(3) |
#define ICC_SRE_ELx_DFB_BIT BIT(1) |
#define ICC_SRE_ELx_DIB_BIT BIT(2) |
#define ICC_SRE_ELx_SRE_BIT BIT(0) |
#define ID_AA64PFR0_EL0_SHIFT (0) |
#define ID_AA64PFR0_EL1_SHIFT (4) |
#define ID_AA64PFR0_EL2_SHIFT (8) |
#define ID_AA64PFR0_EL3_SHIFT (12) |
#define ID_AA64PFR0_ELX_MASK (0xf) |
#define ID_AA64PFR0_SEL2_MASK (0xf) |
#define ID_AA64PFR0_SEL2_SHIFT (36) |
#define L1_CACHE_BYTES BIT(L1_CACHE_SHIFT) |
#define L1_CACHE_SHIFT (6) |
#define MODE_EL0 (0x0) |
#define MODE_EL1 (0x1) |
#define MODE_EL2 (0x2) |
#define MODE_EL3 (0x3) |
#define MODE_EL_MASK (0x3) |
#define MODE_EL_SHIFT (0x2) |
#define MPIDR_AFF0_SHIFT (0) |
#define MPIDR_AFF1_SHIFT (8) |
#define MPIDR_AFF2_SHIFT (16) |
#define MPIDR_AFF3_SHIFT (32) |
#define MPIDR_AFFLVL | ( | mpidr, | |
aff_level ) |
#define MPIDR_AFFLVL_MASK (0xffULL) |
#define MPIDR_TO_CORE | ( | mpidr | ) |
#define SCR_EA_BIT BIT(3) |
#define SCR_EEL2_BIT BIT(18) |
#define SCR_FIQ_BIT BIT(2) |
#define SCR_HCE_BIT BIT(8) |
#define SCR_IRQ_BIT BIT(1) |
#define SCR_NS_BIT BIT(0) |
#define SCR_RW_BIT BIT(10) |
#define SCR_SMD_BIT BIT(7) |
#define SCR_ST_BIT BIT(11) |
#define SCTLR_A_BIT BIT(1) |
#define SCTLR_BR_BIT BIT(17) |
#define SCTLR_C_BIT BIT(2) |
#define SCTLR_EL1_RES1 |
#define SCTLR_EL2_RES1 |
#define SCTLR_EL3_RES1 |
#define SCTLR_I_BIT BIT(12) |
#define SCTLR_M_BIT BIT(0) |
#define SCTLR_SA_BIT BIT(3) |
#define SGIR_AFF1_SHIFT (16) |
#define SGIR_AFF2_SHIFT (32) |
#define SGIR_AFF3_SHIFT (48) |
#define SGIR_AFF_MASK (0xff) |
#define SGIR_INTID_MASK (0xf) |
#define SGIR_INTID_SHIFT (24) |
#define SGIR_IRM_MASK (0x1) |
#define SGIR_IRM_SHIFT (40) |
#define SGIR_IRM_TO_AFF (0) |
#define SGIR_TGT_MASK (0xffff) |
#define SPSR_DAIF_MASK (0xf << SPSR_DAIF_SHIFT) |
#define SPSR_DAIF_SHIFT (6) |
#define SPSR_MODE_EL0T (0x0) |
#define SPSR_MODE_EL1H (0x5) |
#define SPSR_MODE_EL1T (0x4) |
#define SPSR_MODE_EL2H (0x9) |
#define SPSR_MODE_EL2T (0x8) |
#define SPSR_MODE_MASK (0xf) |