You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
9af34bca9a
By design, BootloaderCommonPkg should not refer to BootloaderCorePkg. Hence removed those references in the .inf files in Common pkg. Moving SmbiosInitLib to Core pkg as it is a core feature. Signed-off-by: Sai Talamudupula <sai.kiran.talamudupula@intel.com>
70 lines
1.4 KiB
C
70 lines
1.4 KiB
C
/** @file
|
|
|
|
Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef __SMBIOS_INIT_LIB_H__
|
|
#define __SMBIOS_INIT_LIB_H__
|
|
|
|
#include <IndustryStandard/SmBios.h>
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct {
|
|
UINT8 Type;
|
|
UINT8 Idx;
|
|
CHAR8 *String;
|
|
} SMBIOS_TYPE_STRINGS;
|
|
|
|
#pragma pack()
|
|
|
|
/**
|
|
Return the pointer to the Smbios table spcified by 'Type'
|
|
|
|
@param[in] Type Smbios type requested
|
|
|
|
@retval Pointer to the starting of the requested Smbios type
|
|
NULL, otherwise
|
|
|
|
**/
|
|
VOID *
|
|
EFIAPI
|
|
FindSmbiosType (
|
|
IN UINT8 Type
|
|
);
|
|
|
|
/**
|
|
Append an Smbios Type to an existing set of types
|
|
Different from AddSmbiosType, which gets called during initial Smbios setup
|
|
|
|
@param[in] TypeData pointer to the Type Data including strings
|
|
@param[in] TypeLength Size of type data including strings and end terminator (0000)
|
|
|
|
@retval EFI_DEVICE_ERROR, if Smbios Entry is NULL
|
|
Overflow status for adding this type or Type 127, otherwise
|
|
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
AppendSmbiosType (
|
|
IN VOID *TypeData,
|
|
IN UINT16 TypeLength
|
|
);
|
|
|
|
/**
|
|
This function is called to initialize the SMBIOS tables.
|
|
|
|
@retval EFI_DEVICE_ERROR, if Smbios Entry is NULL
|
|
Status after finalizing the Smbios init
|
|
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
SmbiosInit (
|
|
VOID
|
|
);
|
|
|
|
|
|
#endif |