summaryrefslogtreecommitdiff
path: root/Core/EM/OFBD/MEUD/MEAU/AutoUpdate.h
blob: 00a571855f2ddbe59f6295497ba1d30593e3125f (plain)
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
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (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/AutoUpdate.h 1     8/30/11 8:17a Klzhan $
//
// $Revision: 1 $
//
// $Date: 8/30/11 8:17a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/OFBD Intel ME Update/AutoUpdate.h $
// 
// 1     8/30/11 8:17a Klzhan
// 
//
//**********************************************************************
//<AMI_FHDR_START>
//
// Name:    AutoUpdate.h
//
// Description: Header file for component
//
//<AMI_FHDR_END>
//**********************************************************************
#ifndef __AUTOUPDATE__H__
#define __AUTOUPDATE__H__
#ifdef __cplusplus
extern "C"
{
#endif

#include <Token.h>

// {80E1202E-2697-4264-9CC9-80762C3E5863}
#define MEAU_VAR_GUID { 0xC87690DC, 0x9005, 0x47EA, 0xAC, 0x34, 0x12, 0xF, 0xD8, 0x36, 0x33, 0x7D}


#define MEUD_FILE_GUID \
{ 0xfeaaa7a6, 0xcb95, 0x4670, 0xb4, 0x99, 0x87, 0x7f, 0xa6, 0xca, 0x6b, 0xae }

#define ME_VERSION_VALUE(a) \
(UINT32)((a.CoreMajor << 16) + (a.CoreMinor))

#define ME_VERSION_VALUE1(a) \
(UINT32)((a.CoreBuild << 16) + (a.CorePatch))

#define FLASH_BASE_ADDRESS(a) (UINTN)(0xFFFFFFFF - GetFlashCapacity() + 1 + (UINTN)a)


#pragma pack(1)
typedef struct
{
    UINT8 UpdateGBE;
    UINT8 UpdateME;
    UINT8 UpdateMEDS;
    UINT8 ForceME;
} MEAUTOUpdate;

#pragma pack()

#define MEAUTOUPD_MAIN 1
#define MEAUTOUPD_FLASH 2

#define FLASH_PROGRESS_KEY 100
#define FLASH_START_KEY 101

#include <Setup.h>
    /****** DO NOT WRITE BELOW THIS LINE *******/
#ifdef __cplusplus
}
#endif
#endif
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************