Lines Matching defs:Hob

2   Provide Hob Library functions for Pei phase.
80 EFI_PEI_HOB_POINTERS Hob;
84 Hob.Raw = (UINT8 *) HobStart;
88 while (!END_OF_HOB_LIST (Hob)) {
89 if (Hob.Header->HobType == Type) {
90 return Hob.Raw;
92 Hob.Raw = GET_NEXT_HOB (Hob);
241 VOID *Hob;
243 Status = PeiServicesCreateHob (Type, Length, &Hob);
245 Hob = NULL;
250 ASSERT (Hob != NULL);
251 return Hob;
279 EFI_HOB_MEMORY_ALLOCATION_MODULE *Hob;
284 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_MEMORY_ALLOCATION, (UINT16) sizeof (EFI_HOB_MEMORY_ALLOCATION_MODULE));
285 if (Hob == NULL) {
289 CopyGuid (&(Hob->MemoryAllocationHeader.Name), &gEfiHobMemoryAllocModuleGuid);
290 Hob->MemoryAllocationHeader.MemoryBaseAddress = MemoryAllocationModule;
291 Hob->MemoryAllocationHeader.MemoryLength = ModuleLength;
292 Hob->MemoryAllocationHeader.MemoryType = EfiBootServicesCode;
297 ZeroMem (Hob->MemoryAllocationHeader.Reserved, sizeof (Hob->MemoryAllocationHeader.Reserved));
299 CopyGuid (&Hob->ModuleName, ModuleName);
300 Hob->EntryPoint = EntryPoint;
327 EFI_HOB_RESOURCE_DESCRIPTOR *Hob;
329 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, (UINT16) sizeof (EFI_HOB_RESOURCE_DESCRIPTOR));
330 if (Hob == NULL) {
334 Hob->ResourceType = ResourceType;
335 Hob->ResourceAttribute = ResourceAttribute;
336 Hob->PhysicalStart = PhysicalStart;
337 Hob->ResourceLength = NumberOfBytes;
368 EFI_HOB_GUID_TYPE *Hob;
380 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_GUID_EXTENSION, (UINT16) (sizeof (EFI_HOB_GUID_TYPE) + DataLength));
381 if (Hob == NULL) {
382 return Hob;
384 CopyGuid (&Hob->Name, Guid);
385 return Hob + 1;
452 EFI_HOB_FIRMWARE_VOLUME *Hob;
454 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_FV, (UINT16) sizeof (EFI_HOB_FIRMWARE_VOLUME));
455 if (Hob == NULL) {
459 Hob->BaseAddress = BaseAddress;
460 Hob->Length = Length;
487 EFI_HOB_FIRMWARE_VOLUME2 *Hob;
489 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_FV2, (UINT16) sizeof (EFI_HOB_FIRMWARE_VOLUME2));
490 if (Hob == NULL) {
494 Hob->BaseAddress = BaseAddress;
495 Hob->Length = Length;
496 CopyGuid (&Hob->FvName, FvName);
497 CopyGuid (&Hob->FileName, FileName);
521 EFI_HOB_UEFI_CAPSULE *Hob;
523 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_UEFI_CAPSULE, (UINT16) sizeof (EFI_HOB_UEFI_CAPSULE));
524 if (Hob == NULL) {
528 Hob->BaseAddress = BaseAddress;
529 Hob->Length = Length;
552 EFI_HOB_CPU *Hob;
554 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_CPU, (UINT16) sizeof (EFI_HOB_CPU));
555 if (Hob == NULL) {
559 Hob->SizeOfMemorySpace = SizeOfMemorySpace;
560 Hob->SizeOfIoSpace = SizeOfIoSpace;
565 ZeroMem (Hob->Reserved, sizeof (Hob->Reserved));
588 EFI_HOB_MEMORY_ALLOCATION_STACK *Hob;
593 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_MEMORY_ALLOCATION, (UINT16) sizeof (EFI_HOB_MEMORY_ALLOCATION_STACK));
594 if (Hob == NULL) {
598 CopyGuid (&(Hob->AllocDescriptor.Name), &gEfiHobMemoryAllocStackGuid);
599 Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;
600 Hob->AllocDescriptor.MemoryLength = Length;
601 Hob->AllocDescriptor.MemoryType = EfiBootServicesData;
606 ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));
631 EFI_HOB_MEMORY_ALLOCATION_BSP_STORE *Hob;
636 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_MEMORY_ALLOCATION, (UINT16) sizeof (EFI_HOB_MEMORY_ALLOCATION_BSP_STORE));
637 if (Hob == NULL) {
641 CopyGuid (&(Hob->AllocDescriptor.Name), &gEfiHobMemoryAllocBspStoreGuid);
642 Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;
643 Hob->AllocDescriptor.MemoryLength = Length;
644 Hob->AllocDescriptor.MemoryType = MemoryType;
649 ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));
674 EFI_HOB_MEMORY_ALLOCATION *Hob;
679 Hob = InternalPeiCreateHob (EFI_HOB_TYPE_MEMORY_ALLOCATION, (UINT16) sizeof (EFI_HOB_MEMORY_ALLOCATION));
680 if (Hob == NULL) {
684 ZeroMem (&(Hob->AllocDescriptor.Name), sizeof (EFI_GUID));
685 Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;
686 Hob->AllocDescriptor.MemoryLength = Length;
687 Hob->AllocDescriptor.MemoryType = MemoryType;
691 ZeroMem (Hob->AllocDescriptor.Reserved, sizeof (Hob->AllocDescriptor.Reserved));