coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mpidr.h File Reference
#include <stdint.h>
#include <arch/lib_helpers.h>
Include dependency graph for mpidr.h:

Go to the source code of this file.

Enumerations

enum  {
  MPIDR_RES1_SHIFT = 31 , MPIDR_U_SHIFT = 30 , MPIDR_MT_SHIFT = 24 , MPIDR_AFFINITY_0_SHIFT = 0 ,
  MPIDR_AFFINITY_1_SHIFT = 8 , MPIDR_AFFINITY_2_SHIFT = 16 , MPIDR_AFFINITY_3_SHIFT = 32 , MPIDR_AFFINITY_MASK = 0xff
}
 

Functions

static uint64_t mpidr_mask (uint8_t aff3, uint8_t aff2, uint8_t aff1, uint8_t aff0)
 
static uint64_t read_mpidr (void)
 
static uint64_t read_affinity_mpidr (void)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MPIDR_RES1_SHIFT 
MPIDR_U_SHIFT 
MPIDR_MT_SHIFT 
MPIDR_AFFINITY_0_SHIFT 
MPIDR_AFFINITY_1_SHIFT 
MPIDR_AFFINITY_2_SHIFT 
MPIDR_AFFINITY_3_SHIFT 
MPIDR_AFFINITY_MASK 

Definition at line 9 of file mpidr.h.

Function Documentation

◆ mpidr_mask()

static uint64_t mpidr_mask ( uint8_t  aff3,
uint8_t  aff2,
uint8_t  aff1,
uint8_t  aff0 
)
inlinestatic

Definition at line 21 of file mpidr.h.

References MPIDR_AFFINITY_0_SHIFT, MPIDR_AFFINITY_1_SHIFT, MPIDR_AFFINITY_2_SHIFT, and MPIDR_AFFINITY_3_SHIFT.

Referenced by read_affinity_mpidr().

Here is the caller graph for this function:

◆ read_affinity_mpidr()

static uint64_t read_affinity_mpidr ( void  )
inlinestatic

Definition at line 39 of file mpidr.h.

References MPIDR_AFFINITY_MASK, mpidr_mask(), and read_mpidr().

Here is the call graph for this function:

◆ read_mpidr()

static uint64_t read_mpidr ( void  )
inlinestatic

Definition at line 34 of file mpidr.h.

Referenced by read_affinity_mpidr().

Here is the caller graph for this function: