REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in PrmPkg. Cc: Andrew Fish <afish@apple.com> Cc: Kang Gao <kang.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Benjamin You <benjamin.you@intel.com> Cc: Liu Yun <yun.y.liu@intel.com> Cc: Ankit Sinha <ankit.sinha@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Liming Gao <gaoliming@byosoft.com.cn> Acked-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Ankit Sinha <ankit.sinha@intel.com>
51 lines
1.0 KiB
C
51 lines
1.0 KiB
C
/** @file
|
|
|
|
Definitions for the Platform Runtime Mechanism (PRM) data buffer structures.
|
|
|
|
Copyright (c) Microsoft Corporation
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef PRM_DATA_BUFFER_H_
|
|
#define PRM_DATA_BUFFER_H_
|
|
|
|
#include <Uefi.h>
|
|
|
|
#define PRM_DATA_BUFFER_HEADER_SIGNATURE SIGNATURE_32('P','R','M','D')
|
|
|
|
#pragma pack(push, 1)
|
|
|
|
///
|
|
/// A generic header that describes the PRM data buffer.
|
|
///
|
|
typedef struct {
|
|
///
|
|
/// PRM Data Buffer signature.
|
|
///
|
|
UINT32 Signature;
|
|
///
|
|
/// Length of the entire data buffer, including the size of the header.
|
|
///
|
|
UINT32 Length;
|
|
} PRM_DATA_BUFFER_HEADER;
|
|
|
|
///
|
|
/// A PRM data buffer is a generic header followed by variable length arbitrary data.
|
|
///
|
|
typedef struct {
|
|
///
|
|
/// The header is required at the beginning of every PRM data buffer.
|
|
///
|
|
PRM_DATA_BUFFER_HEADER Header;
|
|
|
|
///
|
|
/// The beginning of data immediately follows the header.
|
|
///
|
|
UINT8 Data[1];
|
|
} PRM_DATA_BUFFER;
|
|
|
|
#pragma pack(pop)
|
|
|
|
#endif
|