3 Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
17 Driver configuration include file
22 #ifndef _SETUP_VARIABLE_H
23 #define _SETUP_VARIABLE_H
26 // ---------------------------------------------------------------------------
28 // Driver Configuration
30 // ---------------------------------------------------------------------------
34 // {EC87D643-EBA4-4bb5-A1E5-3F3E36B20DA9}
36 #define SYSTEM_CONFIGURATION_GUID\
38 0xec87d643, 0xeba4, 0x4bb5, 0xa1, 0xe5, 0x3f, 0x3e, 0x36, 0xb2, 0xd, 0xa9 \
41 #define ROOT_SECURITY_GUID\
43 0xd387d688, 0xeba4, 0x45b5, 0xa1, 0xe5, 0x3f, 0x3e, 0x36, 0xb2, 0xd, 0x37 \
47 // {6936B3BD-4350-46d9-8940-1FA20961AEB1}
49 #define SYSTEM_ROOT_MAIN_GUID\
51 0x6936b3bd, 0x4350, 0x46d9, 0x89, 0x40, 0x1f, 0xa2, 0x9, 0x61, 0xae, 0xb1 \
55 // {21FEE8DB-0D29-477e-B5A9-96EB343BA99C}
57 #define ADDITIONAL_SYSTEM_INFO_GUID\
59 0x21fee8db, 0xd29, 0x477e, 0xb5, 0xa9, 0x96, 0xeb, 0x34, 0x3b, 0xa9, 0x9c \
62 #define SETUP_GUID { 0xEC87D643, 0xEBA4, 0x4BB5, 0xA1, 0xE5, 0x3F, 0x3E, 0x36, 0xB2, 0x0D, 0xA9 }
64 // {1B838190-4625-4ead-ABC9-CD5E6AF18FE0}
65 #define EFI_HII_EXPORT_DATABASE_GUID { 0x1b838190, 0x4625, 0x4ead, 0xab, 0xc9, 0xcd, 0x5e, 0x6a, 0xf1, 0x8f, 0xe0 }
67 #define PASSWORD_MAX_SIZE 20
69 #define MAX_CUSTOM_VID_TABLE_STATES 6
71 // Overclocking Source Defines
73 #define OVERCLOCK_SOURCE_BIOS 0
74 #define OVERCLOCK_SOURCE_OS 1
76 #define PCH_PCIE_MAX_ROOT_PORTS 4
80 // NOTE: When you add anything to this structure,
81 // you MUST add it to the very bottom!!!!
82 // You must make sure the structure size is able to divide by 32!
91 UINT8 FloppyWriteProtect
;
92 UINT8 FloppyWriteProtectLockHide
;
101 UINT8 Serial2LockHide
;
104 UINT8 ParallelLockHide
;
107 UINT8 ParallelModeLockHide
;
110 UINT8 UsbPortsLockHide
;
116 UINT8 UsbLegacyLockHide
;
128 UINT8 NumlockLockHide
;
140 UINT8 PowerStateLockHide
;
143 // Wake on RTC variables
146 UINT8 WakeOnRtcS5LockHide
;
148 UINT8 RTCWakeupDateLockHide
;
149 UINT8 RTCWakeupTimeHour
;
150 UINT8 RTCWakeupHourLockHide
;
151 UINT8 RTCWakeupTimeMinute
;
152 UINT8 RTCWakeupMinuteLockHide
;
153 UINT8 RTCWakeupTimeSecond
;
154 UINT8 RTCWakeupSecondLockHide
;
160 UINT8 WakeOnLanS5LockHide
;
163 UINT8 SpreadSpectrum
;
169 UINT8 BootOrderLockHide
;
172 // Hard Drive Boot Order
174 UINT8 HardDriveBootOrder
[8];
175 UINT8 HardDriveBootOrderLockHide
;
178 // CD Drive Boot Order
180 UINT8 CdDriveBootOrder
[4];
181 UINT8 CdDriveBootOrderLockHide
;
184 // FDD Drive Boot Order
186 UINT8 FddDriveBootOrder
[4];
187 UINT8 FddDriveBootOrderLockHide
;
192 UINT8 DriveBootOrder
[16];
193 UINT8 DriveBootOrderLockHide
;
199 UINT8 BootMenuTypeLockHide
;
202 // Boot from Removable Devices
205 UINT8 BootFloppyLockHide
;
208 // Boot from Optical Devices
211 UINT8 BootCdLockHide
;
217 UINT8 BootNetworkLockHide
;
223 UINT8 BootUsbLockHide
;
226 // USB Zip Emulation Type
228 UINT8 UsbZipEmulation
;
229 UINT8 UsbZipEmulationLockHide
;
232 // USB Devices Boot First in Boot Order
234 UINT8 UsbDevicesBootFirst
;
235 UINT8 UsbDevicesBootFirstLockHide
;
238 // USB Boot Device SETUP Emulation
240 UINT8 UsbSetupDeviceEmulation
;
241 UINT8 UsbSetupDeviceEmulationLockHide
;
244 // BIOS INT13 Emulation for USB Mass Devices
246 UINT8 UsbBIOSINT13DeviceEmulation
;
247 UINT8 UsbBIOSINT13DeviceEmulationLockHide
;
250 // BIOS INT13 Emulation Size for USB Mass Devices
252 UINT16 UsbBIOSINT13DeviceEmulationSize
;
253 UINT8 UsbBIOSINT13DeviceEmulationSizeLockHide
;
256 // Dummy place holder to prevent VFR compiler problem.
258 UINT16 DummyDataForVfrBug
; // Don't change or use.
263 UINT8 LanguageSelect
;
266 // SATA Type (Ide, Ahci, Raid)
269 UINT8 SataTypeLockHide
;
273 // Fixed Disk Boot Sector (Fdbs)
279 // DisplaySetupPrompt
281 UINT8 DisplaySetupPrompt
;
282 UINT8 DisplaySetupPromptLockHide
;
294 UINT8 EventLoggingLockHide
;
300 UINT8 ClearEventsLockHide
;
303 // Expansion Card Text
305 UINT8 ExpansionCardText
;
306 UINT8 ExpansionCardTextLockHide
;
311 UINT8 PrimaryVideoAdaptor
;
312 UINT8 PrimaryVideoAdaptorLockHide
;
317 UINT8 IntruderDetection
;
318 UINT8 IntruderDetectionLockHide
;
323 UINT8 UserPasswordLevel
;
324 UINT8 UserPasswordLevelLockHide
;
327 // Maximum FSB Automatic/Disable
330 UINT8 MaxFsbLockHide
;
333 // Hard Disk Pre-delay
336 UINT8 HddPredelayLockHide
;
342 UINT8 SmartModeLockHide
;
345 // ACPI Suspend State
347 UINT8 AcpiSuspendState
;
348 UINT8 AcpiSuspendStateLockHide
;
354 UINT8 PciLatencyLockHide
;
360 UINT8 FanControlLockHide
;
366 UINT8 CpuFanControlLockHide
;
371 UINT8 LowestFanSpeed
;
372 UINT8 LowestFanSpeedLockHide
;
380 UINT8 CpuidMaxValueLockHide
;
382 UINT8 ExecuteDisableBit
;
383 UINT8 ExecuteDisableBitLockHide
;
386 // EIST or GV3 setup option
388 UINT8 ProcessorEistEnable
;
389 UINT8 ProcessorEistEnableLockHide
;
394 UINT8 ProcessorC1eEnable
;
395 UINT8 ProcessorC1eEnableLockHide
;
398 // Enabling CPU C-States of processor
400 UINT8 ProcessorCcxEnable
;
401 UINT8 ProcessorCcxEnableLockHide
;
404 // Package C-State Limit
407 UINT8 PackageCStateLockHide
;
410 // Enable/Disable NHM C3(ACPI C2) report to OS
413 UINT8 OSC2ReportLockHide
;
416 // Enable/Disable NHM C6(ACPI C3) report to OS
419 UINT8 C6EnableLockHide
;
422 // Enable/Disable NHM C7(ACPI C3) report to OS
425 UINT8 C7EnableLockHide
;
428 // EIST/PSD Function select option
430 UINT8 ProcessorEistPsdFunc
;
431 UINT8 ProcessorEistPsdFuncLockHide
;
735 // Port 80 decode 0/1 - PCI/LPC
737 UINT8 Port80RouteLockHide
;
742 UINT8 EccEventLogging
;
743 UINT8 EccEventLoggingLockHide
;
746 // TPM Enable/Disable
751 // TPM question 0 = Disabled, 1 = Enabled
756 // Secondary SATA Controller question 0 = Disabled, 1 = Enabled
759 UINT8 ExtSataLockHide
;
762 // Mode selection for Secondary SATA Controller (0=IDE, 1=RAID)
765 UINT8 ExtSataModeLockHide
;
768 // LT Technology 0/1 -> Disable/Enable
771 UINT8 LtTechnologyLockHide
;
774 // HPET Support 0/1 -> Disable/Enable
780 // ICH Function Level Reset enable/disable
783 UINT8 FlrCapabilityLockHide
;
787 UINT8 VTdSupportLockHide
;
789 UINT8 InterruptRemap
;
790 UINT8 InterruptRemapLockHide
;
795 UINT8 CoherencySupport
;
796 UINT8 CoherencySupportLockHide
;
801 UINT8 PassThroughDma
;
802 UINT8 PassThroughDmaLockHide
;
807 UINT8 GraphicsDriverMemorySize
;
808 UINT8 GraphicsDriverMemorySizeLockHide
;
812 // Discrete SATA Type (Ide, Raid, Ahci)
815 UINT8 ExtSataMode2LockHide
;
817 UINT8 ProcessorReserve00
;
818 UINT8 ProcessorReserve01
;
821 // IGD Aperture Size question
823 UINT8 IgdApertureSize
;
824 UINT8 IgdApertureSizeLockHide
;
827 // Boot Display Device
829 UINT8 BootDisplayDevice
;
830 UINT8 BootDisplayDeviceLockHide
;
834 // System fan speed duty cycle
837 UINT8 SystemFanDutyLockHide
;
841 // S3 state LED indicator
843 UINT8 S3StateIndicator
;
844 UINT8 S3StateIndicatorLockHide
;
847 // S1 state LED indicator
849 UINT8 S1StateIndicator
;
850 UINT8 S1StateIndicatorLockHide
;
855 UINT8 WakeOnS5Keyboard
;
856 UINT8 WakeOnS5KeyboardLockHide
;
860 // SATA Controller question 0 = Disabled, 1 = Enabled
873 UINT8 NoVideoBeepEnable
;
876 // Integrated Graphics Device
881 // Video Device select order
883 UINT8 VideoSelectOrder
[8];
885 // Flash update sleep delay
886 UINT8 FlashSleepDelay
;
887 UINT8 FlashSleepDelayLockHide
;
890 // Boot Display Device2
892 UINT8 BootDisplayDevice2
;
893 UINT8 BootDisplayDevice2LockHide
;
898 UINT8 EdpInterfaceType
;
899 UINT8 EdpInterfaceTypeLockHide
;
901 UINT8 LvdsInterfaceType
;
902 UINT8 LvdsInterfaceTypeLockHide
;
905 UINT8 ColorDepthLockHide
;
907 UINT8 EdidConfiguration
;
908 UINT8 EdidConfigurationLockHide
;
911 UINT8 MaxInverterPWMLockHide
;
913 UINT8 PreDefinedEdidConfiguration
;
914 UINT8 PreDefinedEdidConfigurationLockHide
;
916 UINT16 ScreenBrightnessResponseTime
;
917 UINT8 ScreenBrightnessResponseTimeLockHide
;
920 UINT8 Serial3LockHide
;
923 UINT8 Serial4LockHide
;
925 UINT8 CurrentSetupProfile
;
926 UINT8 CurrentSetupProfileLockHide
;
929 // FSC system Variable
932 UINT8 CPUFanUsageLockHide
;
933 UINT16 CPUUnderSpeedthreshold
;
934 UINT8 CPUUnderSpeedthresholdLockHide
;
935 UINT8 CPUFanControlMode
;
936 UINT8 CPUFanControlModeLockHide
;
937 UINT16 Voltage12UnderVolts
;
938 UINT8 Voltage12UnderVoltsLockHide
;
939 UINT16 Voltage12OverVolts
;
940 UINT8 Voltage12OverVoltsLockHide
;
941 UINT16 Voltage5UnderVolts
;
942 UINT8 Voltage5UnderVoltsLockHide
;
943 UINT16 Voltage5OverVolts
;
944 UINT8 Voltage5OverVoltsLockHide
;
945 UINT16 Voltage3p3UnderVolts
;
946 UINT8 Voltage3p3UnderVoltsLockHide
;
947 UINT16 Voltage3p3OverVolts
;
948 UINT8 Voltage3p3OverVoltsLockHide
;
949 UINT16 Voltage2p5UnderVolts
;
950 UINT8 Voltage2p5UnderVoltsLockHide
;
951 UINT16 Voltage2p5OverVolts
;
952 UINT8 Voltage2p5OverVoltsLockHide
;
953 UINT16 VoltageVccpUnderVolts
;
954 UINT8 VoltageVccpUnderVoltsLockHide
;
955 UINT16 VoltageVccpOverVolts
;
956 UINT8 VoltageVccpOverVoltsLockHide
;
957 UINT16 Voltage5BackupUnderVolts
;
958 UINT8 Voltage5BackupUnderVoltsLockHide
;
959 UINT16 Voltage5BackupOverVolts
;
960 UINT8 Voltage5BackupOverVoltsLockHide
;
961 UINT16 VS3p3StbyUnderVolt
;
962 UINT8 VS3p3StbyUnderVoltLockHide
;
963 UINT16 VS3p3StbyOverVolt
;
964 UINT8 VS3p3StbyOverVoltLockHide
;
965 UINT8 CPUFanMinDutyCycle
;
966 UINT8 CPUFanMinDutyCycleLockHide
;
967 UINT8 CPUFanMaxDutyCycle
;
968 UINT8 CPUFanMaxDutyCycleLockHide
;
969 UINT8 CPUFanOnDutyCycle
;
970 UINT8 CPUFanOnDutyCycleLockHide
;
972 UINT8 CpuOverTempLockHide
;
973 UINT16 CpuControlTemp
;
974 UINT8 CpuControlTempLockHide
;
976 UINT8 CpuAllOnTempLockHide
;
977 UINT8 CpuResponsiveness
;
978 UINT8 CpuResponsivenessLockHide
;
980 UINT8 CpuDampingLockHide
;
982 UINT8 PchOverTempLockHide
;
983 UINT16 PchControlTemp
;
984 UINT8 PchControlTempLockHide
;
986 UINT8 PchAllOnTempLockHide
;
987 UINT8 PchResponsiveness
;
988 UINT8 PchResponsivenessLockHide
;
990 UINT8 PchDampingLockHide
;
991 UINT16 MemoryOverTemp
;
992 UINT8 MemoryOverTempLockHide
;
993 UINT16 MemoryControlTemp
;
994 UINT8 MemoryControlTempLockHide
;
995 UINT16 MemoryAllOnTemp
;
996 UINT8 MemoryAllOnTempLockHide
;
997 UINT8 MemoryResponsiveness
;
998 UINT8 MemoryResponsivenessLockHide
;
1000 UINT8 MemoryDampingLockHide
;
1002 UINT8 VROverTempLockHide
;
1003 UINT16 VRControlTemp
;
1004 UINT8 VRControlTempLockHide
;
1006 UINT8 VRAllOnTempLockHide
;
1007 UINT8 VRResponsiveness
;
1008 UINT8 VRResponsivenessLockHide
;
1010 UINT8 VRDampingLockHide
;
1012 UINT8 LvdsBrightnessSteps
;
1013 UINT8 LvdsBrightnessStepsLockHide
;
1015 UINT8 EdpDataRateLockHide
;
1016 UINT16 LvdsPowerOnToBacklightEnableDelayTime
;
1017 UINT8 LvdsPowerOnToBacklightEnableDelayTimeLockHide
;
1018 UINT16 LvdsPowerOnDelayTime
;
1019 UINT8 LvdsPowerOnDelayTimeLockHide
;
1020 UINT16 LvdsBacklightOffToPowerDownDelayTime
;
1021 UINT8 LvdsBacklightOffToPowerDownDelayTimeLockHide
;
1022 UINT16 LvdsPowerDownDelayTime
;
1023 UINT8 LvdsPowerDownDelayTimeLockHide
;
1024 UINT16 LvdsPowerCycleDelayTime
;
1025 UINT8 LvdsPowerCycleDelayTimeLockHide
;
1028 UINT8 IgdFlatPanelLockHide
;
1033 UINT8 SwapModeLockHide
;
1035 UINT8 Sata0HotPlugCap
;
1036 UINT8 Sata0HotPlugCapLockHide
;
1037 UINT8 Sata1HotPlugCap
;
1038 UINT8 Sata1HotPlugCapLockHide
;
1041 UINT8 UsbChargingLockHide
;
1048 UINT8 EfiNetworkSupport
;
1051 //Add for PpmPlatformPlicy
1064 UINT8 LegacyUSBBooting
;
1066 UINT8 PwmReserved02
;
1068 // Thermal Policy Values
1070 UINT8 EnableDigitalThermalSensor
;
1071 UINT8 PassiveThermalTripPoint
;
1072 UINT8 PassiveTc1Value
;
1073 UINT8 PassiveTc2Value
;
1074 UINT8 PassiveTspValue
;
1075 UINT8 DisableActiveTripPoints
;
1076 UINT8 CriticalThermalTripPoint
;
1084 UINT8 PcieRootPortIOApic
[4];
1086 UINT8 IffsOnS3RtcWake
;
1087 UINT8 IffsS3WakeTimerMin
;
1088 UINT8 IffsOnS3CritBattWake
;
1089 UINT8 IffsCritBattWakeThreshold
;
1090 UINT8 ScramblerSupport
;
1092 UINT8 SecureBootCustomMode
;
1093 UINT8 SecureBootUserPhysicalPresent
;
1094 UINT8 CoreFreMultipSelect
;
1097 UINT8 IgdLcdIGmchBlc
;
1104 UINT8 MeasuredBootEnable
;
1105 UINT8 UseProductKey
;
1106 //Image Signal Processor PCI Device Configuration
1111 UINT16 UserPassword
[PASSWORD_MAX_SIZE
];
1112 UINT16 AdminPassword
[PASSWORD_MAX_SIZE
];
1124 // LPSS Configuration
1126 UINT8 LpssPciModeEnabled
;
1128 UINT8 LpsseMMCEnabled
;
1129 UINT8 LpssSdioEnabled
;
1130 UINT8 LpssSdcardEnabled
;
1131 UINT8 LpssSdCardSDR25Enabled
;
1132 UINT8 LpssSdCardDDR50Enabled
;
1134 UINT8 LpsseMMC45Enabled
;
1135 UINT8 LpsseMMC45DDR50Enabled
;
1136 UINT8 LpsseMMC45HS200Enabled
;
1137 UINT8 LpsseMMC45RetuneTimerValue
;
1141 UINT8 LpssDma1Enabled
;
1142 UINT8 LpssI2C0Enabled
;
1143 UINT8 LpssI2C1Enabled
;
1144 UINT8 LpssI2C2Enabled
;
1145 UINT8 LpssI2C3Enabled
;
1146 UINT8 LpssI2C4Enabled
;
1147 UINT8 LpssI2C5Enabled
;
1148 UINT8 LpssI2C6Enabled
;
1150 UINT8 LpssDma0Enabled
;
1151 UINT8 LpssPwm0Enabled
;
1152 UINT8 LpssPwm1Enabled
;
1153 UINT8 LpssHsuart0Enabled
;
1154 UINT8 LpssHsuart1Enabled
;
1155 UINT8 LpssSpiEnabled
;
1160 // DVMT5.0 Graphic memory setting
1162 UINT8 IgdDvmt50PreAlloc
;
1163 UINT8 IgdDvmt50TotalAlloc
;
1164 UINT8 IgdTurboEnabled
;
1169 UINT8 UsbAutoMode
; // PCH controller Auto mode
1170 UINT8 UsbXhciSupport
;
1173 UINT8 PchUsb30Streams
;
1175 UINT8 PchUsbPerPortCtl
;
1176 UINT8 PchUsbPort
[8];
1179 UINT8 PchUsbVbusOn
; //OTG VBUS control
1180 UINT8 PchFSAOn
; //FSA control
1181 UINT8 EhciPllCfgEnable
;
1185 UINT8 PcieRootPortSpeed
[PCH_PCIE_MAX_ROOT_PORTS
];
1197 // Azalia Configuration
1200 UINT8 AzaliaVCiEnable
;
1205 UINT8 UartInterface
;
1207 //UINT8 PcuUart2;//for A0
1209 UINT8 EnableClockSpreadSpec
;
1210 UINT8 GraphicReserve00
;
1212 UINT8 GOPBrightnessLevel
; //Gop Brightness level
1219 UINT8 HdmiCodecPortB
;
1220 UINT8 HdmiCodecPortC
;
1221 UINT8 HdmiCodecPortD
;
1261 UINT8 BatteryChargingSolution
; //0-non ULPMC 1-ULPMC
1263 UINT8 CfioPnpSettings
;
1268 UINT8 GraphicReserve02
;
1271 UINT8 PunitBIOSConfig
;
1277 UINT8 GraphicReserve05
;
1278 UINT8 UsbXhciLpmSupport
;
1287 UINT8 DisableCodec262
;
1289 UINT8 PcieDynamicGating
; // Need PMC enable it first from PMC 0x3_12 MCU 318.
1293 //Added flow control item for UART1 and UART2
1294 UINT8 LpssHsuart0FlowControlEnabled
;
1295 UINT8 LpssHsuart1FlowControlEnabled
;
1297 UINT8 SdCardRemovable
; // ACPI reporting MMC/SD media as: removable/non-removable
1298 UINT8 GpioWakeCapability
;
1300 UINT8 LpeAudioReportedByDSDT
;
1302 UINT8 Uart1Int3511Com
; // Report UART1 as COM with _HID INT3511
1303 CHAR16 SystemUuid
[37];
1305 } SYSTEM_CONFIGURATION
;
1308 #ifndef PLATFORM_SETUP_VARIABLE_NAME
1309 #define PLATFORM_SETUP_VARIABLE_NAME L"Setup"
1315 UINT16 UserPassword
[PASSWORD_MAX_SIZE
];
1316 UINT16 AdminPassword
[PASSWORD_MAX_SIZE
];
1317 UINT16 DummyDataForVfrBug
; // Don't change or use
1323 // #defines for Drive Presence
1325 #define EFI_HDD_PRESENT 0x01
1326 #define EFI_HDD_NOT_PRESENT 0x00
1327 #define EFI_CD_PRESENT 0x02
1328 #define EFI_CD_NOT_PRESENT 0x00
1330 #define EFI_HDD_WARNING_ON 0x01
1331 #define EFI_CD_WARNING_ON 0x02
1332 #define EFI_SMART_WARNING_ON 0x04
1333 #define EFI_HDD_WARNING_OFF 0x00
1334 #define EFI_CD_WARNING_OFF 0x00
1335 #define EFI_SMART_WARNING_OFF 0x00
1338 extern EFI_GUID gEfiSetupVariableGuid
;
1341 #define SETUP_DATA SYSTEM_CONFIGURATION
1343 #endif // #ifndef _SETUP_VARIABLE