summaryrefslogtreecommitdiff
path: root/Core/EM/CmosManager/CmosBoard.sdl
blob: 5ea4464ee01dc0c4687e3880f29e87c3893e8d4e (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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
#**********************************************************************
#**********************************************************************
#**                                                                  **
#**        (C)Copyright 1985-2009, American Megatrends, Inc.         **
#**                                                                  **
#**                       All Rights Reserved.                       **
#**                                                                  **
#**         5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093        **
#**                                                                  **
#**                       Phone: (770)-246-8600                      **
#**                                                                  **
#**********************************************************************
#**********************************************************************
#
#**********************************************************************
# $Header: /Alaska/SOURCE/Modules/CMOS Manager/CMOS Board/CmosBoard.sdl 14    6/15/10 2:22p Michaela $
#
# $Revision: 14 $
#
# $Date: 6/15/10 2:22p $
#**********************************************************************
# Revision History
# ----------------
# $Log: /Alaska/SOURCE/Modules/CMOS Manager/CMOS Board/CmosBoard.sdl $
# 
# 14    6/15/10 2:22p Michaela
# 
# 13    3/05/10 4:53p Michaela
# 
# 12    12/04/09 7:30p Michaela
# 
# 11    12/03/09 6:10p Michaela
# Added additional options to control bad checksum handling
# 
# 10    11/10/09 9:12p Michaela
# 
# 9     7/29/09 9:54a Michaela
# updates Aptio Enhancement EIP 22205
# (no code changes)
# 
# 8     6/02/09 3:25p Michaela
# For label: 4.6.3_CMOSMGR_11
# 
# 7     2/23/09 5:29p Michaela
# --changed MAX_MANAGED_CMOS_ADDRESS to default of 128
# --added CMOS_USES_STANDARD_RANGE_ACCESS to specify
#   whether or not to use CMOS Manager's access function for the
#   0-0x7f range.
# --Added notes on SB porting that must be done to acces CMOS
#   registers above 0x7f
# 
#**********************************************************************
#<AMI_FHDR_START>
#-----------------------------------------------------------------------
#
# Name:         CmosBoard.sdl
#
# Description:  This AMI SDL file defines porting constants used in
#               the CMOS Board subcomponent.
#
#-----------------------------------------------------------------------
#<AMI_FHDR_END>
#
#============================================================================
# Southbridge porting notes
#============================================================================
#
# These tokens are included as an example of tokens to add to the
# Southbridge module for implementing access to CMOS banks above
# 0x7f.
#
#TOKEN
#    Name  = "CMOS_BANK1_INDEX"
#    Value  = "0x72"
#    Help  = "Index port to access the second CMOS bank. \(Registers in range: 0x80-0xff)"
#    TokenType = Integer
#    TargetEQU = Yes
#    TargetH = Yes
#End
#
#TOKEN
#    Name  = "CMOS_BANK1_DATA"
#    Value  = "0x73"
#    Help  = "Data port to access the second CMOS bank. \(Registers in range: 0x80-0xff)"
#    TokenType = Integer
#    TargetEQU = Yes
#    TargetH = Yes
#End
#
#TOKEN
#    Name  = "CMOS_BANK1_INDEX_IS_TRANSLATED"
#    Value  = "1"
#    Help  = "1 = Index port value requires translation from CMOS address.\0 = Index port value equals CMOS address."
#    TokenType = Boolean
#    TargetEQU = Yes
#    TargetH = Yes
#End
#ELINK
#    Name  = "{0, 0, 0x80, 0xff, ReadWriteSecondBankTranslated},"
#    Parent  = "CMOS_PORT_MAPPING"
#    Help  = "Second bank CMOS access range (Registers in range: 0x80-0xff), when index port value is not identical to CMOS address"
#    InvokeOrder = AfterParent
#    Token = "CMOS_BANK1_INDEX_IS_TRANSLATED" "=" "1"
#End
#
#ELINK
#    Name  = "{CMOS_BANK1_INDEX, CMOS_BANK1_DATA, 0x80, 0xff, NULL},"
#    Parent  = "CMOS_PORT_MAPPING"
#    Help  = "Second bank CMOS access range (Registers in range: 0x80-0xff), when index port value is identical to CMOS address"
#    InvokeOrder = AfterParent
#    Token = "CMOS_BANK1_INDEX_IS_TRANSLATED" "=" "0"
#End
#============================================================================


#<AMI_GHDR_START>
#----------------------------------------------------------------------------
#
#  Name:    All_Elinks_Tokens
#
#  Description:
#       The following files contain the SDL Tokens/Elinks  
#       used in the CMOS Manager module, which may be ported. 
#
#                   CmosBoard.sdl --    SDL Tokens/Elinks typically
#                                       used for project-specific porting
#
#                   CmosManager.sdl --  SDL Tokens/Elinks typically 
#                                       not modified
#
#----------------------------------------------------------------------------
#<AMI_GHDR_END>


#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    FULL_CMOS_MANAGER_DEBUG
#
# Description:
#
#      Default value is 0
#
#               1  = Turn on all available CMOS Manager debug messages,  
#                    resulting in larger build.
#               0  = Only basic debugging messages are displayed,
#                    dependent upon project-level debug settings.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    FIRST_MANAGED_CMOS_ADDRESS
#
# Description:
#
#       Default value is 0x40
#
#       This is the lower limit of the CMOS register range to be managed 
#       by CMOS Manager
#
#       The region starting at FIRST_MANAGED_CMOS_ADDRESS and ending at
#       MAX_MANAGED_CMOS_ADDRESS - 1 represents the managed region.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    MAX_MANAGED_CMOS_ADDRESS
#
# Description:
#
#       Default value is 128 (128 bytes with max address of 127)
#
#       This is the upper limit (last address + 1) of CMOS address locations 
#       that are managed by CMOS Manager.
#
#       (I.e., if 256 bytes of CMOS is available and is entirely managed
#       by CMOS Manager, then the value of this token would be 256.)
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_MGR_RECOVER_ONLY_CHECKUMMED
#
# Description:
#
#       Default value is 0 (all Managed Region locations are recovered)
#
#                   1  = Do not recover non-checksummed locations in the 
#                        Managed Region
#
#                   0  = Recover all locations in the Managed Region
#
#       This configures the recovery policy so that the Optimal Defaults
#       buffer is only used for checksummed locations upon bad checksum 
#       detection.
#
# Notes:  
#               1.  For the bad battery condition, the Optimal Defaults buffer
#                   will always be used.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_MGR_RECOVER_IN_PEI
#
# Description:
#
#       Default value is 1 (PEI recovery is enabled)
#
#       This configures the recovery policy so that the Optimal Defaults
#       buffer is written to CMOS in the PEI phase.
#
# Notes:  
#            	1.  This setting may require replacement of the 
#                   default function defined in the CMOS_IS_COLD_BOOT_MAPPING 
#                   eLink.
#
#               2.  The bad checksum bit in the legacy status CMOS register 
#                   will indicate bad checksum until the DXE phase, but 
#                   physical CMOS will be used in the PEI phase.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_SMM_SUPPORT
#
# Description:
#
#       Default value is 1 (SMM support is enabled)
#
#       This token specifies whether or not the CMOS Access interface is  
#       available in SMM.
#
#      			1 = Enable SMM CMOS Access
#      			0 = Disable SMM CMOS Access
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_USES_STANDARD_RANGE_ACCESS
#
# Description:
#
#       Default value is 1 (default function is enabled)
#
#       Specifies whether or not to use CMOS Manager's default access 
#       function for the 0-0x7f range.  If a platform provides a different 
#       access function for this region this token should be FALSE.
#
# Notes:
#               *   If this SDL Token is turned off, an alternate   
#                   function must be defined using the CMOS_PORT_MAPPING
#                   SDL eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_BANK0_INDEX
#
# Description:
#
#       Default value is 0x70
#
#       Index I/O port to access CMOS registers in range: 0x0-0x7f.
#      
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_BANK0_DATA
#
# Description:
#
#       Default value is 0x71
#
#       Data I/O port to access CMOS registers in range: 0x0-0x7f.
#      
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_MGR_SET_NMI_BIT
#
# Description:
#
#       Default value is 1 (NMI access is enabled for 0x0-0x7f)
#
#               1 = Set NMI bit for access to NMI region
#               0 = Do not set NMI bit for access to NMI region
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_NMI_BIT_VALUE
#
# Description:
#
#       Default value is 0x80 (CMOS_MGR_SET_NMI_BIT = TRUE by default)
#
#       There are two possible values for this token as determined by the 
#       value of CMOS_MGR_SET_NMI_BIT:
#
#                   0x80 = if CMOS_MGR_SET_NMI_BIT == TRUE
#                   0x00 = if CMOS_MGR_SET_NMI_BIT == FALSE
#
# Notes:
#
#       This value will be OR'ed with the index value for CMOS access to 
#       bank 0 locations. The value will be negated and AND'ed with the 
#       index to clear the NMI bit if the original index value is to be 
#       restored.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_SETUP_SUPPORT
#
# Description:
#
#       Default value is 0 (CMOS_SETUP_SUPPORT = FALSE by default)
#
#       This token specifies whether or not a setup page is enabled
#       to provide CMOS Manager related information/options.
#
# Notes:
#
#       This feature is only supported for TSE labels only supported for 
#       TSE versions 4.6.2_TSE_2_01_1204 and later.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_MESSAGES_SUPPORT
#
# Description:
#
#       Default value is 0 (CMOS_SETUP_SUPPORT = FALSE by default)
#
#       This token specifies whether or not messages are displayed
#       to provide CMOS Manager related power-on information.
#
# Notes:
#
#       This feature is only supported for TSE labels only supported for 
#       TSE versions 4.6.2_TSE_2_01_1204 and later.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_USES_STANDARD_BATTERY_TEST
#
# Description:
#
#       Default value is 1 (default function is used)
#
#       This SDL Token specifies whether or not to use the default function
#       to determine whether or not the CMOS battery is good.
#
# Notes:
#       If this SDL Token is turned off, an alternate function must be
#       defined and linked using the CMOS_BATTERY_TEST_MAPPING SDL eLink.
#
#       The default function eLink is CmosMgrBatteryIsGood.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_USES_STANDARD_IS_FIRST_BOOT
#
# Description:
#
#       Default value is 1 (default function is used)
#
#       This SDL Token specifies whether or not to use the default function
#       to determine whether or not the platform is executing a first boot.
#
# Notes:
#       If this SDL Token is turned off, an alternate function must be
#       defined using the CMOS_IS_FIRST_BOOT_MAPPING SDL eLink.
#
#       The default function eLink is CmosMgrIsFirstBoot.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_USES_STANDARD_IS_CMOS_USABLE
#
# Description:
#
#       Default value is 1 (default function is used)
#
#       This SDL Token specifies whether or not to use the default function
#       to determine whether or not the CMOS hardware is usable.  
#       If a platform provides a different function, this token should be 
#       disabled.
#
# Notes:
#       If this SDL Token is turned off, an alternate function must be
#       defined using the CMOS_IS_USABLE_MAPPING SDL eLink.
#
#       The default function eLink is CmosMgrIsBsp.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>


#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_USES_STANDARD_IS_BSP
#
# Description:
#
#       Default value is 1 (default function is used)
#
#       This SDL Token specifies whether or not to use the default function
#       to determine whether or not the boot strap processor is executing.  
#       If a platform provides a different function for determining the BSP, 
#       this token should be disabled.
#
# Notes:
#       If this SDL Token is turned off, an alternate function must be
#       defined using the CMOS_IS_BSP_MAPPING SDL eLink.
#
#       The default function eLink is CmosMgrIsBsp.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_USES_STANDARD_IS_COLD_BOOT
#
# Description:
#
#       Default value is 1 (default function is used)
#
#       This SDL Token specifies whether or not to use the default function
#       to determine whether or not the platform is executing a cold boot.
#
# Notes:
#
#               1.  The default function eLink is CmosMgrIsColdBoot.
#
#               2.  In the case of a bad checksum, the Optimal Defaults buffer
#                   is written to physical CMOS in the PEI phase if:
#
#                 	a. CMOS_MGR_RECOVER_IN_PEI is enabled and
#                 	b. CmosMgrIsColdBoot returns TRUE
#
#               3.  Some platforms may execute a warm-reset in the PEI phase,
#                   with a dependency on some CMOS value, causing 
#                   unpredicatable results ...possibly an infinite reboot 
#                   sequence.
#
#               4.  A cold boot is defined as a power-on boot, as opposed 
#                   to a warm boot where a reset is initiated through 
#                   software.
#
#               5.  If this SDL Token is turned off, an alternate function  
#                   must be defined using the CMOS_IS_COLD_BOOT_MAPPING 
#                   SDL eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_PORT_MAPPING
#
# Description:
#
#       Default value (see Notes below)
#
#       This Elink is used to associate CMOS register address ranges with 
#       an 8-bit index/data port pair or an access function.
#
#       Additional ranges can be specified by adding additional eLinks.
#
#       The default eLink for the 0x0-0x7f range can be replaced by first
#       disabling the CMOS_USES_STANDARD_RANGE_ACCESS SDL token and then 
#       defining a new eLink.
#
# Notes:
#      Format:
#
#                   {IndexPort, DataPort, LowIndex, HighIndex, FunctionName},
#
#      Default:
#
#                   ELINK
#                       Name  = "{0, 0, 0, 127, ReadWriteStandardRange},"
#                       Parent  = "CMOS_PORT_MAPPING"
#                       Help  = "Standard NMI-capable access range"
#                       Token = "CMOS_USES_STANDARD_RANGE_ACCESS" "=" "1"
#                       InvokeOrder = AfterParent
#                   End
#
#      	        * FunctionName takes precedence over IndexPort/DataPort, if
#                 both are specified.
#
#               * The comma is required.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_BATTERY_TEST_MAPPING
#
# Description:
#
#       The default function is CmosMgrBatteryIsGood.
#
#       This SDL eLink provides a mechanism to replace the default function 
#       for determining whether or not the battery is bad.
#
# Notes:
#       To override the default function, set the 
#       CMOS_USES_STANDARD_BATTERY_TEST SDL Token to false and define a
#       new eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_IS_USABLE_MAPPING
#
# Description:
#
#       The default function is CmosIsUsable.
#
#       This SDL eLink provides a mechanism to replace the default function 
#       for determining whether or not the CMOS hardware is usable. (Note,
#       the CMOS may be usable even if the battery is bad.)
#
# Notes:
#       To override the default function, set the 
#       CMOS_USES_STANDARD_IS_CMOS_USABLE SDL Token to FALSE (0) and define a
#       new eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>


#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_IS_FIRST_BOOT_MAPPING
#
# Description:
#
#       The default function is CmosMgrIsFirstBoot.
#
#       This SDL eLink provides a mechanism to replace the default function 
#       for determining whether or not the current execution is the first 
#       boot after programming the boot firmware device (flash part, ROM 
#       emulator,  ...).
#
# Notes:
#       To override the default function, set the 
#       CMOS_USES_STANDARD_IS_FIRST_BOOT SDL Token to FALSE (0) and define a
#       new eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_IS_BSP_MAPPING
#
# Description:
#
#       The default function is CmosMgrIsBsp.
#
#       This SDL eLink provides a mechanism to replace the default function 
#       for determining whether or not the currently executing CPU core is 
#       the boot strap processor (BSP).
#
# Notes:
#       To override the default function, set the 
#       CMOS_USES_STANDARD_IS_BSP SDL Token to FALSE (0) and define a
#       new eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

#<AMI_SHDR_START>
#----------------------------------------------------------------------------
#
# Name:    CMOS_IS_COLD_BOOT_MAPPING
#
# Description:
#
#       The default function is CmosMgrIsColdBoot.
#
#       This SDL eLink provides a mechanism to replace the default function 
#       for determining whether or not the platform is executing a cold
#       boot.
#
# Notes:
#       To override the default function, set the 
#       CMOS_USES_STANDARD_IS_COLD_BOOT SDL Token to FALSE (0) and define a
#       new eLink.
#
#----------------------------------------------------------------------------
#<AMI_SHDR_END>

TOKEN
    Name  = "FULL_CMOS_MANAGER_DEBUG"
    Value  = "0"
    Help  = "1-Turns on all available CMOS Manager module-level debug messages, resulting in larger build\0-Only basic debugging messages are supported, dependent upon project-level debug settings."
    TokenType = Boolean
    TargetH = Yes
End

TOKEN
    Name  = "FIRST_MANAGED_CMOS_ADDRESS"
    Value  = "0x40"
    Help  = "This is the lower limit of the CMOS register range to be managed by CMOS Manager. \\Note: the region starting at FIRST_MANAGED_CMOS_ADDRESS and ending at MAX_MANAGED_CMOS_ADDRESS - 1 represents the managed region."
    TokenType = Integer
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "MAX_MANAGED_CMOS_ADDRESS"
    Value  = "128"
    Help  = "Last CMOS address + 1 used to specify the maximum address that is managed by CMOS Manager. \\Note: the region starting at FIRST_MANAGED_CMOS_ADDRESS and ending at MAX_MANAGED_CMOS_ADDRESS - 1 represents the managed region."
    TokenType = Integer
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_MGR_RECOVER_ONLY_CHECKUMMED"
    Value  = "0"
    Help  = "Upon incoherency detection in the Managed Region, only use the Optimal Defaults buffer for checksummed locations."
    TokenType = Boolean
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_MGR_RECOVER_IN_PEI"
    Value  = "1"
    Help  = "Upon incoherency detection due to bad checksum in the Managed Region, invoke the recovery policy in the PEI phase."
    TokenType = Boolean
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_SMM_SUPPORT"
    Value  = "1"
    Help  = "Specifies whether or not to the CMOS Access interface is available in SMM."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
    TargetMAK = Yes
End

TOKEN
    Name  = "CMOS_USES_STANDARD_RANGE_ACCESS"
    Value  = "1"
    Help  = "Specifies whether or not to use CMOS Manager's default access function for the 0-0x7f range.  If a platform provides a different access function for this region this token should be disabled."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_BANK0_INDEX"
    Value  = "0x70"
    Help  = "Index I/O port to access CMOS registers in range: 0x0-0x7f."
    TokenType = Integer
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_BANK0_DATA"
    Value  = "0x71"
    Help  = "Data I/O port to access CMOS registers in range: 0x0-0x7f."
    TokenType = Integer
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_MGR_SET_NMI_BIT"
    Value  = "1"
    Help  = "1-Set NMI bit for access to NMI region\0-Do not set NMI bit for access to NMI region"
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_NMI_BIT_VALUE"
    Value  = "0x80"
    Help  = "Value to be ORed with the index port value for BANK0 access, when NMI access is enabled."
    TokenType = Integer
    TargetEQU = Yes
    TargetH = Yes
    Token = "CMOS_MGR_SET_NMI_BIT" "=" "1"
End

TOKEN
    Name  = "CMOS_NMI_BIT_VALUE"
    Value  = "0x0"
    Help  = "Value to be ORed with the index port value for BANK0 access, when NMI access is disabled."
    TokenType = Integer
    TargetEQU = Yes
    TargetH = Yes
    Token = "CMOS_MGR_SET_NMI_BIT" "=" "0"
End

TOKEN
    Name  = "CMOS_SETUP_SUPPORT"
    Value  = "0"
    Help  = "This SDL Token specifies whether or not the CMOS module setup page is supported.\(This feature is only supported for TSE versions 4.6.2_TSE_2_01_1204 and later)"
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
    TargetMAK = Yes
End

TOKEN
    Name  = "CMOS_MESSAGES_SUPPORT"
    Value  = "0"
    Help  = "This SDL Token specifies whether or not CMOS messages are supported.\(This feature is only supported for TSE versions 4.6.2_TSE_2_01_1204 and later)"
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
    TargetMAK = Yes
End

TOKEN
    Name  = "CMOS_USES_STANDARD_BATTERY_TEST"
    Value  = "1"
    Help  = "Specifies whether or not to use CMOS Manager's default battery test function.  If a platform provides a different battery test function this token should be disabled."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_USES_STANDARD_IS_FIRST_BOOT"
    Value  = "1"
    Help  = "Specifies whether or not to use CMOS Manager's default first boot test function.  If a platform provides a different first boot test function this token should be disabled."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_USES_STANDARD_IS_BSP"
    Value  = "1"
    Help  = "This SDL Token specifies whether or not to use the default function to determine whether or not the boot strap processor is executing.   If a platform provides a different function for determining the BSP, this token should be disabled."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_USES_STANDARD_IS_CMOS_USABLE"
    Value  = "1"
    Help  = "This SDL Token specifies whether or not to use the default function to determine whether or not the CMOS is usable.   If a platform provides a different function for determining the usability of CMOS, this token should be disabled."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

TOKEN
    Name  = "CMOS_USES_STANDARD_IS_COLD_BOOT"
    Value  = "1"
    Help  = "This SDL Token specifies whether or not to use the default function to determine whether or not the platform is executing a cold boot."
    TokenType = Boolean
    TargetEQU = Yes
    TargetH = Yes
End

ELINK
    Name  = "{0, 0, 0, 127, ReadWriteStandardRange},"
    Parent  = "CMOS_PORT_MAPPING"
    Help  = "Standard NMI-capable access range"
    Token = "CMOS_USES_STANDARD_RANGE_ACCESS" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "CmosMgrBatteryIsGood"
    Parent  = "CMOS_BATTERY_TEST_MAPPING"
    Help  = "Link the standard function to determine whether or not the CMOS battery is good."
    Token = "CMOS_USES_STANDARD_BATTERY_TEST" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "CmosMgrIsFirstBoot"
    Parent  = "CMOS_IS_FIRST_BOOT_MAPPING"
    Help  = "Link the standard function to determine whether or not the platform is executing a first boot."
    Token = "CMOS_USES_STANDARD_IS_FIRST_BOOT" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "CmosIsUsable"
    Parent  = "CMOS_IS_USABLE_MAPPING"
    Help  = "Link the standard function to determine whether or not the is usable.  (The CMOS may be usable if the battery is bad.)"
    Token = "CMOS_USES_STANDARD_IS_CMOS_USABLE" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "CmosMgrIsBsp"
    Parent  = "CMOS_IS_BSP_MAPPING"
    Help  = "Link the standard function to determine whether or not the BSP is currently executing."
    Token = "CMOS_USES_STANDARD_IS_BSP" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
    Name  = "CmosMgrIsColdBoot"
    Parent  = "CMOS_IS_COLD_BOOT_MAPPING"
    Help  = "Link the standard function to determine whether or not the platform is executing a cold boot."
    Token = "CMOS_USES_STANDARD_IS_COLD_BOOT" "=" "1"
    InvokeOrder = AfterParent
End

ELINK
	Name  = "$(CMOS_MANAGER_DIR)\CmosSetup.sd"
	Parent  = "SETUP_DEFINITIONS"
	InvokeOrder = AfterParent
    Token = "CMOS_SETUP_SUPPORT" "=" "1"
End

ELINK
	Name  = "$(BUILD_DIR)\CmosSetup.sdb"
	Parent  = "SETUP_SDBS"
	InvokeOrder = AfterParent
    Token = "CMOS_SETUP_SUPPORT" "=" "1"
End

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