49 if (FdtParserHandle ==
NULL) {
51 return EFI_INVALID_PARAMETER;
54 Fdt = FdtParserHandle->Fdt;
62 if (EFI_ERROR (Status)) {
68 if ((AddressCells < 1) ||
79 Data = fdt_getprop (Fdt, GicIntcNode,
"#redistributor-regions", &DataSize);
80 if ((Data !=
NULL) && (DataSize ==
sizeof (UINT32))) {
82 RedistReg = fdt32_to_cpu (*(UINT32 *)Data);
126 RegSize = (AddressCells + SizeCells) *
sizeof (UINT32);
127 Data = fdt_getprop (Fdt, GicIntcNode,
"reg", &DataSize);
128 if ((Data ==
NULL) ||
130 ((DataSize % RegSize) != 0))
139 for (Index = 0; Index < RedistReg; Index++) {
142 if (AddressCells == 2) {
148 Data +=
sizeof (UINT32) * AddressCells;
150 if (SizeCells == 2) {
164 if (EFI_ERROR (Status)) {
169 Data +=
sizeof (UINT32) * SizeCells;
212 if (FdtParserHandle ==
NULL) {
214 return EFI_INVALID_PARAMETER;
217 Fdt = FdtParserHandle->Fdt;
221 return EFI_INVALID_PARAMETER;
226 if (EFI_ERROR (Status)) {
231 if (GicVersion < 3) {
233 return EFI_UNSUPPORTED;
EFI_STATUS EFIAPI GetGicVersion(IN CONST VOID *Fdt, IN INT32 IntcNode, OUT UINT32 *GicVersion)
EFI_STATUS EFIAPI ArmGicRInfoParser(IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN INT32 FdtBranch)
STATIC EFI_STATUS EFIAPI GicRIntcNodeParser(IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN INT32 GicIntcNode)
@ EArmObjGicRedistributorInfo
5 - GIC Redistributor Info
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
EFI_STATUS EFIAPI AddSingleCmObj(IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN CM_OBJECT_ID ObjectId, IN VOID *Data, IN UINT32 Size, OUT CM_OBJECT_TOKEN *Token OPTIONAL)
#define CREATE_CM_ARM_OBJECT_ID(ObjectId)
EFI_STATUS EFIAPI FdtGetParentAddressInfo(IN CONST VOID *Fdt, IN INT32 Node, OUT INT32 *AddressCells, OPTIONAL OUT INT32 *SizeCells OPTIONAL)
BOOLEAN EFIAPI FdtNodeHasProperty(IN CONST VOID *Fdt, IN INT32 Node, IN CONST VOID *PropertyName)
#define GET_DT_REG_ADDRESS_OFFSET(Index, AddrCells, SizeCells)
#define ASSERT_EFI_ERROR(StatusParameter)
UINT64 DiscoveryRangeBaseAddress
UINT32 DiscoveryRangeLength
Length of the GIC Redistributor Discovery page range.