BayTrail/AaeonIoPkg/IT8728F/IT8728FSetup.c
2022-09-02 09:03:16 +08:00

96 lines
3.9 KiB
C

//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2013, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
//*************************************************************************
//<AMI_FHDR_START>
//
// Name: <IT8728FSetup.c>
//
// Description: Setup related Routines.
//
//<AMI_FHDR_END>
//*************************************************************************
//-------------------------------------------------------------------------
// Include Files
//-------------------------------------------------------------------------
#include <AmiDxeLib.h>
#include <Setup.h>
#include <AutoId.h>
#include "IT8728FSetup.h"
//#include "SetupStringList.h"
/*
* Put None Standard Setup Functions Here.
*/
//<AMI_PHDR_START>
//---------------------------------------------------------------------------
// Procedure: OemInitIT8728FSetupStrings
//
// Description:
// This function provide SIO Setup screen display string.
//
// Input:
// IN IN UINT16 Class
// IN EFI_HII_HANDLE *HiiHandle
//
// Output: VOID
//
// Modified: Nothing
//
// Referrals: None
//
// Note:
//-------------------------------------------------------------------------
// <AMI_PHDR_END>
VOID OemInitIT8728FSetupStrings(
IN EFI_HII_HANDLE HiiHandle,
IN UINT16 Class)
{
/* static EFI_GUID siopg=EFI_AMI_SIO_PROTOCOL_GUID;
SIO_DEV2 *dev;
UINTN i,hcnt;
EFI_HANDLE *hbuff;
EFI_STATUS Status=0;
if(Class == ADVANCED_FORM_SET_CLASS) {
Status=pBS->LocateHandleBuffer(ByProtocol,&siopg, NULL, &hcnt,&hbuff);
if (EFI_ERROR(Status)) hcnt = 0;
for (i=0; i<hcnt; i++) {
Status = pBS->HandleProtocol ( hbuff[i],&siopg,(VOID*)&dev);
ASSERT_EFI_ERROR(Status);
if(dev->DeviceInfo->HasSetup) SetSioStrings(dev, HiiHandle);
}
}
*/
}
/////////////////////////////////////////////////////////////////////////////
//Below function will update HII database's SIO strings, before enter setup
/////////////////////////////////////////////////////////////////////////////
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2013, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************