Home | History | Annotate | Download | only in Hob

Lines Matching defs:Hob

14   hob.c

40 Builds a HOB for a loaded PE32 module
53 EFI_SUCCESS - Hob is successfully built.
54 Others - Errors occur while creating new Hob
59 EFI_HOB_MEMORY_ALLOCATION_MODULE *Hob;
65 (VOID **) &Hob
71 Hob->MemoryAllocationHeader.Name = gEfiHobMemeryAllocModuleGuid;
72 Hob->MemoryAllocationHeader.MemoryBaseAddress = MemoryAllocationModule;
73 Hob->MemoryAllocationHeader.MemoryLength = ModuleLength;
74 Hob->MemoryAllocationHeader.MemoryType = EfiBootServicesCode;
76 Hob->MemoryAllocationHeader.Reserved,
77 sizeof (Hob->MemoryAllocationHeader.Reserved),
81 Hob->ModuleName = *ModuleName;
82 Hob->EntryPoint = EntryPoint;
100 Builds a HOB that describes a chunck of system memory
106 ResourceType - The type of resource described by this HOB
108 ResourceAttribute - The resource attributes of the memory described by this HOB
110 PhysicalStart - The 64 bit physical address of memory described by this HOB
112 NumberOfBytes - The length of the memoty described by this HOB in bytes
116 EFI_SUCCESS - Hob is successfully built.
117 Others - Errors occur while creating new Hob
122 EFI_HOB_RESOURCE_DESCRIPTOR *Hob;
128 (VOID **) &Hob
134 Hob->ResourceType = ResourceType;
135 Hob->ResourceAttribute = ResourceAttribute;
136 Hob->PhysicalStart = PhysicalStart;
137 Hob->ResourceLength = NumberOfBytes;
148 OUT VOID **Hob
154 Builds a custom HOB that is tagged with a GUID for identification
159 Guid - The GUID of the custome HOB type
160 DataLength - The size of the data payload for the GUIDed HOB
161 Hob - Pointer to pointer to the created Hob
165 EFI_SUCCESS - Hob is successfully built.
166 Others - Errors occur while creating new Hob
176 Hob
182 ((EFI_HOB_GUID_TYPE *)(*Hob))->Name = *Guid;
199 Builds a custom HOB that is tagged with a GUID for identification
205 Guid - The GUID of the custome HOB type
207 Data - The data to be copied into the GUIDed HOB data field.
213 EFI_SUCCESS - Hob is successfully built.
214 Others - Errors occur while creating new Hob
220 EFI_HOB_GUID_TYPE *Hob;
226 (VOID **) &Hob
233 Hob++;
234 (*PeiServices)->CopyMem (Hob, Data, DataLength);
250 Builds a Firmware Volume HOB
262 EFI_SUCCESS - Hob is successfully built.
263 Others - Errors occur while creating new Hob
268 EFI_HOB_FIRMWARE_VOLUME *Hob;
279 (VOID **) &Hob
285 Hob->BaseAddress = BaseAddress;
286 Hob->Length = Length;
302 Builds a HOB for the CPU
316 EFI_SUCCESS - Hob is successfully built.
317 Others - Errors occur while creating new Hob
322 EFI_HOB_CPU *Hob;
328 (VOID **) &Hob
334 Hob->SizeOfMemorySpace = SizeOfMemorySpace;
335 Hob->SizeOfIoSpace = SizeOfIoSpace;
337 Hob->Reserved,
338 sizeof (Hob->Reserved),
357 Builds a HOB for the Stack
369 EFI_SUCCESS - Hob is successfully built.
370 Others - Errors occur while creating new Hob
375 EFI_HOB_MEMORY_ALLOCATION_STACK *Hob;
381 (VOID **) &Hob
387 Hob->AllocDescriptor.Name = gEfiHobMemeryAllocStackGuid;
388 Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;
389 Hob->AllocDescriptor.MemoryLength = Length;
390 Hob->AllocDescriptor.MemoryType = EfiBootServicesData;
392 Hob->AllocDescriptor.Reserved,
393 sizeof (Hob->AllocDescriptor.Reserved),
413 Builds a HOB for the bsp store
427 EFI_SUCCESS - Hob is successfully built.
428 Others - Errors occur while creating new Hob
433 EFI_HOB_MEMORY_ALLOCATION_BSP_STORE *Hob;
439 (VOID **) &Hob
445 Hob->AllocDescriptor.Name = gEfiHobMemeryAllocBspStoreGuid;
446 Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;
447 Hob->AllocDescriptor.MemoryLength = Length;
448 Hob->AllocDescriptor.MemoryType = MemoryType;
450 Hob->AllocDescriptor.Reserved,
451 sizeof (Hob->AllocDescriptor.Reserved),
471 Builds a HOB for the memory allocation.
481 Name - Name for Hob
487 EFI_SUCCESS - Hob is successfully built.
488 Others - Errors occur while creating new Hob
493 EFI_HOB_MEMORY_ALLOCATION *Hob;
499 (VOID **) &Hob
506 Hob->AllocDescriptor.Name = *Name;
508 (*PeiServices)->SetMem(&(Hob->AllocDescriptor.Name), sizeof (EFI_GUID), 0);
511 Hob->AllocDescriptor.MemoryBaseAddress = BaseAddress;
512 Hob->AllocDescriptor.MemoryLength = Length;
513 Hob->AllocDescriptor.MemoryType = MemoryType;
515 Hob->AllocDescriptor.Reserved,
516 sizeof (Hob->AllocDescriptor.Reserved),