EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions | Variables

EmbeddedPkg/Ebl/Hob.c File Reference

#include "Ebl.h"

Go to the source code of this file.

Functions

EFI_STATUS EblHobCmd (IN UINTN Argc, IN CHAR8 **Argv)
VOID EblInitializeHobCmd (VOID)

Variables

GLOBAL_REMOVE_IF_UNREFERENCED
char * 
mHobResourceType []
GLOBAL_REMOVE_IF_UNREFERENCED
const EBL_COMMAND_TABLE 
mCmdHobTemplate []

Detailed Description

Hob command for EBL (Embedded Boot Loader)

Copyright (c) 2007, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Module Name: Hob.c

Search/Replace Dir with the name of your new command

Boot Mode: ========== BOOT_WITH_FULL_CONFIGURATION 0x00 BOOT_WITH_MINIMAL_CONFIGURATION 0x01 BOOT_ASSUMING_NO_CONFIGURATION_CHANGES 0x02 BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS 0x03 BOOT_WITH_DEFAULT_SETTINGS 0x04 BOOT_ON_S4_RESUME 0x05 BOOT_ON_S5_RESUME 0x06 BOOT_ON_S2_RESUME 0x10 BOOT_ON_S3_RESUME 0x11 BOOT_ON_FLASH_UPDATE 0x12 BOOT_IN_RECOVERY_MODE 0x20 BOOT_IN_RECOVERY_MODE_MASK 0x40 BOOT_SPECIAL_MASK 0x80

Mem Alloc HOB Type: =================== typedef enum { EfiReservedMemoryType = 0x00 EfiLoaderCode = 0x01 EfiLoaderData = 0x02 EfiBootServicesCode = 0x03 EfiBootServicesData = 0x04 EfiRuntimeServicesCode = 0x05 EfiRuntimeServicesData = 0x06 EfiConventionalMemory = 0x07 EfiUnusableMemory = 0x08 EfiACPIReclaimMemory = 0x09 EfiACPIMemoryNVS = 0x0a EfiMemoryMappedIO = 0x0b EfiMemoryMappedIOPortSpace = 0x0c EfiPalCode = 0x0d EfiMaxMemoryType = 0x0e } EFI_MEMORY_TYPE;

Resource Hob Tye: ================= EFI_RESOURCE_SYSTEM_MEMORY 0 EFI_RESOURCE_MEMORY_MAPPED_IO 1 EFI_RESOURCE_IO 2 EFI_RESOURCE_FIRMWARE_DEVICE 3 EFI_RESOURCE_MEMORY_MAPPED_IO_PORT 4 EFI_RESOURCE_MEMORY_RESERVED 5 EFI_RESOURCE_IO_RESERVED 6 EFI_RESOURCE_MAX_MEMORY_TYPE 7

Resource Hob Attribute (last thing printed): ============================================ EFI_RESOURCE_ATTRIBUTE_PRESENT 0x00000001 EFI_RESOURCE_ATTRIBUTE_INITIALIZED 0x00000002 EFI_RESOURCE_ATTRIBUTE_TESTED 0x00000004 EFI_RESOURCE_ATTRIBUTE_SINGLE_BIT_ECC 0x00000008 EFI_RESOURCE_ATTRIBUTE_MULTIPLE_BIT_ECC 0x00000010 EFI_RESOURCE_ATTRIBUTE_ECC_RESERVED_1 0x00000020 EFI_RESOURCE_ATTRIBUTE_ECC_RESERVED_2 0x00000040 EFI_RESOURCE_ATTRIBUTE_READ_PROTECTED 0x00000080 EFI_RESOURCE_ATTRIBUTE_WRITE_PROTECTED 0x00000100 EFI_RESOURCE_ATTRIBUTE_EXECUTION_PROTECTED 0x00000200 EFI_RESOURCE_ATTRIBUTE_UNCACHEABLE 0x00000400 EFI_RESOURCE_ATTRIBUTE_WRITE_COMBINEABLE 0x00000800 EFI_RESOURCE_ATTRIBUTE_WRITE_THROUGH_CACHEABLE 0x00001000 EFI_RESOURCE_ATTRIBUTE_WRITE_BACK_CACHEABLE 0x00002000 EFI_RESOURCE_ATTRIBUTE_16_BIT_IO 0x00004000 EFI_RESOURCE_ATTRIBUTE_32_BIT_IO 0x00008000 EFI_RESOURCE_ATTRIBUTE_64_BIT_IO 0x00010000 EFI_RESOURCE_ATTRIBUTE_UNCACHED_EXPORTED 0x00020000

Definition in file Hob.c.


Function Documentation

EFI_STATUS EblHobCmd ( IN UINTN  Argc,
IN CHAR8 **  Argv 
)

Dump out the HOBs in the system. HOBs are defined in the PI specification and they are used to hand off information from PEI to DXE.

Argv[0] - "hob"

Parameters:
ArgcNumber of command arguments in Argv
ArgvArray of strings that represent the parsed command line. Argv[0] is the command name
Returns:
EFI_SUCCESS

Definition at line 119 of file Hob.c.

VOID EblInitializeHobCmd ( VOID  )

Initialize the commands in this in this file

Definition at line 224 of file Hob.c.


Variable Documentation

GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mCmdHobTemplate[]
Initial value:
{
  {
    "hob",
    "; dump HOBs",
    NULL,
    EblHobCmd
  }
}

Definition at line 209 of file Hob.c.

GLOBAL_REMOVE_IF_UNREFERENCED char* mHobResourceType[]
Initial value:
 {
  "Memory     ",
  "MMIO       ",
  "IO         ",
  "Firmware   ",
  "MMIO Port  ",
  "Reserved   ",
  "IO Reserved",
  "Illegal    "
}

Definition at line 93 of file Hob.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines