github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/cmds/exp/cbmem/const.go (about)

     1  // Copyright 2016-2017 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  var (
     8  	TimeStampNames = map[int]string{
     9  		0:                    "1st timestamp",
    10  		TS_START_ROMSTAGE:    "start of rom stage",
    11  		TS_BEFORE_INITRAM:    "before ram initialization",
    12  		TS_AFTER_INITRAM:     "after ram initialization",
    13  		TS_END_ROMSTAGE:      "end of romstage",
    14  		TS_START_VBOOT:       "start of verified boot",
    15  		TS_END_VBOOT:         "end of verified boot",
    16  		TS_START_COPYRAM:     "starting to load ramstage",
    17  		TS_END_COPYRAM:       "finished loading ramstage",
    18  		TS_START_RAMSTAGE:    "start of ramstage",
    19  		TS_START_BOOTBLOCK:   "start of bootblock",
    20  		TS_END_BOOTBLOCK:     "end of bootblock",
    21  		TS_START_COPYROM:     "starting to load romstage",
    22  		TS_END_COPYROM:       "finished loading romstage",
    23  		TS_START_ULZMA:       "starting LZMA decompress (ignore for x86)",
    24  		TS_END_ULZMA:         "finished LZMA decompress (ignore for x86)",
    25  		TS_DEVICE_ENUMERATE:  "device enumeration",
    26  		TS_DEVICE_CONFIGURE:  "device configuration",
    27  		TS_DEVICE_ENABLE:     "device enable",
    28  		TS_DEVICE_INITIALIZE: "device initialization",
    29  		TS_DEVICE_DONE:       "device setup done",
    30  		TS_CBMEM_POST:        "cbmem post",
    31  		TS_WRITE_TABLES:      "write tables",
    32  		TS_LOAD_PAYLOAD:      "load payload",
    33  		TS_ACPI_WAKE_JUMP:    "ACPI wake jump",
    34  		TS_SELFBOOT_JUMP:     "selfboot jump",
    35  
    36  		TS_START_COPYVER:     "starting to load verstage",
    37  		TS_END_COPYVER:       "finished loading verstage",
    38  		TS_START_TPMINIT:     "starting to initialize TPM",
    39  		TS_END_TPMINIT:       "finished TPM initialization",
    40  		TS_START_VERIFY_SLOT: "starting to verify keyblock/preamble (RSA)",
    41  		TS_END_VERIFY_SLOT:   "finished verifying keyblock/preamble (RSA)",
    42  		TS_START_HASH_BODY:   "starting to verify body (load+SHA2+RSA) ",
    43  		TS_DONE_LOADING:      "finished loading body (ignore for x86)",
    44  		TS_DONE_HASHING:      "finished calculating body hash (SHA2)",
    45  		TS_END_HASH_BODY:     "finished verifying body signature (RSA)",
    46  
    47  		TS_DC_START:                     "depthcharge start",
    48  		TS_RO_PARAMS_INIT:               "RO parameter init",
    49  		TS_RO_VB_INIT:                   "RO vboot init",
    50  		TS_RO_VB_SELECT_FIRMWARE:        "RO vboot select firmware",
    51  		TS_RO_VB_SELECT_AND_LOAD_KERNEL: "RO vboot select&load kernel",
    52  		TS_RW_VB_SELECT_AND_LOAD_KERNEL: "RW vboot select&load kernel",
    53  		TS_VB_SELECT_AND_LOAD_KERNEL:    "vboot select&load kernel",
    54  		TS_VB_EC_VBOOT_DONE:             "finished EC verification",
    55  		TS_CROSSYSTEM_DATA:              "crossystem data",
    56  		TS_START_KERNEL:                 "start kernel",
    57  
    58  		// FSP related timestamps
    59  		TS_FSP_MEMORY_INIT_START:   "calling FspMemoryInit",
    60  		TS_FSP_MEMORY_INIT_END:     "returning from FspMemoryInit",
    61  		TS_FSP_TEMP_RAM_EXIT_START: "calling FspTempRamExit",
    62  		TS_FSP_TEMP_RAM_EXIT_END:   "returning from FspTempRamExit",
    63  		TS_FSP_SILICON_INIT_START:  "calling FspSiliconInit",
    64  		TS_FSP_SILICON_INIT_END:    "returning from FspSiliconInit",
    65  		TS_FSP_BEFORE_ENUMERATE:    "calling FspNotify(AfterPciEnumeration)",
    66  		TS_FSP_AFTER_ENUMERATE:     "returning from FspNotify(AfterPciEnumeration)",
    67  		TS_FSP_BEFORE_FINALIZE:     "calling FspNotify(ReadyToBoot)",
    68  		TS_FSP_AFTER_FINALIZE:      "returning from FspNotify(ReadyToBoot)",
    69  	}
    70  
    71  	memTags = map[uint32]string{
    72  		LB_MEM_RAM:         "LB_MEM_RAM",
    73  		LB_MEM_RESERVED:    "LB_MEM_RESERVED",
    74  		LB_MEM_ACPI:        "LB_MEM_ACPI",
    75  		LB_MEM_NVS:         "LB_MEM_NVS",
    76  		LB_MEM_UNUSABLE:    "LB_MEM_UNUSABLE",
    77  		LB_MEM_VENDOR_RSVD: "LB_MEM_VENDOR_RSVD",
    78  		LB_MEM_TABLE:       "LB_MEM_TABLE",
    79  	}
    80  	serialNames = map[uint32]string{
    81  		LB_SERIAL_TYPE_IO_MAPPED:     "IO_MAPPED",
    82  		LB_SERIAL_TYPE_MEMORY_MAPPED: "MEMORY_MAPPED",
    83  	}
    84  	consoleNames = map[uint32]string{
    85  		LB_TAG_CONSOLE_SERIAL8250:    "SERIAL8250",
    86  		LB_TAG_CONSOLE_VGA:           "VGA",
    87  		LB_TAG_CONSOLE_BTEXT:         "BTEXT",
    88  		LB_TAG_CONSOLE_LOGBUF:        "LOGBUF",
    89  		LB_TAG_CONSOLE_SROM:          "SROM",
    90  		LB_TAG_CONSOLE_EHCI:          "EHCI",
    91  		LB_TAG_CONSOLE_SERIAL8250MEM: "SERIAL8250MEM",
    92  	}
    93  	tagNames = map[uint32]string{
    94  		LB_TAG_UNUSED:                "LB_TAG_UNUSED",
    95  		LB_TAG_MEMORY:                "LB_TAG_MEMORY",
    96  		LB_TAG_HWRPB:                 "LB_TAG_HWRPB",
    97  		LB_TAG_MAINBOARD:             "LB_TAG_MAINBOARD",
    98  		LB_TAG_VERSION:               "LB_TAG_VERSION",
    99  		LB_TAG_EXTRA_VERSION:         "LB_TAG_EXTRA_VERSION",
   100  		LB_TAG_BUILD:                 "LB_TAG_BUILD",
   101  		LB_TAG_COMPILE_TIME:          "LB_TAG_COMPILE_TIME",
   102  		LB_TAG_COMPILE_BY:            "LB_TAG_COMPILE_BY",
   103  		LB_TAG_COMPILE_HOST:          "LB_TAG_COMPILE_HOST",
   104  		LB_TAG_COMPILE_DOMAIN:        "LB_TAG_COMPILE_DOMAIN",
   105  		LB_TAG_COMPILER:              "LB_TAG_COMPILER",
   106  		LB_TAG_LINKER:                "LB_TAG_LINKER",
   107  		LB_TAG_ASSEMBLER:             "LB_TAG_ASSEMBLER",
   108  		LB_TAG_VERSION_TIMESTAMP:     "LB_TAG_VERSION_TIMESTAMP",
   109  		LB_TAG_SERIAL:                "LB_TAG_SERIAL",
   110  		LB_TAG_CONSOLE:               "LB_TAG_CONSOLE",
   111  		LB_TAG_FORWARD:               "LB_TAG_FORWARD",
   112  		LB_TAG_FRAMEBUFFER:           "LB_TAG_FRAMEBUFFER",
   113  		LB_TAG_GPIO:                  "LB_TAG_GPIO",
   114  		LB_TAG_VDAT:                  "LB_TAG_VDAT",
   115  		LB_TAG_VBNV:                  "LB_TAG_VBNV",
   116  		LB_TAB_VBOOT_HANDOFF:         "LB_TAB_VBOOT_HANDOFF",
   117  		LB_TAB_DMA:                   "LB_TAB_DMA",
   118  		LB_TAG_RAM_OOPS:              "LB_TAG_RAM_OOPS",
   119  		LB_TAG_MTC:                   "LB_TAG_MTC",
   120  		LB_TAG_TIMESTAMPS:            "LB_TAG_TIMESTAMPS",
   121  		LB_TAG_CBMEM_CONSOLE:         "LB_TAG_CBMEM_CONSOLE",
   122  		LB_TAG_MRC_CACHE:             "LB_TAG_MRC_CACHE",
   123  		LB_TAG_ACPI_GNVS:             "LB_TAG_ACPI_GNVS",
   124  		LB_TAG_WIFI_CALIBRATION:      "LB_TAG_WIFI_CALIBRATION",
   125  		LB_TAG_X86_ROM_MTRR:          "LB_TAG_X86_ROM_MTRR",
   126  		LB_TAG_BOARD_ID:              "LB_TAG_BOARD_ID",
   127  		LB_TAG_MAC_ADDRS:             "LB_TAG_MAC_ADDRS",
   128  		LB_TAG_RAM_CODE:              "LB_TAG_RAM_CODE",
   129  		LB_TAG_SPI_FLASH:             "LB_TAG_SPI_FLASH",
   130  		LB_TAG_BOOT_MEDIA_PARAMS:     "LB_TAG_BOOT_MEDIA_PARAMS",
   131  		LB_TAG_CBMEM_ENTRY:           "LB_TAG_CBMEM_ENTRY",
   132  		LB_TAG_SERIALNO:              "LB_TAG_SERIALNO",
   133  		LB_TAG_CMOS_OPTION_TABLE:     "LB_TAG_CMOS_OPTION_TABLE",
   134  		LB_TAG_OPTION:                "LB_TAG_OPTION",
   135  		LB_TAG_OPTION_ENUM:           "LB_TAG_OPTION_ENUM",
   136  		LB_TAG_OPTION_DEFAULTS:       "LB_TAG_OPTION_DEFAULTS",
   137  		LB_TAG_OPTION_CHECKSUM:       "LB_TAG_OPTION_CHECKSUM",
   138  		LB_TAG_PLATFORM_BLOB_VERSION: "LB_TAG_PLATFORM_BLOB_VERSION",
   139  	}
   140  	tsNames = map[uint32]string{
   141  		TS_DC_START:                     "TS_DC_START",
   142  		TS_RO_PARAMS_INIT:               "TS_RO_PARAMS_INIT",
   143  		TS_RO_VB_INIT:                   "TS_RO_VB_INIT",
   144  		TS_RO_VB_SELECT_FIRMWARE:        "TS_RO_VB_SELECT_FIRMWARE",
   145  		TS_RO_VB_SELECT_AND_LOAD_KERNEL: "TS_RO_VB_SELECT_AND_LOAD_KERNEL",
   146  		TS_RW_VB_SELECT_AND_LOAD_KERNEL: "TS_RW_VB_SELECT_AND_LOAD_KERNEL",
   147  		TS_VB_SELECT_AND_LOAD_KERNEL:    "TS_VB_SELECT_AND_LOAD_KERNEL",
   148  		TS_VB_EC_VBOOT_DONE:             "TS_VB_EC_VBOOT_DONE",
   149  		TS_CROSSYSTEM_DATA:              "TS_CROSSYSTEM_DATA",
   150  		TS_START_KERNEL:                 "TS_START_KERNEL",
   151  	}
   152  )