summaryrefslogtreecommitdiff
path: root/Board/EM/IdeAcoustic/Acoustic.sd
blob: 962015b3e77ca86be5865dc7f59e0f06b390e161 (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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (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/HddAcoustic/Acoustic.sd 3     9/22/11 4:17a Rameshr $
//
// $Revision: 3 $
//
// $Date: 9/22/11 4:17a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/HddAcoustic/Acoustic.sd $
// 
// 3     9/22/11 4:17a Rameshr
// [TAG]  		EIP68563
// [Category]  	Improvement
// [Description]  	Manufacturing Mode not set for the Acoustic setup
// options.
// [Files]  		Acoustic.sd
// 
// 2     1/11/11 12:02a Rameshr
// Coding Error Resolved.
// 
// 1     1/05/11 12:22a Rameshr
// Initial check-in for Hdd Acoustic Management Support.
//**********************************************************************
//<AMI_FHDR_START>
//
// Name:	Acoustic.SD
//
// Description:	Acoustic driver Setup data definitions 
//
//<AMI_FHDR_END>
//**********************************************************************

#ifdef SETUP_DATA_DEFINITION
/***********************************************************/
/* Put NVRAM data definitions here.
/* For example: UINT8 Data1;
/* These definitions will be converted by the build process
/* to a definitions of SETUP_DATA fields.
/***********************************************************/
#define DEV 0

#if (EFI_SPECIFICATION_VERSION > 0x00020000)
  #define DEV00 0
  #define DEV01 1
  #define DEV02 2
  #define DEV03 3
  #define DEV04 4
  #define DEV05 5
  #define DEV06 6
  #define DEV07 7
  #define DEV08 8
  #define DEV09 9
  #define DEV10 10
  #define DEV11 11
  #define DEV12 12
  #define DEV13 13
#else
  #define DEV00 1
  #define DEV01 2
  #define DEV02 3
  #define DEV03 4
  #define DEV04 5
  #define DEV05 6
  #define DEV06 7
  #define DEV07 8
  #define DEV08 9
  #define DEV09 10
  #define DEV10 11
  #define DEV11 12
  #define DEV12 13
  #define DEV13 14
#endif
  UINT8   AcousticPwrMgmt;
  UINT8   AcousticLevel;
//
// Porting required
//
// Add more elements if there are more than 6 SATA ports
  UINT8   AcousticSupported[ACOUSTIC_DEVICE_COUNT];
  UINT8   AcousticLevelIndv[ACOUSTIC_DEVICE_COUNT];
  UINT8   AcDevicePresent[ACOUSTIC_DEVICE_COUNT];
#endif

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

#define ACOUSTIC_ONEOF_ACOUSTICPWRMGMT\
    oneof varid  = SETUP_DATA.AcousticPwrMgmt,\
        prompt   = STRING_TOKEN(STR_AUTO_ACOUSTIC),\
        help     = STRING_TOKEN(STR_AUTO_ACOUSTIC_HELP),\
        option text = STRING_TOKEN(STR_ENABLED_STRING), value = 1, flags = 0, key = 0;\
        option text = STRING_TOKEN(STR_DISABLED_STRING), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
    endoneof;

#if !INDIVIDUAL_ACOUSTIC_SUPPORT

#define ACOUSTIC_ONEOF_ACOUSTICLEVEL\
    oneof varid  = SETUP_DATA.AcousticLevel,\
        prompt   = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE),\
        help     = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_HELP),\
        option text = STRING_TOKEN(STR_BYPASS_STRING), value = 0xFF, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
        option text = STRING_TOKEN(STR_QUIET_STRING), value = 0x80, flags = 0, key = 0;\
        option text = STRING_TOKEN(STR_MAXIMUM_PERFORMANCE_STRING), value = 0xFE, flags = 0, key = 0;\
    endoneof;

#else
    #define ACOUSTIC_ONEOF_ACOUSTICLEVEL
#endif // END #if !INDIVIDUAL_ACOUSTIC_SUPPORT

#if INDIVIDUAL_ACOUSTIC_SUPPORT

#define ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV)\
    oneof varid  = SETUP_DATA.AcousticLevelIndv[DEV],\
        prompt   = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_INDV),\
        help     = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_HELP),\
        option text = STRING_TOKEN(STR_BYPASS_STRING), value = 0xFF, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
        option text = STRING_TOKEN(STR_QUIET_STRING), value = 0x80, flags = 0, key = 0;\
        option text = STRING_TOKEN(STR_MAXIMUM_PERFORMANCE_STRING), value = 0xFE, flags = 0, key = 0;\
    endoneof;

#define ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV)\
    oneof varid  = SETUP_DATA.AcousticLevelIndv[DEV],\
        prompt   = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_INDV),\
        help     = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_HELP),\
        option text = STRING_TOKEN(STR_NOT_SUPPORTED), value = 0xFF, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
    endoneof;

#define ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV)\
    oneof varid  = SETUP_DATA.AcousticLevelIndv[DEV],\
        prompt   = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_INDV),\
        help     = STRING_TOKEN(STR_AUTO_ACOUSTIC_MODE_HELP),\
        option text = STRING_TOKEN(STR_NOT_AVAILABLE), value = 0xFF, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
    endoneof;

#else
    #define ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV)
    #define ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV)
    #define ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV)
#endif // END #if INDIVIDUAL_ACOUSTIC_SUPPORT
#endif // END #ifdef CONTROL_DEFINITION

#ifdef CONTROLS_WITH_DEFAULTS
    ACOUSTIC_ONEOF_ACOUSTICPWRMGMT
    ACOUSTIC_ONEOF_ACOUSTICLEVEL
    ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV)
    ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV)
    ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV)
#endif // END #ifdef CONTROLS_WITH_DEFAULTS

#ifdef ADVANCED_FORM_SET

#ifndef SUPPRESS_GRAYOUT_ENDIF
#define SUPPRESS_GRAYOUT_ENDIF endif;
#endif

#ifdef FORM_SET_TYPEDEF
//
//If you need any additional type definitions add them here
//
#endif

#ifdef FORM_SET_VARSTORE
//
//If you need custom varstore's define them here
//
#endif

 #ifdef FORM_SET_ITEM
//
// Define controls to be added to the main page of the formset
//

  #endif

  #ifdef FORM_SET_GOTO
        //
        // Define goto commands for the forms defined in this file
        //
      goto SATA_ACOUSTIC_DEVICE_OPTIONS_FORM_ID, 
      prompt  = STRING_TOKEN(STR_ACOUSTIC_SUBTITLE),
      help    = STRING_TOKEN(STR_ACOUSTIC_SUBTITLE_HELP);
  #endif

  #ifdef FORM_SET_FORM
        //
        // Define forms
        //

  #ifndef ACOUSTIC_FORM_MAIN
  #define ACOUSTIC_FORM_MAIN
        form formid = AUTO_ID(SATA_ACOUSTIC_DEVICE_OPTIONS_FORM_ID),
        title = STRING_TOKEN(STR_SATA_ACOUSTIC_OPTIONS_FORM_TITLE);

    SEPARATOR
    SUBTITLE(STRING_TOKEN(STR_ACOUSTIC_SUBTITLE))
    SEPARATOR

        ACOUSTIC_ONEOF_ACOUSTICPWRMGMT

  #if !INDIVIDUAL_ACOUSTIC_SUPPORT
    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVEL
    endif;
  #endif

  #if INDIVIDUAL_ACOUSTIC_SUPPORT
    SEPARATOR

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV00] == 0x0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACSATA_PORT0),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACHDD_0),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    endif;

    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0 OR ideqval SETUP_DATA.AcousticSupported[DEV00] == 0x0;
    ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV00)
    endif;

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV00] == 0x0 OR 
               ideqval SETUP_DATA.AcousticSupported[DEV00] == 0x1 OR
               ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV00)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV00] == 0x0 OR ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV00)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV01] == 0x0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACSATA_PORT1),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACHDD_1),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    endif;

    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0 OR ideqval SETUP_DATA.AcousticSupported[DEV01] == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV01)
    endif;

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV01] == 0x0 OR 
               ideqval SETUP_DATA.AcousticSupported[DEV01] == 0x1 OR
               ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV01)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV01] == 0x0 OR ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV01)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV02] == 0x0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACSATA_PORT2),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACHDD_2),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    endif;

    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0 OR ideqval SETUP_DATA.AcousticSupported[DEV02] == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV02)
    endif;

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV02] == 0x0 OR 
               ideqval SETUP_DATA.AcousticSupported[DEV02] == 0x1 OR
               ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV02)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV02] == 0x0 OR ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV02)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV03] == 0x0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACSATA_PORT3),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACHDD_3),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    endif;

    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0 OR ideqval SETUP_DATA.AcousticSupported[DEV03] == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV03)
    endif;

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV03] == 0x0 OR 
               ideqval SETUP_DATA.AcousticSupported[DEV03] == 0x1 OR
               ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV03)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV03] == 0x0 OR ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV03)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV04] == 0x0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACSATA_PORT4),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACHDD_4),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    endif;

    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0 OR ideqval SETUP_DATA.AcousticSupported[DEV04] == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV04)
    endif;

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV04] == 0x0 OR 
               ideqval SETUP_DATA.AcousticSupported[DEV04] == 0x1 OR
               ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV04)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV04] == 0x0 OR ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV04)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV05] == 0x0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACSATA_PORT5),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    text
        help   = STRING_TOKEN(STR_EMPTY),
        text   = STRING_TOKEN(STR_ACHDD_5),
        text   = STRING_TOKEN(STR_EMPTY),
        flags  = 0,
        key    = 0;
    endif;

    suppressif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0 OR ideqval SETUP_DATA.AcousticSupported[DEV05] == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_PRESENT(DEV05)
    endif;

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV05] == 0x0 OR 
               ideqval SETUP_DATA.AcousticSupported[DEV05] == 0x1 OR
               ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTSUPPORTED(DEV05)
    SUPPRESS_GRAYOUT_ENDIF

    suppressif ideqval SETUP_DATA.AcDevicePresent[DEV05] == 0x0 OR ideqval SETUP_DATA.AcousticPwrMgmt == 0x1;
    grayoutif ideqval SETUP_DATA.AcousticPwrMgmt == 0x0;
        ACOUSTIC_ONEOF_ACOUSTICLEVELINDV_NOTAVAILABLE(DEV05)
    SUPPRESS_GRAYOUT_ENDIF

  #endif

  endform;//end form SATA_DEVICE_OPTIONS_FORM_ID
#endif // END #if ACOUSTIC_FORM_MAIN

  #endif // FORM_SET_ITEM

#endif  // ADVANCED_FORM_SET

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