50 return EFI_INVALID_PARAMETER;
54 if (EFI_ERROR (Status)) {
60 if ((AddressCells < 1) ||
67 Data = fdt_getprop (Fdt, GicIntcNode,
"reg", &DataSize);
68 if ((Data ==
NULL) || (DataSize < (INT32)(AddressCells *
sizeof (UINT32)))) {
74 if (AddressCells == 2) {
75 GicDInfo->PhysicalBaseAddress = fdt64_to_cpu (*(UINT64 *)Data);
77 GicDInfo->PhysicalBaseAddress = fdt32_to_cpu (*(UINT32 *)Data);
123 if (FdtParserHandle ==
NULL) {
125 return EFI_INVALID_PARAMETER;
128 Fdt = FdtParserHandle->Fdt;
132 return EFI_INVALID_PARAMETER;
137 if (EFI_ERROR (Status)) {
142 ZeroMem (&GicDInfo,
sizeof (GicDInfo));
146 switch (GicVersion) {
158 return EFI_UNSUPPORTED;
STATIC EFI_STATUS EFIAPI GicDIntcNodeParser(IN CONST VOID *Fdt, IN INT32 GicIntcNode, IN CM_ARM_GICD_INFO *GicDInfo)
EFI_STATUS EFIAPI ArmGicDInfoParser(IN CONST FDT_HW_INFO_PARSER_HANDLE FdtParserHandle, IN INT32 FdtBranch)
EFI_STATUS EFIAPI GetGicVersion(IN CONST VOID *Fdt, IN INT32 IntcNode, OUT UINT32 *GicVersion)
@ EArmObjGicDInfo
3 - GIC Distributor 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 ASSERT_EFI_ERROR(StatusParameter)