diff options
author | duntan <dun.tan@intel.com> | 2022-04-28 14:45:47 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-05-06 04:49:22 +0000 |
commit | 826527c9db11f34ca500033e131633f831da2ac2 (patch) | |
tree | 292de08d32e6b6cf52a701fd826ebd86b6a617ab /UefiPayloadPkg/Include | |
parent | a64b944942d828fe98e4843929662aad7f47bcca (diff) | |
download | edk2-826527c9db11f34ca500033e131633f831da2ac2.tar.gz edk2-826527c9db11f34ca500033e131633f831da2ac2.tar.bz2 edk2-826527c9db11f34ca500033e131633f831da2ac2.zip |
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>
Diffstat (limited to 'UefiPayloadPkg/Include')
-rw-r--r-- | UefiPayloadPkg/Include/Guid/PayloadCommandLine.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/UefiPayloadPkg/Include/Guid/PayloadCommandLine.h b/UefiPayloadPkg/Include/Guid/PayloadCommandLine.h new file mode 100644 index 0000000000..845a30efe1 --- /dev/null +++ b/UefiPayloadPkg/Include/Guid/PayloadCommandLine.h @@ -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
|