1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2009, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/OFBD Intel ME Update/MEUD_MSG.c 3 10/20/09 3:44a Klzhan $
//
// $Revision: 3 $
//
// $Date: 10/20/09 3:44a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/OFBD Intel ME Update/MEUD_MSG.c $
//
// 3 10/20/09 3:44a Klzhan
// Improvement : Replace TSE2.0 callback by formset callback.
//
// 2 10/13/09 3:35a Klzhan
// 1. Support TSE2.0 Exit page callback for ME update(SECOVR_MEI_MSG
// mode).
// 2. Updated for Aptio Source Enhancement.
//
//
//**********************************************************************
//<AMI_FHDR_START>
//
// Name: MEUD_MSG.c
//
// Description:
//
//<AMI_FHDR_END>
//**********************************************************************
#include "Efi.h"
#include "token.h"
#include <AmiLib.h>
#include <AmiDxeLib.h>
#include "..\OFBD.h"
#include "MEUD.h"
#include <Protocol\SimpleTextOut.h>
extern EFI_BOOT_SERVICES *gBS;
extern EFI_SYSTEM_TABLE *gST;
extern EFI_RUNTIME_SERVICES *gRT;
//<AMI_PHDR_START>
//----------------------------------------------------------------------------
// Procedure: ShowMEUDErrors
//
// Description: Show Message on Screen If Ignition FW runs on Factory Default
//
// Input:
// VOID
//
// Output: BOOLEAN. Should return TRUE if the screen was used to
// ask password; FALSE if the screen was not used to ask
// password.
//
//----------------------------------------------------------------------------
//<AMI_PHDR_END>
BOOLEAN ShowMEUDErrors(VOID)
{
EFI_GUID gMEUDErrorGuid = MEUD_ERROR_GUID;
UINTN DataSize;
UINT8 Data;
EFI_STATUS Status;
DataSize = sizeof(UINT8);
Status = gRT->GetVariable( L"ShowMEUDFailMSG", &gMEUDErrorGuid,
NULL,
&DataSize, &Data);
if(EFI_ERROR(Status))
return FALSE;
gST->ConOut->OutputString(gST->ConOut,
L"\n\rMe Ignition FW Data Paritition Usage :" );
if(Data & 0x4)
gST->ConOut->OutputString(gST->ConOut, \
L"[Runtime Image]\n\r" );
else
gST->ConOut->OutputString(gST->ConOut, \
L"[Factory Default]\n\r" );
gST->ConOut->OutputString(gST->ConOut,
L"Me Ignition FW Code Paritition Usage :" );
if(Data & 0x8)
gST->ConOut->OutputString(gST->ConOut, \
L"[Runtime Image]\n\r" );
else
gST->ConOut->OutputString(gST->ConOut, \
L"[Factory Default]\n\r" );
return FALSE;
}
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2009, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
|