summaryrefslogtreecommitdiff
path: root/Board/EM/Csm/csmsetup.c
blob: 42d8ed58f587d4f8cef47568db784ca37298ae15 (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
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2010, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**           5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093      **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//****************************************************************************
// $Header: /Alaska/SOURCE/Modules/CSM/Generic/csmsetup.c 4     1/12/10 11:52a Olegi $
//
// $Revision: 4 $
//
// $Date: 1/12/10 11:52a $
//
//****************************************************************************

//**********************************************************************
//<AMI_FHDR_START>
//
// Name:        CSMSETUP.C
//
// Description: CSM Setup related functions
//
//<AMI_FHDR_END>
//**********************************************************************

#include <AmiLib.h>
#include <AmiDxeLib.h>
#include <Setup.h>
#include <SetupStrTokens.h>

//<AMI_PHDR_START>
//----------------------------------------------------------------------------
// Procedure:	InitCsmStrings
//
// Description:	This function is eLink'ed with the chain executed right before
//				the Setup.
//
//----------------------------------------------------------------------------
//<AMI_PHDR_END>

VOID InitCsmStrings(EFI_HII_HANDLE HiiHandle, UINT16 Class)
{
    UINT8 MjCsmVer = *(UINT8*)0xF0018;
    UINT8 MnCsmVer = *(UINT8*)0xF0019;

	//example: InitString(HiiHandle, STRING_TOKEN(STR_USB_MODULE_VERSION_VALUE), L"%d", 25);
	// Module version

	InitString(HiiHandle, STRING_TOKEN(STR_CSM_MODULE_VERSION_VALUE),
                L"%02x.%02x", MjCsmVer, MnCsmVer);

}

//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2010, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**           5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093      **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************