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
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
|
/* $NoKeywords:$ */
/**
* @file
*
* FCH Function Support Definition
*
*
*
* @xrefitem bom "File Content Label" "Release Content"
* @e project: AGESA
* @e sub-project: FCH
* @e \$Revision: 63425 $ @e \$Date: 2011-12-22 11:24:10 -0600 (Thu, 22 Dec 2011) $
*
*/
/*;********************************************************************************
;
; Copyright 2008 - 2012 ADVANCED MICRO DEVICES, INC. All Rights Reserved.
;
; AMD is granting you permission to use this software (the Materials)
; pursuant to the terms and conditions of your Software License Agreement
; with AMD. This header does *NOT* give you permission to use the Materials
; or any rights under AMD's intellectual property. Your use of any portion
; of these Materials shall constitute your acceptance of those terms and
; conditions. If you do not agree to the terms and conditions of the Software
; License Agreement, please do not use any portion of these Materials.
;
; CONFIDENTIALITY: The Materials and all other information, identified as
; confidential and provided to you by AMD shall be kept confidential in
; accordance with the terms and conditions of the Software License Agreement.
;
; LIMITATION OF LIABILITY: THE MATERIALS AND ANY OTHER RELATED INFORMATION
; PROVIDED TO YOU BY AMD ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED
; WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
; MERCHANTABILITY, NONINFRINGEMENT, TITLE, FITNESS FOR ANY PARTICULAR PURPOSE,
; OR WARRANTIES ARISING FROM CONDUCT, COURSE OF DEALING, OR USAGE OF TRADE.
; IN NO EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES WHATSOEVER
; (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS
; INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF AMD'S NEGLIGENCE,
; GROSS NEGLIGENCE, THE USE OF OR INABILITY TO USE THE MATERIALS OR ANY OTHER
; RELATED INFORMATION PROVIDED TO YOU BY AMD, EVEN IF AMD HAS BEEN ADVISED OF
; THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME JURISDICTIONS PROHIBIT THE
; EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES,
; THE ABOVE LIMITATION MAY NOT APPLY TO YOU.
;
; AMD does not assume any responsibility for any errors which may appear in
; the Materials or any other related information provided to you by AMD, or
; result from use of the Materials or any related information.
;
; You agree that you will not reverse engineer or decompile the Materials.
;
; NO SUPPORT OBLIGATION: AMD is not obligated to furnish, support, or make any
; further information, software, technical information, know-how, or show-how
; available to you. Additionally, AMD retains the right to modify the
; Materials at any time, without notice, and is not obligated to provide such
; modified Materials to you.
;
; U.S. GOVERNMENT RESTRICTED RIGHTS: The Materials are provided with
; "RESTRICTED RIGHTS." Use, duplication, or disclosure by the Government is
; subject to the restrictions as set forth in FAR 52.227-14 and
; DFAR252.227-7013, et seq., or its successor. Use of the Materials by the
; Government constitutes acknowledgement of AMD's proprietary rights in them.
;
; EXPORT ASSURANCE: You agree and certify that neither the Materials, nor any
; direct product thereof will be exported directly or indirectly, into any
; country prohibited by the United States Export Administration Act and the
; regulations thereunder, without the required authorization from the U.S.
; government nor will be used for any purpose prohibited by the same.
;*********************************************************************************/
#ifndef _FCH_COMMON_CFG_H_
#define _FCH_COMMON_CFG_H_
#pragma pack (push, 1)
//-----------------------------------------------------------------------------
// FCH DEFINITIONS AND MACROS
//-----------------------------------------------------------------------------
//
// FCH Component Data Structure Definitions
//
/// PCI_ADDRESS - PCI access structure
#define PCI_ADDRESS(bus, dev, func, reg) \
(UINT32) ( (((UINT32)bus) << 24) + (((UINT32)dev) << 19) + (((UINT32)func) << 16) + ((UINT32)reg) )
///
/// - Byte Register R/W structure
///
typedef struct _REG8_MASK {
UINT8 RegIndex; /// RegIndex - Reserved
UINT8 AndMask; /// AndMask - Reserved
UINT8 OrMask; /// OrMask - Reserved
} REG8_MASK;
///
/// PCIE Reset Block
///
typedef enum {
NbBlock, ///< Reset for NB PCIE
FchBlock ///< Reset for FCH GPP
} RESET_BLOCK;
///
/// PCIE Reset Operation
///
typedef enum {
DeassertReset, ///< DeassertRese - Deassert reset
AssertReset ///< AssertReset - Assert reset
} RESET_OP;
///
/// SD structure
///
typedef struct {
SD_MODE SdConfig; ///< SD Mode configuration
/// @li <b>00</b> - Disabled
/// @li <b>00</b> - AMDA, set 24,18,16, default
/// @li <b>01</b> - DMA clear 24, 16, set 18
/// @li <b>10</b> - PIO clear 24,18,16
///
UINT8 SdSpeed; ///< SD Speed
/// @li <b>0</b> - Low speed clear 17
/// @li <b>1</b> - High speed, set 17, default
///
UINT8 SdBitWidth; ///< SD Bit Width
/// @li <b>0</b> - 32BIT clear 23
/// @li <b>1</b> - 64BIT, set 23,default
///
UINT32 SdSsid; ///< SD Subsystem ID
SD_CLOCK_CONTROL SdClockControl; ///< SD Clock Control
BOOLEAN SdClcokMultiplier; ///< SD Clock Multiplier enable/disable
UINT8 SdReTuningMode; ///< SD Re-tuning modes select
/// @li <b>0</b> - mode 1
/// @li <b>1</b> - mode 2
/// @li <b>2</b> - mode 3
UINT8 SdHostControllerVersion; ///< SD controller Version
/// @li <b>1</b> - SD 2.0
/// @li <b>2</b> - SD 3.0
} FCH_SD;
///
/// CODEC_ENTRY - Fch HD Audio OEM Codec structure
///
typedef struct _CODEC_ENTRY {
UINT8 Nid; /// Nid - Reserved
UINT32 Byte40; /// Byte40 - Reserved
} CODEC_ENTRY;
///
/// CODEC_TBL_LIST - Fch HD Audio Codec table list
///
typedef struct _CODEC_TBL_LIST {
UINT32 CodecId; /// CodecID - Codec ID
CODEC_ENTRY* CodecTablePtr; /// CodecTablePtr - Codec table pointer
} CODEC_TBL_LIST;
///
/// AZALIA_PIN - HID Azalia or GPIO define structure.
///
typedef struct _AZALIA_PIN {
UINT8 AzaliaSdin0; ///< AzaliaSdin0
/// @par
/// @li <b>00</b> - GPIO PIN
/// @li <b>10</b> - As a Azalia SDIN pin
UINT8 AzaliaSdin1; ///< AzaliaSdin1
/// @par
/// SDIN1 is define at BIT2 & BIT3
/// @li <b>00</b> - GPIO PIN
/// @li <b>10</b> - As a Azalia SDIN pin
UINT8 AzaliaSdin2; ///< AzaliaSdin2
/// @par
/// SDIN2 is define at BIT4 & BIT5
/// @li <b>00</b> - GPIO PIN
/// @li <b>10</b> - As a Azalia SDIN pin
UINT8 AzaliaSdin3; ///< AzaliaSdin3
/// @par
/// SDIN3 is define at BIT6 & BIT7
/// @li <b>00</b> - GPIO PIN
/// @li <b>10</b> - As a Azalia SDIN pin
} AZALIA_PIN;
///
/// Azalia structure
///
typedef struct {
HDA_CONFIG AzaliaEnable; ///< AzaliaEnable - Azalia function configuration
BOOLEAN AzaliaMsiEnable; ///< AzaliaMsiEnable - Azalia MSI capability
UINT32 AzaliaSsid; ///< AzaliaSsid - Azalia Subsystem ID
UINT8 AzaliaPinCfg; ///< AzaliaPinCfg - Azalia Controller SDIN pin Configuration
/// @par
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
UINT8 AzaliaFrontPanel; ///< AzaliaFrontPanel - Azalia Controller Front Panel Configuration
/// @par
/// Support Front Panel configuration
/// @li <b>0</b> - Auto
/// @li <b>1</b> - disable
/// @li <b>2</b> - enable
UINT8 FrontPanelDetected; ///< FrontPanelDetected - Force Azalia Controller Front Panel Configuration
/// @par
/// Force Front Panel configuration
/// @li <b>0</b> - Not Detected
/// @li <b>1</b> - Detected
UINT8 AzaliaSnoop; ///< AzaliaSnoop - Azalia Controller Snoop feature Configuration
/// @par
/// Azalia Controller Snoop feature Configuration
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
UINT8 AzaliaDummy; /// AzaliaDummy - Reserved */
AZALIA_PIN AzaliaConfig; /// AzaliaConfig - Azaliz Pin Configuration
///
/// AZOEMTBL - Azalia Controller OEM Codec Table Pointer
///
CODEC_TBL_LIST *AzaliaOemCodecTablePtr; /// AzaliaOemCodecTablePtr - Oem Azalia Codec Table Pointer
///
/// AZOEMFPTBL - Azalia Controller Front Panel OEM Table Pointer
///
VOID *AzaliaOemFpCodecTablePtr; /// AzaliaOemFpCodecTablePtr - Oem Front Panel Codec Table Pointer
} FCH_AZALIA;
///
/// SPI structure
///
typedef struct {
BOOLEAN LpcMsiEnable; ///< LPC MSI capability
UINT32 LpcSsid; ///< LPC Subsystem ID
UINT32 RomBaseAddress; ///< SpiRomBaseAddress
/// @par
/// SPI ROM BASE Address
///
UINT8 SpiSpeed; ///< SpiSpeed - Spi Frequency
/// @par
/// SPI Speed [1.0] - the clock speed for non-fast read command
/// @li <b>00</b> - 66Mhz
/// @li <b>01</b> - 33Mhz
/// @li <b>10</b> - 22Mhz
/// @li <b>11</b> - 16.5Mhz
///
UINT8 SpiFastSpeed; ///< FastSpeed - Spi Fast Speed feature
/// @par
/// TBD
///
UINT8 WriteSpeed; ///< WriteSpeed - Spi Write Speed
/// @par
/// TBD
///
UINT8 SpiMode; ///< SpiMode - Spi Mode Setting
/// @par
/// @li <b>101</b> - Qual-io 1-4-4
/// @li <b>100</b> - Dual-io 1-2-2
/// @li <b>011</b> - Qual-io 1-1-4
/// @li <b>010</b> - Dual-io 1-1-2
/// @li <b>111</b> - FastRead
/// @li <b>110</b> - Normal
///
UINT8 AutoMode; ///< AutoMode - Spi Auto Mode
/// @par
/// SPI Auto Mode
/// @li <b>0</b> - Disabled
/// @li <b>1</b> - Enabled
///
UINT8 SpiBurstWrite; ///< SpiBurstWrite - Spi Burst Write Mode
/// @par
/// SPI Burst Write
/// @li <b>0</b> - Disabled
/// @li <b>1</b> - Enabled
} FCH_SPI;
///
/// IDE structure
///
typedef struct {
BOOLEAN IdeEnable; ///< IDE function switch
BOOLEAN IdeMsiEnable; ///< IDE MSI capability
UINT32 IdeSsid; ///< IDE controller Subsystem ID
} FCH_IDE;
///
/// IR Structure
///
typedef struct {
IR_CONFIG IrConfig; ///< IrConfig
UINT8 IrPinControl; ///< IrPinControl
} FCH_IR;
///
/// PCI Bridge Structure
///
typedef struct {
BOOLEAN PcibMsiEnable; ///< PCI-PCI Bridge MSI capability
UINT32 PcibSsid; ///< PCI-PCI Bridge Subsystem ID
UINT8 PciClks; ///< 33MHz PCICLK0/1/2/3 Enable, bits [0:3] used
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
UINT16 PcibClkStopOverride; ///< PCIB_CLK_Stop Override
BOOLEAN PcibClockRun; ///< Enable the auto clkrun functionality
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
} FCH_PCIB;
///
/// - SATA Phy setting structure
///
typedef struct _SATA_PHY_SETTING {
UINT16 PhyCoreControlWord; /// PhyCoreControlWord - Reserved
UINT32 PhyFineTuneDword; /// PhyFineTuneDword - Reserved
} SATA_PHY_SETTING;
///
/// SATA main setting structure
///
typedef struct _SATA_ST {
UINT8 SataModeReg; ///< SataModeReg - Sata Controller Mode
BOOLEAN SataEnable; ///< SataEnable - Sata Controller Function
/// @par
/// Sata Controller
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
UINT8 Sata6AhciCap; ///< Sata6AhciCap - Reserved */
BOOLEAN SataSetMaxGen2; ///< SataSetMaxGen2 - Set Sata Max Gen2 mode
/// @par
/// Sata Controller Set to Max Gen2 mode
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
BOOLEAN IdeEnable; ///< IdeEnable - Ide Controller Mode
/// @par
/// Sata IDE Controller set to Combined Mode
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
UINT8 SataClkMode; /// SataClkMode - Reserved
} SATA_ST;
///
/// SATA_PORT_ST - SATA PORT structure
///
typedef struct _SATA_PORT_ST {
UINT8 SataPortReg; ///< SATA Port bit map - bits[0:7] for ports 0 ~ 7
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
BOOLEAN Port0; ///< PORT0 - 0:disable, 1:enable
BOOLEAN Port1; ///< PORT1 - 0:disable, 1:enable
BOOLEAN Port2; ///< PORT2 - 0:disable, 1:enable
BOOLEAN Port3; ///< PORT3 - 0:disable, 1:enable
BOOLEAN Port4; ///< PORT4 - 0:disable, 1:enable
BOOLEAN Port5; ///< PORT5 - 0:disable, 1:enable
BOOLEAN Port6; ///< PORT6 - 0:disable, 1:enable
BOOLEAN Port7; ///< PORT7 - 0:disable, 1:enable
} SATA_PORT_ST;
///
///< _SATA_PORT_MD - Force Each PORT to GEN1/GEN2 mode
///
typedef struct _SATA_PORT_MD {
UINT16 SataPortMode; ///< SATA Port GEN1/GEN2 mode bit map - bits [0:15] for ports 0 ~ 7
UINT8 Port0; ///< PORT0 - set BIT0 to GEN1, BIT1 - PORT0 set to GEN2
UINT8 Port1; ///< PORT1 - set BIT2 to GEN1, BIT3 - PORT1 set to GEN2
UINT8 Port2; ///< PORT2 - set BIT4 to GEN1, BIT5 - PORT2 set to GEN2
UINT8 Port3; ///< PORT3 - set BIT6 to GEN1, BIT7 - PORT3 set to GEN2
UINT8 Port4; ///< PORT4 - set BIT8 to GEN1, BIT9 - PORT4 set to GEN2
UINT8 Port5; ///< PORT5 - set BIT10 to GEN1, BIT11 - PORT5 set to GEN2
UINT8 Port6; ///< PORT6 - set BIT12 to GEN1, BIT13 - PORT6 set to GEN2
UINT8 Port7; ///< PORT7 - set BIT14 to GEN1, BIT15 - PORT7 set to GEN2
} SATA_PORT_MD;
///
/// SATA structure
///
typedef struct {
BOOLEAN SataMsiEnable; ///< SATA MSI capability
UINT32 SataIdeSsid; ///< SATA IDE mode SSID
UINT32 SataRaidSsid; ///< SATA RAID mode SSID
UINT32 SataRaid5Ssid; ///< SATA RAID 5 mode SSID
UINT32 SataAhciSsid; ///< SATA AHCI mode SSID
SATA_ST SataMode; /// SataMode - Reserved
SATA_CLASS SataClass; ///< SataClass - SATA Controller mode [2:0]
UINT8 SataIdeMode; ///< SataIdeMode - Sata IDE Controller mode
/// @par
/// @li <b>0</b> - Legacy IDE mode
/// @li <b>1</b> - Native IDE mode
///
UINT8 SataDisUnusedIdePChannel; ///< SataDisUnusedIdePChannel-Disable Unused IDE Primary Channel
/// @par
/// @li <b>0</b> - Channel Enable
/// @li <b>1</b> - Channel Disable
///
UINT8 SataDisUnusedIdeSChannel; ///< SataDisUnusedIdeSChannel - Disable Unused IDE Secondary Channel
/// @par
/// @li <b>0</b> - Channel Enable
/// @li <b>1</b> - Channel Disable
///
UINT8 IdeDisUnusedIdePChannel; ///< IdeDisUnusedIdePChannel-Disable Unused IDE Primary Channel
/// @par
/// @li <b>0</b> - Channel Enable
/// @li <b>1</b> - Channel Disable
///
UINT8 IdeDisUnusedIdeSChannel; ///< IdeDisUnusedIdeSChannel-Disable Unused IDE Secondary Channel
/// @par
/// @li <b>0</b> - Channel Enable
/// @li <b>1</b> - Channel Disable
///
UINT8 SataOptionReserved; /// SataOptionReserved - Reserved
SATA_PORT_ST SataEspPort; ///< SataEspPort - SATA port is external accessible on a signal only connector (eSATA:)
SATA_PORT_ST SataPortPower; ///< SataPortPower - Port Power configuration
SATA_PORT_MD SataPortMd; ///< SataPortMd - Port Mode
UINT8 SataAggrLinkPmCap; /// SataAggrLinkPmCap - 0:OFF 1:ON
UINT8 SataPortMultCap; /// SataPortMultCap - 0:OFF 1:ON
UINT8 SataClkAutoOff; /// SataClkAutoOff - AutoClockOff 0:Disabled, 1:Enabled
UINT8 SataPscCap; /// SataPscCap 1:Enable PSC, 0:Disable PSC capability
UINT8 BiosOsHandOff; /// BiosOsHandOff - Reserved
UINT8 SataFisBasedSwitching; /// SataFisBasedSwitching - Reserved
UINT8 SataCccSupport; /// SataCccSupport - Reserved
UINT8 SataSscCap; /// SataSscCap - 1:Enable, 0:Disable SSC capability
UINT8 SataMsiCapability; /// SataMsiCapability 0:Hidden 1:Visible
UINT8 SataForceRaid; /// SataForceRaid 0:No function 1:Force RAID
UINT8 SataInternal100Spread; /// SataInternal100Spread - Reserved
UINT8 SataDebugDummy; /// SataDebugDummy - Reserved
UINT8 SataTargetSupport8Device; /// SataTargetSupport8Device - Reserved
UINT8 SataDisableGenericMode; /// SataDisableGenericMode - Reserved
BOOLEAN SataAhciEnclosureManagement; /// SataAhciEnclosureManagement - Reserved
UINT8 SataSgpio0; /// SataSgpio0 - Reserved
UINT8 SataSgpio1; /// SataSgpio1 - Reserved
UINT8 SataPhyPllShutDown; /// SataPhyPllShutDown - Reserved
BOOLEAN SataHotRemovalEnh; /// SataHotRemovalEnh - Reserved
SATA_PORT_ST SataHotRemovalEnhPort; ///< SataHotRemovalEnhPort - Hot Remove
BOOLEAN SataOobDetectionEnh; /// SataOobDetectionEnh - TRUE
BOOLEAN SataPowerSavingEnh; /// SataPowerSavingEnh - TRUE
UINT8 SataMemoryPowerSaving; /// SataMemoryPowerSaving - 0-3 Default [3]
UINT32 TempMmio; /// TempMmio - Reserved
} FCH_SATA;
//
// IMC Message Register Software Interface
//
#define CPU_MISC_BUS_DEV_FUN ((0x18 << 3) + 3)
#define MSG_SYS_TO_IMC 0x80
#define Fun_80 0x80
#define Fun_81 0x81
#define Fun_82 0x82
#define Fun_83 0x83
#define Fun_84 0x84
#define Fun_85 0x85
#define Fun_86 0x86
#define Fun_87 0x87
#define Fun_88 0x88
#define Fun_89 0x89
#define Fun_90 0x90
#define MSG_IMC_TO_SYS 0x81
#define MSG_REG0 0x82
#define MSG_REG1 0x83
#define MSG_REG2 0x84
#define MSG_REG3 0x85
#define MSG_REG4 0x86
#define MSG_REG5 0x87
#define MSG_REG6 0x88
#define MSG_REG7 0x89
#define MSG_REG8 0x8A
#define MSG_REG9 0x8B
#define MSG_REGA 0x8C
#define MSG_REGB 0x8D
#define MSG_REGC 0x8E
#define MSG_REGD 0x8F
#define DISABLED 0
#define ENABLED 1
///
/// EC structure
///
typedef struct _FCH_EC {
UINT8 MsgFun81Zone0MsgReg0; ///<Thermal zone
UINT8 MsgFun81Zone0MsgReg1; ///<Thermal zone
UINT8 MsgFun81Zone0MsgReg2; ///<Thermal zone control byte 1
UINT8 MsgFun81Zone0MsgReg3; ///<Thermal zone control byte 2
UINT8 MsgFun81Zone0MsgReg4; ///<Bit[3:0] - Thermal diode offset adjustment in degrees Celsius.
UINT8 MsgFun81Zone0MsgReg5; ///<Hysteresis information
UINT8 MsgFun81Zone0MsgReg6; ///<SMBUS Address for SMBUS based temperature sensor such as SB-TSI and ADM1032
UINT8 MsgFun81Zone0MsgReg7; ///<Bit[1:0]: 0 - 2, SMBUS bus number where the SMBUS based temperature sensor is located.
UINT8 MsgFun81Zone0MsgReg8; ///<Fan PWM stepping rate in unit of PWM level percentage
UINT8 MsgFun81Zone0MsgReg9; ///<Fan PWM ramping rate in 5ms unit
//
// EC LDN9 function 81 zone 1
//
UINT8 MsgFun81Zone1MsgReg0; ///<Thermal zone
UINT8 MsgFun81Zone1MsgReg1; ///<Thermal zone
UINT8 MsgFun81Zone1MsgReg2; ///<Thermal zone control byte 1
UINT8 MsgFun81Zone1MsgReg3; ///<Thermal zone control byte 2
UINT8 MsgFun81Zone1MsgReg4; ///<Bit[3:0] - Thermal diode offset adjustment in degrees Celsius.
UINT8 MsgFun81Zone1MsgReg5; ///<Hysteresis information
UINT8 MsgFun81Zone1MsgReg6; ///<SMBUS Address for SMBUS based temperature sensor such as SB-TSI and ADM1032
UINT8 MsgFun81Zone1MsgReg7; ///<Bit[1:0]: 0 - 2, SMBUS bus number where the SMBUS based temperature sensor is located.
UINT8 MsgFun81Zone1MsgReg8; ///<Fan PWM stepping rate in unit of PWM level percentage
UINT8 MsgFun81Zone1MsgReg9; ///<Fan PWM ramping rate in 5ms unit
//
//EC LDN9 function 81 zone 2
//
UINT8 MsgFun81Zone2MsgReg0; ///<Thermal zone
UINT8 MsgFun81Zone2MsgReg1; ///<Thermal zone
UINT8 MsgFun81Zone2MsgReg2; ///<Thermal zone control byte 1
UINT8 MsgFun81Zone2MsgReg3; ///<Thermal zone control byte 2
UINT8 MsgFun81Zone2MsgReg4; ///<Bit[3:0] - Thermal diode offset adjustment in degrees Celsius.
UINT8 MsgFun81Zone2MsgReg5; ///<Hysteresis information
UINT8 MsgFun81Zone2MsgReg6; ///<SMBUS Address for SMBUS based temperature sensor such as SB-TSI and ADM1032
UINT8 MsgFun81Zone2MsgReg7; ///<Bit[1:0]: 0 - 2, SMBUS bus number where the SMBUS based temperature sensor is located.
UINT8 MsgFun81Zone2MsgReg8; ///<Fan PWM stepping rate in unit of PWM level percentage
UINT8 MsgFun81Zone2MsgReg9; ///<Fan PWM ramping rate in 5ms unit
//
//EC LDN9 function 81 zone 3
//
UINT8 MsgFun81Zone3MsgReg0; ///<Thermal zone
UINT8 MsgFun81Zone3MsgReg1; ///<Thermal zone
UINT8 MsgFun81Zone3MsgReg2; ///<Thermal zone control byte 1
UINT8 MsgFun81Zone3MsgReg3; ///<Thermal zone control byte 2
UINT8 MsgFun81Zone3MsgReg4; ///<Bit[3:0] - Thermal diode offset adjustment in degrees Celsius.
UINT8 MsgFun81Zone3MsgReg5; ///<Hysteresis information
UINT8 MsgFun81Zone3MsgReg6; ///<SMBUS Address for SMBUS based temperature sensor such as SB-TSI and ADM1032
UINT8 MsgFun81Zone3MsgReg7; ///<Bit[1:0]: 0 - 2, SMBUS bus number where the SMBUS based temperature sensor is located.
UINT8 MsgFun81Zone3MsgReg8; ///<Fan PWM stepping rate in unit of PWM level percentage
UINT8 MsgFun81Zone3MsgReg9; ///<Fan PWM ramping rate in 5ms unit
//
//EC LDN9 function 83 zone 0
//
UINT8 MsgFun83Zone0MsgReg0; ///<Thermal zone
UINT8 MsgFun83Zone0MsgReg1; ///<Thermal zone
UINT8 MsgFun83Zone0MsgReg2; ///<_AC0
UINT8 MsgFun83Zone0MsgReg3; ///<_AC1
UINT8 MsgFun83Zone0MsgReg4; ///<_AC2
UINT8 MsgFun83Zone0MsgReg5; ///<_AC3
UINT8 MsgFun83Zone0MsgReg6; ///<_AC4
UINT8 MsgFun83Zone0MsgReg7; ///<_AC5
UINT8 MsgFun83Zone0MsgReg8; ///<_AC6
UINT8 MsgFun83Zone0MsgReg9; ///<_AC7
UINT8 MsgFun83Zone0MsgRegA; ///<_CRT
UINT8 MsgFun83Zone0MsgRegB; ///<_PSV
//
//EC LDN9 function 83 zone 1
//
UINT8 MsgFun83Zone1MsgReg0; ///<Thermal zone
UINT8 MsgFun83Zone1MsgReg1; ///<Thermal zone
UINT8 MsgFun83Zone1MsgReg2; ///<_AC0
UINT8 MsgFun83Zone1MsgReg3; ///<_AC1
UINT8 MsgFun83Zone1MsgReg4; ///<_AC2
UINT8 MsgFun83Zone1MsgReg5; ///<_AC3
UINT8 MsgFun83Zone1MsgReg6; ///<_AC4
UINT8 MsgFun83Zone1MsgReg7; ///<_AC5
UINT8 MsgFun83Zone1MsgReg8; ///<_AC6
UINT8 MsgFun83Zone1MsgReg9; ///<_AC7
UINT8 MsgFun83Zone1MsgRegA; ///<_CRT
UINT8 MsgFun83Zone1MsgRegB; ///<_PSV
//
//EC LDN9 function 83 zone 2
//
UINT8 MsgFun83Zone2MsgReg0; ///<Thermal zone
UINT8 MsgFun83Zone2MsgReg1; ///<Thermal zone
UINT8 MsgFun83Zone2MsgReg2; ///<_AC0
UINT8 MsgFun83Zone2MsgReg3; ///<_AC1
UINT8 MsgFun83Zone2MsgReg4; ///<_AC2
UINT8 MsgFun83Zone2MsgReg5; ///<_AC3
UINT8 MsgFun83Zone2MsgReg6; ///<_AC4
UINT8 MsgFun83Zone2MsgReg7; ///<_AC5
UINT8 MsgFun83Zone2MsgReg8; ///<_AC6
UINT8 MsgFun83Zone2MsgReg9; ///<_AC7
UINT8 MsgFun83Zone2MsgRegA; ///<_CRT
UINT8 MsgFun83Zone2MsgRegB; ///<_PSV
//
//EC LDN9 function 83 zone 3
//
UINT8 MsgFun83Zone3MsgReg0; ///<Thermal zone
UINT8 MsgFun83Zone3MsgReg1; ///<Thermal zone
UINT8 MsgFun83Zone3MsgReg2; ///<_AC0
UINT8 MsgFun83Zone3MsgReg3; ///<_AC1
UINT8 MsgFun83Zone3MsgReg4; ///<_AC2
UINT8 MsgFun83Zone3MsgReg5; ///<_AC3
UINT8 MsgFun83Zone3MsgReg6; ///<_AC4
UINT8 MsgFun83Zone3MsgReg7; ///<_AC5
UINT8 MsgFun83Zone3MsgReg8; ///<_AC6
UINT8 MsgFun83Zone3MsgReg9; ///<_AC7
UINT8 MsgFun83Zone3MsgRegA; ///<_CRT
UINT8 MsgFun83Zone3MsgRegB; ///<_PSV
//
//EC LDN9 function 85 zone 0
//
UINT8 MsgFun85Zone0MsgReg0; ///<Thermal zone
UINT8 MsgFun85Zone0MsgReg1; ///<Thermal zone
UINT8 MsgFun85Zone0MsgReg2; ///<AL0 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg3; ///<AL1 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg4; ///<AL2 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg5; ///<AL3 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg6; ///<AL4 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg7; ///<AL5 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg8; ///<AL6 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone0MsgReg9; ///<AL7 PWM level in percentage (0 - 100%)
//
//EC LDN9 function 85 zone 1
//
UINT8 MsgFun85Zone1MsgReg0; ///<Thermal zone
UINT8 MsgFun85Zone1MsgReg1; ///<Thermal zone
UINT8 MsgFun85Zone1MsgReg2; ///<AL0 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg3; ///<AL1 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg4; ///<AL2 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg5; ///<AL3 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg6; ///<AL4 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg7; ///<AL5 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg8; ///<AL6 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone1MsgReg9; ///<AL7 PWM level in percentage (0 - 100%)
//
//EC LDN9 function 85 zone 2
//
UINT8 MsgFun85Zone2MsgReg0; ///<Thermal zone
UINT8 MsgFun85Zone2MsgReg1; ///<Thermal zone
UINT8 MsgFun85Zone2MsgReg2; ///<AL0 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg3; ///<AL1 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg4; ///<AL2 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg5; ///<AL3 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg6; ///<AL4 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg7; ///<AL5 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg8; ///<AL6 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone2MsgReg9; ///<AL7 PWM level in percentage (0 - 100%)
//
//EC LDN9 function 85 zone 3
//
UINT8 MsgFun85Zone3MsgReg0; ///<Thermal zone
UINT8 MsgFun85Zone3MsgReg1; ///<Thermal zone
UINT8 MsgFun85Zone3MsgReg2; ///<AL0 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg3; ///<AL1 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg4; ///<AL2 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg5; ///<AL3 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg6; ///<AL4 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg7; ///<AL5 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg8; ///<AL6 PWM level in percentage (0 - 100%)
UINT8 MsgFun85Zone3MsgReg9; ///<AL7 PWM level in percentage (0 - 100%)
//
//EC LDN9 function 89 TEMPIN channel 0
//
UINT8 MsgFun89Zone0MsgReg0; ///<Thermal zone
UINT8 MsgFun89Zone0MsgReg1; ///<Thermal zone
UINT8 MsgFun89Zone0MsgReg2; ///<At DWORD bit 0-7
UINT8 MsgFun89Zone0MsgReg3; ///<At DWORD bit 15-8
UINT8 MsgFun89Zone0MsgReg4; ///<At DWORD bit 23-16
UINT8 MsgFun89Zone0MsgReg5; ///<At DWORD bit 31-24
UINT8 MsgFun89Zone0MsgReg6; ///<Ct DWORD bit 0-7
UINT8 MsgFun89Zone0MsgReg7; ///<Ct DWORD bit 15-8
UINT8 MsgFun89Zone0MsgReg8; ///<Ct DWORD bit 23-16
UINT8 MsgFun89Zone0MsgReg9; ///<Ct DWORD bit 31-24
UINT8 MsgFun89Zone0MsgRegA; ///<Mode bit 0-7
//
//EC LDN9 function 89 TEMPIN channel 1
//
UINT8 MsgFun89Zone1MsgReg0; ///<Thermal zone
UINT8 MsgFun89Zone1MsgReg1; ///<Thermal zone
UINT8 MsgFun89Zone1MsgReg2; ///<At DWORD bit 0-7
UINT8 MsgFun89Zone1MsgReg3; ///<At DWORD bit 15-8
UINT8 MsgFun89Zone1MsgReg4; ///<At DWORD bit 23-16
UINT8 MsgFun89Zone1MsgReg5; ///<At DWORD bit 31-24
UINT8 MsgFun89Zone1MsgReg6; ///<Ct DWORD bit 0-7
UINT8 MsgFun89Zone1MsgReg7; ///<Ct DWORD bit 15-8
UINT8 MsgFun89Zone1MsgReg8; ///<Ct DWORD bit 23-16
UINT8 MsgFun89Zone1MsgReg9; ///<Ct DWORD bit 31-24
UINT8 MsgFun89Zone1MsgRegA; ///<Mode bit 0-7
//
//EC LDN9 function 89 TEMPIN channel 2
//
UINT8 MsgFun89Zone2MsgReg0; ///<Thermal zone
UINT8 MsgFun89Zone2MsgReg1; ///<Thermal zone
UINT8 MsgFun89Zone2MsgReg2; ///<At DWORD bit 0-7
UINT8 MsgFun89Zone2MsgReg3; ///<At DWORD bit 15-8
UINT8 MsgFun89Zone2MsgReg4; ///<At DWORD bit 23-16
UINT8 MsgFun89Zone2MsgReg5; ///<At DWORD bit 31-24
UINT8 MsgFun89Zone2MsgReg6; ///<Ct DWORD bit 0-7
UINT8 MsgFun89Zone2MsgReg7; ///<Ct DWORD bit 15-8
UINT8 MsgFun89Zone2MsgReg8; ///<Ct DWORD bit 23-16
UINT8 MsgFun89Zone2MsgReg9; ///<Ct DWORD bit 31-24
UINT8 MsgFun89Zone2MsgRegA; ///<Mode bit 0-7
//
//EC LDN9 function 89 TEMPIN channel 3
//
UINT8 MsgFun89Zone3MsgReg0; ///<Thermal zone
UINT8 MsgFun89Zone3MsgReg1; ///<Thermal zone
UINT8 MsgFun89Zone3MsgReg2; ///<At DWORD bit 0-7
UINT8 MsgFun89Zone3MsgReg3; ///<At DWORD bit 15-8
UINT8 MsgFun89Zone3MsgReg4; ///<At DWORD bit 23-16
UINT8 MsgFun89Zone3MsgReg5; ///<At DWORD bit 31-24
UINT8 MsgFun89Zone3MsgReg6; ///<Ct DWORD bit 0-7
UINT8 MsgFun89Zone3MsgReg7; ///<Ct DWORD bit 15-8
UINT8 MsgFun89Zone3MsgReg8; ///<Ct DWORD bit 23-16
UINT8 MsgFun89Zone3MsgReg9; ///<Ct DWORD bit 31-24
UINT8 MsgFun89Zone3MsgRegA; ///<Mode bit 0-7
//
// FLAG for Fun83/85/89 support
//
UINT16 IMCFUNSupportBitMap; ///< Bit0=81FunZone0 support(1=On;0=Off); bit1-3=81FunZone1-Zone3;Bit4-7=83FunZone0-Zone3;Bit8-11=85FunZone0-Zone3;Bit11-15=89FunZone0-Zone3;
} FCH_EC;
///
/// IMC structure
///
typedef struct _FCH_IMC {
UINT8 ImcEnable; ///< ImcEnable - IMC Enable
UINT8 ImcEnabled; ///< ImcEnabled - IMC Enable
UINT8 ImcSureBootTimer; ///< ImcSureBootTimer - IMc SureBootTimer function
FCH_EC EcStruct; ///< EC structure
UINT8 ImcEnableOverWrite; ///< OverWrite IMC with the EC structure
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
} FCH_IMC;
///
/// Hpet structure
///
typedef struct {
BOOLEAN HpetEnable; ///< HPET function switch
BOOLEAN HpetMsiDis; ///< HpetMsiDis - South Bridge HPET MSI Configuration
/// @par
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT32 HpetBase; ///< HpetBase
/// @par
/// HPET Base address
} FCH_HPET;
///
/// GCPU related parameters
///
typedef struct {
UINT8 AcDcMsg; ///< Send a message to CPU to indicate the power mode (AC vs battery)
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT8 TimerTickTrack; ///< Send a message to CPU to indicate the latest periodic timer interval
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT8 ClockInterruptTag; ///< Mark the periodic timer interrupt
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT8 OhciTrafficHanding; ///< Cause CPU to break out from C state when USB OHCI has pending traffic
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT8 EhciTrafficHanding; ///< Cause CPU to break out from C state when USB EHCI has pending traffic
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT8 GcpuMsgCMultiCore; ///< Track of CPU C state by monitoring each core's C state message
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
UINT8 GcpuMsgCStage; ///< Enable the FCH C state coordination logic
/// @li <b>1</b> - disable
/// @li <b>0</b> - enable
} FCH_GCPU;
///
/// Timer
///
typedef struct {
BOOLEAN Enable; ///< Whether to register timer SMI in POST
BOOLEAN StartNow; ///< Whether to start the SMI immediately during registration
UINT16 CycleDuration; ///< [14:0] - Actual cycle duration = CycleDuration + 1
} TIMER_SMI;
///
/// MISC structure
///
typedef struct {
BOOLEAN NativePcieSupport; /// PCIe NativePcieSupport - Debug function. 1:Enabled, 0:Disabled
BOOLEAN S3Resume; /// S3Resume - Flag of ACPI S3 Resume.
BOOLEAN RebootRequired; /// RebootRequired - Flag of Reboot system is required.
UINT8 FchVariant; /// FchVariant - FCH Variant value.
UINT8 Cg2Pll; ///< CG2 PLL - 0:disable, 1:enable
TIMER_SMI LongTimer; ///< Long Timer SMI
TIMER_SMI ShortTimer; ///< Short Timer SMI
} FCH_MISC;
///
/// SMBus structure
///
typedef struct {
UINT32 SmbusSsid; ///< SMBUS controller Subsystem ID
} FCH_SMBUS;
///
/// Acpi structure
///
typedef struct {
UINT16 Smbus0BaseAddress; ///< Smbus0BaseAddress
/// @par
/// Smbus BASE Address
///
UINT16 Smbus1BaseAddress; ///< Smbus1BaseAddress
/// @par
/// Smbus1 (ASF) BASE Address
///
UINT16 SioPmeBaseAddress; ///< SioPmeBaseAddress
/// @par
/// SIO PME BASE Address
///
UINT32 WatchDogTimerBase; ///< WatchDogTimerBase
/// @par
/// Watch Dog Timer Address
///
UINT16 AcpiPm1EvtBlkAddr; ///< AcpiPm1EvtBlkAddr
/// @par
/// ACPI PM1 event block Address
///
UINT16 AcpiPm1CntBlkAddr; ///< AcpiPm1CntBlkAddr
/// @par
/// ACPI PM1 Control block Address
///
UINT16 AcpiPmTmrBlkAddr; ///< AcpiPmTmrBlkAddr
/// @par
/// ACPI PM timer block Address
///
UINT16 CpuControlBlkAddr; ///< CpuControlBlkAddr
/// @par
/// ACPI CPU control block Address
///
UINT16 AcpiGpe0BlkAddr; ///< AcpiGpe0BlkAddr
/// @par
/// ACPI GPE0 block Address
///
UINT16 SmiCmdPortAddr; ///< SmiCmdPortAddr
/// @par
/// SMI command port Address
///
UINT16 AcpiPmaCntBlkAddr; ///< AcpiPmaCntBlkAddr
/// @par
/// ACPI PMA Control block Address
///
BOOLEAN AnyHt200MhzLink; ///< AnyHt200MhzLink
/// @par
/// HT Link Speed on 200MHz option for each CPU specific LDTSTP# (Force enable)
///
BOOLEAN SpreadSpectrum; ///< SpreadSpectrum
/// @par
/// Spread Spectrum function
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
POWER_FAIL PwrFailShadow; ///< PwrFailShadow = PM_Reg: 5Bh [3:0]
/// @par
/// @li <b>00</b> - Always off
/// @li <b>01</b> - Always on
/// @li <b>11</b> - Use previous
///
UINT8 StressResetMode; ///< StressResetMode 01-10
/// @li <b>00</b> - Disabed
/// @li <b>01</b> - Io Write 0x64 with 0xfe
/// @li <b>10</b> - Io Write 0xcf9 with 0x06
/// @li <b>11</b> - Io Write 0xcf9 with 0x0e
///
BOOLEAN MtC1eEnable; /// MtC1eEnable - Enable MtC1e
VOID* OemProgrammingTablePtr; /// Pointer of ACPI OEM table
} FCH_ACPI;
///
/// HWM temp parameter structure
///
typedef struct _FCH_HWM_TEMP_PAR {
UINT16 At; ///< At
UINT16 Ct; ///< Ct
UINT8 Mode; ///< Mode BIT0:HiRatio BIT1:HiCurrent
} FCH_HWM_TEMP_PAR;
///
/// HWM Current structure
///
typedef struct _FCH_HWM_CUR {
UINT16 FanSpeed[5]; ///< FanSpeed - fan Speed
UINT16 Temperature[5]; ///< Temperature - temperature
UINT16 Voltage[8]; ///< Voltage - voltage
} FCH_HWM_CUR;
///
/// HWM fan control structure
///
typedef struct _FCH_HWM_FAN_CTR {
UINT8 InputControlReg00; /// Fan Input Control register, PM2 offset [0:4]0
UINT8 ControlReg01; /// Fan control register, PM2 offset [0:4]1
UINT8 FreqReg02; /// Fan frequency register, PM2 offset [0:4]2
UINT8 LowDutyReg03; /// Low Duty register, PM2 offset [0:4]3
UINT8 MedDutyReg04; /// Med Duty register, PM2 offset [0:4]4
UINT8 MultiplierReg05; /// Multiplier register, PM2 offset [0:4]5
UINT16 LowTempReg06; /// Low Temp register, PM2 offset [0:4]6
UINT16 MedTempReg08; /// Med Temp register, PM2 offset [0:4]8
UINT16 HighTempReg0A; /// High Temp register, PM2 offset [0:4]A
UINT8 LinearRangeReg0C; /// Linear Range register, PM2 offset [0:4]C
UINT8 LinearHoldCountReg0D; /// Linear Hold Count register, PM2 offset [0:4]D
} FCH_HWM_FAN_CTR;
///
/// Hwm structure
///
typedef struct _FCH_HWM {
UINT8 HwMonitorEnable; ///< HwMonitorEnable
UINT32 HwmControl; ///< hwmControl
/// @par
/// HWM control configuration
/// @li <b>0</b> - HWM is Enabled
/// @li <b>1</b> - IMC is Enabled
///
UINT8 FanSampleFreqDiv; ///< Sampling rate of Fan Speed
/// @li <b>00</b> - Base(22.5KHz)
/// @li <b>01</b> - Base(22.5KHz)/2
/// @li <b>10</b> - Base(22.5KHz)/4
/// @li <b>11</b> - Base(22.5KHz)/8
///
UINT8 HwmFchtsiAutoPoll; ///< TSI Auto Polling
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
UINT8 HwmFchtsiAutoPollStarted; ///< HwmSbtsiAutoPollStarted
UINT8 FanLinearEnhanceEn; ///< FanLinearEnhanceEn
UINT8 FanLinearHoldFix; ///< FanLinearHoldFix
UINT8 FanLinearRangeOutLimit; ///< FanLinearRangeOutLimit
UINT16 HwmCalibrationFactor; /// Calibration Factor
FCH_HWM_CUR HwmCurrent; /// HWM Current structure
FCH_HWM_CUR HwmCurrentRaw; /// HWM Current Raw structure
FCH_HWM_TEMP_PAR HwmTempPar[5]; /// HWM Temp parameter structure
FCH_HWM_FAN_CTR HwmFanControl[5]; /// HWM Fan Control structure
FCH_HWM_FAN_CTR HwmFanControlCooked[5]; /// HWM Fan Control structure
} FCH_HWM;
///
/// Gec structure
///
typedef struct {
BOOLEAN GecEnable; ///< GecEnable - GEC function switch
UINT8 GecPhyStatus; /// GEC PHY Status
UINT8 GecPowerPolicy; /// GEC Power Policy
/// @li <b>00</b> - GEC is powered down in S3 and S5
/// @li <b>01</b> - GEC is powered down only in S5
/// @li <b>10</b> - GEC is powered down only in S3
/// @li <b>11</b> - GEC is never powered down
///
UINT8 GecDebugBus; /// GEC Debug Bus
/// @li <b>0</b> - disable
/// @li <b>1</b> - enable
///
UINT32 GecShadowRomBase; ///< GecShadowRomBase
/// @par
/// GEC (NIC) SHADOWROM BASE Address
///
VOID *PtrDynamicGecRomAddress; /// Pointer of Dynamic GEC ROM Address
} FCH_GEC;
///
/// _ABTblEntry - AB link register table R/W structure
///
typedef struct _AB_TBL_ENTRY {
UINT8 RegType; /// RegType : AB Register Type (ABCFG, AXCFG and so on)
UINT32 RegIndex; /// RegIndex : AB Register Index
UINT32 RegMask; /// RegMask : AB Register Mask
UINT32 RegData; /// RegData : AB Register Data
} AB_TBL_ENTRY;
///
/// AB structure
///
typedef struct {
BOOLEAN AbMsiEnable; ///< ABlink MSI capability
UINT8 ALinkClkGateOff; /// Alink Clock Gate-Off function - 0:disable, 1:enable *KR
UINT8 BLinkClkGateOff; /// Blink Clock Gate-Off function - 0:disable, 1:enable *KR
UINT8 AbClockGating; /// AB Clock Gating - 0:disable, 1:enable *KR
UINT8 GppClockGating; /// GPP Clock Gating - 0:disable, 1:enable
UINT8 UmiL1TimerOverride; /// UMI L1 inactivity timer overwrite value
UINT8 UmiLinkWidth; /// UMI Link Width
UINT8 UmiDynamicSpeedChange; /// UMI Dynamic Speed Change - 0:disable, 1:enable
UINT8 PcieRefClockOverClocking; /// PCIe Ref Clock OverClocking value
UINT8 UmiGppTxDriverStrength; /// UMI GPP TX Driver Strength
BOOLEAN NbSbGen2; /// UMI link Gen2 - 0:Gen1, 1:Gen2
UINT8 PcieOrderRule; /// PCIe Order Rule - 0:disable, 1:enable *KR AB Posted Pass Non-Posted
UINT8 SlowSpeedAbLinkClock; /// Slow Speed AB Link Clock - 0:disable, 1:enable *KR
UINT8 ResetCpuOnSyncFlood; /// Reset Cpu On Sync Flood - 0:disable, 1:enable *KR
BOOLEAN AbDmaMemoryWrtie3264B; /// AB DMA Memory Write 32/64 BYTE Support *KR only
BOOLEAN AbMemoryPowerSaving; /// AB Memory Power Saving *KR only
BOOLEAN SbgDmaMemoryWrtie3264ByteCount; /// SBG DMA Memory Write 32/64 BYTE Count Support *KR only
BOOLEAN SbgMemoryPowerSaving; /// SBG Memory Power Saving *KR only
} FCH_AB;
/**
* PCIE_CAP_ID - PCIe Cap ID
*
*/
#define PCIE_CAP_ID 0x10
///
/// FCH_GPP_PORT_CONFIG - Fch GPP port config structure
///
typedef struct {
BOOLEAN PortPresent; ///< Port connection
/// @par
/// @li <b>0</b> - Port doesn't have slot. No need to train the link
/// @li <b>1</b> - Port connection defined and needs to be trained
///
BOOLEAN PortDetected; ///< Link training status
/// @par
/// @li <b>0</b> - EP not detected
/// @li <b>1</b> - EP detected
///
BOOLEAN PortIsGen2; ///< Port link speed configuration
/// @par
/// @li <b>00</b> - Auto
/// @li <b>01</b> - Forced GEN1
/// @li <b>10</b> - Forced GEN2
/// @li <b>11</b> - Reserved
///
BOOLEAN PortHotPlug; ///< Support hot plug?
/// @par
/// @li <b>0</b> - No support
/// @li <b>1</b> - support
///
UINT8 PortMisc; /// PortMisc - Reserved
} FCH_GPP_PORT_CONFIG;
///
/// GPP structure
///
typedef struct {
FCH_GPP_PORT_CONFIG PortCfg[4]; /// GPP port configuration structure
GPP_LINKMODE GppLinkConfig; ///< GppLinkConfig - PCIE_GPP_Enable[3:0]
/// @li <b>0000</b> - Port ABCD -> 4:0:0:0
/// @li <b>0010</b> - Port ABCD -> 2:2:0:0
/// @li <b>0011</b> - Port ABCD -> 2:1:1:0
/// @li <b>0100</b> - Port ABCD -> 1:1:1:1
///
BOOLEAN GppFunctionEnable; ///< GPP Function - 0:disable, 1:enable
BOOLEAN GppToggleReset; ///< Toggle GPP core reset
UINT8 GppHotPlugGeventNum; ///< Hotplug GEVENT # - valid value 0-31
UINT8 GppFoundGfxDev; ///< Gpp Found Gfx Device
/// @li <b>0</b> - Not found
/// @li <b>1</b> - Found
///
BOOLEAN GppGen2; ///< GPP Gen2 - 0:disable, 1:enable
UINT8 GppGen2Strap; ///< GPP Gen2 Strap - 0:disable, 1:enable, FCH itself uses this
BOOLEAN GppMemWrImprove; ///< GPP Memory Write Improve - 0:disable, 1:enable
BOOLEAN GppUnhidePorts; ///< GPP Unhide Ports - 0:disable, 1:enable
UINT8 GppPortAspm; ///< GppPortAspm - ASPM state for all GPP ports
/// @li <b>01</b> - Disabled
/// @li <b>01</b> - L0s
/// @li <b>10</b> - L1
/// @li <b>11</b> - L0s + L1
///
BOOLEAN GppLaneReversal; ///< GPP Lane Reversal - 0:disable, 1:enable
BOOLEAN GppPhyPllPowerDown; ///< GPP PHY PLL Power Down - 0:disable, 1:enable
BOOLEAN GppDynamicPowerSaving; ///< GPP Dynamic Power Saving - 0:disable, 1:enable
BOOLEAN PcieAer; ///< PcieAer - Advanced Error Report: 0/1-disable/enable
BOOLEAN PcieRas; ///< PCIe RAS - 0:disable, 1:enable
BOOLEAN PcieCompliance; ///< PCIe Compliance - 0:disable, 1:enable
BOOLEAN PcieSoftwareDownGrade; ///< PCIe Software Down Grade
BOOLEAN UmiPhyPllPowerDown; ///< UMI PHY PLL Power Down - 0:disable, 1:enable
BOOLEAN SerialDebugBusEnable; ///< Serial Debug Bus Enable
UINT8 GppHardwareDownGrade; ///< GppHardwareDownGrade - Gpp HW Down Grade function 0:Disable, 1-4: portA-D
UINT8 GppL1ImmediateAck; ///< GppL1ImmediateAck - Gpp L1 Immediate ACK 0: enable, 1: disable
BOOLEAN NewGppAlgorithm; ///< NewGppAlgorithm - New GPP procedure
UINT8 HotPlugPortsStatus; ///< HotPlugPortsStatus - Save Hot-Plug Ports Status
UINT8 FailPortsStatus; ///< FailPortsStatus - Save Failure Ports Status
UINT8 GppPortMinPollingTime; ///< GppPortMinPollingTime - Min. Polling time for Gpp Port Training
} FCH_GPP;
///
/// FCH USB sturcture
///
typedef struct {
BOOLEAN Ohci1Enable; ///< OHCI1 controller enable
BOOLEAN Ohci2Enable; ///< OHCI2 controller enable
BOOLEAN Ohci3Enable; ///< OHCI3 controller enable
BOOLEAN Ohci4Enable; ///< OHCI4 controller enable
BOOLEAN Ehci1Enable; ///< EHCI1 controller enable
BOOLEAN Ehci2Enable; ///< EHCI2 controller enable
BOOLEAN Ehci3Enable; ///< EHCI3 controller enable
BOOLEAN Xhci0Enable; ///< XHCI0 controller enable
BOOLEAN Xhci1Enable; ///< XHCI1 controller enable
BOOLEAN UsbMsiEnable; ///< USB MSI capability
UINT32 OhciSsid; ///< OHCI SSID
UINT32 Ohci4Ssid; ///< OHCI 4 SSID
UINT32 EhciSsid; ///< EHCI SSID
UINT32 XhciSsid; ///< XHCI SSID
BOOLEAN UsbPhyPowerDown; ///< USB PHY Power Down - 0:disable, 1:enable
UINT32 UserDefineXhciRomAddr; ///< XHCI ROM address define by platform BIOS
} FCH_USB;
/// Private: FCH_DATA_BLOCK_RESET
typedef struct _FCH_RESET_DATA_BLOCK {
AMD_CONFIG_PARAMS *StdHeader; ///< Header structure
FCH_RESET_INTERFACE FchReset; ///< Reset interface
UINT8 FastSpeed; ///< SPI Fast Speed - 0:disable, 1:enable
UINT8 WriteSpeed; ///< SPI Write Speed
UINT8 Mode; ///< SPI Mode
/// @li <b>101</b> - Qual-io 1-4-4
/// @li <b>100</b> - Dual-io 1-2-2
/// @li <b>011</b> - Qual-io 1-1-4
/// @li <b>010</b> - Dual-io 1-1-2
/// @li <b>111</b> - FastRead
/// @li <b>110</b> - Normal
///
UINT8 AutoMode; ///< SPI Auto Mode - 0:disable, 1:enable
UINT8 BurstWrite; ///< SPI Burst Write - 0:disable, 1:enable
BOOLEAN Sata6AhciCap; ///< SATA 6 AHCI Capability - TRUE:enable, FALSE:disable
UINT8 Cg2Pll; ///< CG2 PLL - 0:disable, 1:enable
BOOLEAN EcKbd; ///< EC KBD - 0:disable, 1:enable
BOOLEAN LegacyFree; ///< Legacy Free - 0:disable, 1:enable
BOOLEAN SataSetMaxGen2; ///< SATA enable maximum GEN2
UINT8 SataClkMode; ///< SATA reference clock selector and divider
UINT8 SataModeReg; ///< Output: SATAConfig PMIO:0xDA
BOOLEAN SataInternal100Spread; ///< SATA internal 100MHz spread ON/OFF
UINT8 SpiSpeed; ///< SPI NormSpeed: 00-66MHz, 01-33MHz, 10-22MHz, 11-16.5MHz
BOOLEAN EcChannel0; ///< Enable EC channel 0
FCH_GPP Gpp; ///< GPP subsystem
VOID* OemResetProgrammingTablePtr; /// Pointer of ACPI OEM table
} FCH_RESET_DATA_BLOCK;
/// Private: FCH_DATA_BLOCK
typedef struct _FCH_DATA_BLOCK {
AMD_CONFIG_PARAMS *StdHeader; ///< Header structure
FCH_ACPI HwAcpi; ///< ACPI structure
FCH_AB Ab; ///< AB structure
FCH_GPP Gpp; ///< GPP structure
FCH_USB Usb; ///< USB structure
FCH_SATA Sata; ///< SATA structure
FCH_SMBUS Smbus; ///< SMBus structure
FCH_IDE Ide; ///< IDE structure
FCH_AZALIA Azalia; ///< Azalia structure
FCH_SPI Spi; ///< SPI structure
FCH_PCIB Pcib; ///< PCIB structure
FCH_GEC Gec; ///< GEC structure
FCH_SD Sd; ///< SD structure
FCH_HWM Hwm; ///< Hardware Moniter structure
FCH_IR Ir; ///< IR structure
FCH_HPET Hpet; ///< HPET structure
FCH_GCPU Gcpu; ///< GCPU structure
FCH_IMC Imc; ///< IMC structure
FCH_MISC Misc; ///< MISC structure
} FCH_DATA_BLOCK;
#pragma pack (pop)
#endif
|