alder_lake_bios/Insyde/InsydeModulePkg/Include/DmiStringInformation.h

59 lines
2.1 KiB
C

/** @file
Definition for Oem Services Common.
;******************************************************************************
;* Copyright (c) 2013 - 2015, Insyde Software Corp. All Rights Reserved.
;*
;* You may not reproduce, distribute, publish, display, perform, modify, adapt,
;* transmit, broadcast, present, recite, release, license or otherwise exploit
;* any part of this publication in any form, by any means, without the prior
;* written permission of Insyde Software Corporation.
;*
;******************************************************************************
*/
#ifndef _OEM_SERVICES_COMMON_H_
#define _OEM_SERVICES_COMMON_H_
#define DMI_UPDATE_STRING_SIGNATURE SIGNATURE_32 ('$', 'D', 'M', 'I')
#pragma pack (1)
typedef struct {
UINT16 Handle;
UINTN GPNVBaseAddress;
UINTN GPNVSize;
} OEM_GPNV_MAP;
typedef struct _DMI_STRING_STRUCTURE {
UINT8 Type;
UINT8 Offset;
UINT8 Valid;
UINT16 Length;
UINT8 String[1]; // Variable length field
} DMI_STRING_STRUCTURE;
typedef struct {
UINT8 Type; // The SMBIOS structure type
UINT8 FixedOffset; // The offset of the string reference
// within the structure's fixed data.
} DMI_UPDATABLE_STRING;
typedef struct {
UINTN UpdateStringNum;
DMI_UPDATABLE_STRING *UpdateString;
} PNP_UPDATE_STRING;
typedef struct {
EFI_GUID VendorGuid;
CHAR16 *VariableName;
} PRESERVED_VARIABLE_TABLE;
typedef struct {
EFI_GUID VendorGuid;
BOOLEAN DeleteVariable;
CHAR16 *VariableName;
} PRESERVED_VARIABLE_TABLE_2;
#pragma pack ()
#endif