75 lines
3.2 KiB
C
75 lines
3.2 KiB
C
//**********************************************************************
|
|
//**********************************************************************
|
|
//** **
|
|
//** (C)Copyright 1985-2015, American Megatrends, Inc. **
|
|
//** **
|
|
//** All Rights Reserved. **
|
|
//** **
|
|
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
|
|
//** **
|
|
//** Phone: (770)-246-8600 **
|
|
//** **
|
|
//**********************************************************************
|
|
//**********************************************************************
|
|
/** @file NCT5538DSetup.c
|
|
Setup related Routines.
|
|
**/
|
|
|
|
//----------------------------------------------------------------------
|
|
// Include Files
|
|
//----------------------------------------------------------------------
|
|
#include <AmiDxeLib.h>
|
|
#include <Setup.h>
|
|
#include <AutoId.h>
|
|
#include "NCT5538DSetup.h"
|
|
//#include "SetupStringList.h"
|
|
|
|
/*
|
|
* Put None Standard Setup Functions Here.
|
|
*/
|
|
|
|
/**
|
|
This function provide SIO setup screen display string.
|
|
|
|
@param Class A handle that was previously registered in the HII Database.
|
|
@param HiiHandle Indicates the setup class.
|
|
**/
|
|
|
|
VOID OemInitNCT5538DSetupStrings(
|
|
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);
|
|
}
|
|
}
|
|
*/
|
|
}
|
|
|
|
//**********************************************************************
|
|
//**********************************************************************
|
|
//** **
|
|
//** (C)Copyright 1985-2015, American Megatrends, Inc. **
|
|
//** **
|
|
//** All Rights Reserved. **
|
|
//** **
|
|
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
|
|
//** **
|
|
//** Phone: (770)-246-8600 **
|
|
//** **
|
|
//**********************************************************************
|
|
//**********************************************************************
|
|
|
|
|