55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
/** @file
|
|
Kernel Configuration Helper Library
|
|
|
|
;******************************************************************************
|
|
;* Copyright (c) 2012 - 2013, 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 _KERNEL_SETUP_CONFIG_LIB_H_
|
|
#define _KERNEL_SETUP_CONFIG_LIB_H_
|
|
|
|
#include <Uefi.h>
|
|
#include <KernelSetupConfig.h>
|
|
#include <H2OBoardId.h>
|
|
|
|
#define KERNEL_CONFIGURATION_SIZE sizeof(KERNEL_CONFIGURATION)
|
|
|
|
/**
|
|
Retrieve kernel setup configuration data
|
|
|
|
@param[out] KernelConfig Pointer to the structure of KERNEL_CONFIGURATION,
|
|
this pointer must be allocated with sizeof(KERNEL_CONFIGURATION)
|
|
before being called
|
|
|
|
@retval EFI_SUCCESS The kernel configuration is successfully retrieved
|
|
@retval EFI_INVALID_PARAMETER NULL pointer for input KernelConfig paramater
|
|
@return others Failed to retrieve kernel configuration
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
GetKernelConfiguration (
|
|
OUT KERNEL_CONFIGURATION *KernelConfig
|
|
);
|
|
|
|
/**
|
|
Retrieve the size of Setup variable
|
|
|
|
@return Size of the setup variable data
|
|
**/
|
|
UINTN
|
|
EFIAPI
|
|
GetSetupVariableSize (
|
|
VOID
|
|
);
|
|
|
|
|
|
#endif
|
|
|