summaryrefslogtreecommitdiff
path: root/Core/EM/Nvme/Nvme.sd
blob: 327bf9697fb2387414aa515338d7b8b0ebda1a9c (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2015, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************
// 
//*************************************************************************
// $Header: /Alaska/SOURCE/Modules/NVMe/Nvme.sd 2     5/19/15 5:03a Ksudarsanan $
//
// $Date: 5/19/15 5:03a $
//
// $Log: /Alaska/SOURCE/Modules/NVMe/Nvme.sd $
// 
// 2     5/19/15 5:03a Ksudarsanan
// [TAG]  		EIP218818 
// [Category]  	Improvement
// [Description]  	Aptio 4.x: When NVMe device is not connect then in BIOS
// Setup should display "No Nvme device found"
// [Files]  		Nvme.sd, Nvme.uni, NvmeSetup.c
// 
// 1     6/20/14 6:27a Anandakrishnanl
// [TAG]  		EIP172958
// [Category]  	New Feature
// [Description]  	Nvme Driver Intial Checkin
// [Files]  		Nvme.cif
// Nvme.sdl
// Nvme.mak
// Nvme.sd
// Nvme.uni
// Nvme.chm
// NvmeSetup.c
// NvmeBus.c
// NvmeController.c
// NvmeComponentName.c
// NvmeIncludes.h
// NvmeBus.h
// NvmeController.h
//
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/NVMe/Nvme.sd $
// 
// 2     5/19/15 5:03a Ksudarsanan
// [TAG]  		EIP218818 
// [Category]  	Improvement
// [Description]  	Aptio 4.x: When NVMe device is not connect then in BIOS
// Setup should display "No Nvme device found"
// [Files]  		Nvme.sd, Nvme.uni, NvmeSetup.c
// 
// 1     6/20/14 6:27a Anandakrishnanl
// [TAG]  		EIP172958
// [Category]  	New Feature
// [Description]  	Nvme Driver Intial Checkin
// [Files]  		Nvme.cif
// Nvme.sdl
// Nvme.mak
// Nvme.sd
// Nvme.uni
// Nvme.chm
// NvmeSetup.c
// NvmeBus.c
// NvmeController.c
// NvmeComponentName.c
// NvmeIncludes.h
// NvmeBus.h
// NvmeController.h
// 
//*************************************************************************
//**********************************************************************
//<AMI_FHDR_START>
//
// Name:        Nvme.sd
//
// Description:	Nvme Driver Setup Page
//
//<AMI_FHDR_END>
//**********************************************************************

#ifdef FORM_SET_TYPEDEF
#include "Token.h"
#endif 

#ifdef SETUP_DATA_DEFINITION
// These definitions will be converted by the build process
// to a definitions of SETUP_DATA fields.
    UINT8   ShowNVMeDrive[4];
    UINT8   DeviceCount;
#endif


#if defined(VFRCOMPILE) && !defined(CONTROLS_ARE_DEFINED)
    #define CONTROL_DEFINITION
#endif

#ifdef CONTROL_DEFINITION
    #define NVMe_INFO_DISPLAY(HELP_STRING, CONTROLLER_STRING, DEVICE_STRING,INDEX)\
        suppressif ideqval SETUP_DATA.ShowNVMeDrive[INDEX] == 0; \
        text \
        help   = HELP_STRING, \
        text   = CONTROLLER_STRING, \
        text   = DEVICE_STRING, \
        flags  = 0, \
        key    = 0;\
    endif;
#endif 

//Select Top level menu itmem (forset) for you pages
#ifdef ADVANCED_FORM_SET 

    #ifdef FORM_SET_GOTO
        // Define forms
    
        // Define goto commands for the forms defined in this file
        goto   NVME_CONFIG_FORM_ID,
        prompt = STRING_TOKEN (STR_NVME_CONFIG_FORM),
        help   = STRING_TOKEN (STR_NVME_CONFIG_FORM_HELP);
    
    #endif

    #ifdef FORM_SET_FORM

        #ifndef NVME_FORM_NVME_CONFIG
            #define NVME_FORM_NVME_CONFIG

            form formid = AUTO_ID(NVME_CONFIG_FORM_ID),
            title     = STRING_TOKEN (STR_NVME_CONFIG_FORM);
        
                SUBTITLE(STRING_TOKEN(STR_NVME_SUBTITLE_STRING))
                SEPARATOR

                NVMe_INFO_DISPLAY( STRING_TOKEN(STR_NVME_HELP_STRING), STRING_TOKEN(STR_NVME0_CONTROLLER), STRING_TOKEN(STR_NVME0_NAME),0) 
                NVMe_INFO_DISPLAY( STRING_TOKEN(STR_NVME_HELP_STRING), STRING_TOKEN(STR_NVME1_CONTROLLER), STRING_TOKEN(STR_NVME1_NAME),1) 
                NVMe_INFO_DISPLAY( STRING_TOKEN(STR_NVME_HELP_STRING), STRING_TOKEN(STR_NVME2_CONTROLLER), STRING_TOKEN(STR_NVME2_NAME),2) 
                NVMe_INFO_DISPLAY( STRING_TOKEN(STR_NVME_HELP_STRING), STRING_TOKEN(STR_NVME3_CONTROLLER), STRING_TOKEN(STR_NVME3_NAME),3) 
          
                suppressif NOT ideqval SETUP_DATA.DeviceCount == 0;
                    SUBTITLE(STRING_TOKEN(STR_NO_NVME_DEVICE))
                endif;

            endform; // End of NVME_CONFIG_FORM_ID

        #endif // End of NVME_FORM_NVME_CONFIG
          
    #endif // End of FORM_SET_FORM

#endif // End of ADVANCED_FORM_SET


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