UefiPayloadPkg: Add definition for PayloadCommandLine HOB

Add definition for UNIVERSAL_PAYLOAD_COMMAND_LINE Hob.
This Hob is used to pass command Line to Payload.

Signed-off-by: Dun Tan <dun.tan@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
This commit is contained in:
duntan
2022-04-28 14:45:47 +08:00
committed by mergify[bot]
parent a64b944942
commit 826527c9db
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/** @file
Define the structure for the Payload command line Hob.
Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef PAYLOAD_COMMAND_LINE_H_
#define PAYLOAD_COMMAND_LINE_H_
#include <Uefi.h>
#include <UniversalPayload/UniversalPayload.h>
#pragma pack (1)
typedef struct {
UNIVERSAL_PAYLOAD_GENERIC_HEADER Header;
UINT32 Count;
CHAR8 CommandLine[0];
} UNIVERSAL_PAYLOAD_COMMAND_LINE;
#pragma pack()
#define UNIVERSAL_PAYLOAD_COMMAND_LINE_REVISION 1
extern GUID gEdkiiPayloadCommandLineGuid;
#endif