Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 1 | /* $NoKeywords:$ */ |
| 2 | /** |
| 3 | * @file |
| 4 | * |
| 5 | * Agesa structures and definitions |
| 6 | * |
| 7 | * Contains AMD AGESA core interface |
| 8 | * |
| 9 | * @xrefitem bom "File Content Label" "Release Content" |
| 10 | * @e project: AGESA |
| 11 | * @e sub-project: Include |
| 12 | * @e \$Revision: 85818 $ @e \$Date: 2013-01-11 17:04:21 -0600 (Fri, 11 Jan 2013) $ |
| 13 | */ |
| 14 | /***************************************************************************** |
| 15 | * |
| 16 | * Copyright (c) 2008 - 2013, Advanced Micro Devices, Inc. |
| 17 | * All rights reserved. |
| 18 | * |
| 19 | * Redistribution and use in source and binary forms, with or without |
| 20 | * modification, are permitted provided that the following conditions are met: |
| 21 | * * Redistributions of source code must retain the above copyright |
| 22 | * notice, this list of conditions and the following disclaimer. |
| 23 | * * Redistributions in binary form must reproduce the above copyright |
| 24 | * notice, this list of conditions and the following disclaimer in the |
| 25 | * documentation and/or other materials provided with the distribution. |
| 26 | * * Neither the name of Advanced Micro Devices, Inc. nor the names of |
| 27 | * its contributors may be used to endorse or promote products derived |
| 28 | * from this software without specific prior written permission. |
| 29 | * |
| 30 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 31 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 32 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 33 | * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY |
| 34 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 35 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 36 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 37 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 38 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 39 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 40 | * |
| 41 | ***************************************************************************/ |
| 42 | // TODO This list needs to be pruned of anything that is not API |
| 43 | #include "AGESA.h" |
Aaron Durbin | 49ec3f0 | 2017-12-12 10:01:06 -0700 | [diff] [blame] | 44 | #include <amdblocks/agesawrapper.h> |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 45 | #include "AcpiLib.h" |
| 46 | #include "FchCommonCfg.h" |
| 47 | #include "Fch.h" |
| 48 | #include "FchDef.h" |
| 49 | #include "amdlib.h" |
| 50 | #include "cbfs.h" |
| 51 | #include <console/console.h> |
| 52 | #include <commonlib/loglevel.h> |
| 53 | |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 54 | CONST UINT32 ImageSignature = IMAGE_SIGNATURE; |
| 55 | CONST UINT32 ModuleSignature = MODULE_SIGNATURE; |
Martin Roth | 16995fb | 2017-11-10 20:28:44 -0700 | [diff] [blame] | 56 | CONST CHAR8 ModuleIdentifier[8] = AGESA_ID; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 57 | |
| 58 | /********************************************************************** |
| 59 | * Interface call: AmdCreateStruct |
| 60 | **********************************************************************/ |
| 61 | AGESA_STATUS |
| 62 | AmdCreateStruct ( |
| 63 | IN OUT AMD_INTERFACE_PARAMS *InterfaceParams |
| 64 | ) |
| 65 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 66 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 67 | InterfaceParams->StdHeader.Func = AMD_CREATE_STRUCT; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 68 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 69 | return Dispatcher(InterfaceParams); |
| 70 | } |
| 71 | |
| 72 | /********************************************************************** |
| 73 | * Interface call: AmdReleaseStruct |
| 74 | **********************************************************************/ |
| 75 | AGESA_STATUS |
| 76 | AmdReleaseStruct ( |
| 77 | IN OUT AMD_INTERFACE_PARAMS *InterfaceParams |
| 78 | ) |
| 79 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 80 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 81 | InterfaceParams->StdHeader.Func = AMD_RELEASE_STRUCT; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 82 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 83 | return Dispatcher(InterfaceParams); |
| 84 | } |
| 85 | |
| 86 | /********************************************************************** |
| 87 | * Interface call: AmdInitReset |
| 88 | **********************************************************************/ |
| 89 | AGESA_STATUS |
| 90 | AmdInitReset ( |
| 91 | IN OUT AMD_RESET_PARAMS *ResetParams |
| 92 | ) |
| 93 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 94 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 95 | ResetParams->StdHeader.Func = AMD_INIT_RESET; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 96 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 97 | return Dispatcher(ResetParams); |
| 98 | } |
| 99 | |
| 100 | /********************************************************************** |
| 101 | * Interface call: AmdInitEarly |
| 102 | **********************************************************************/ |
| 103 | AGESA_STATUS |
| 104 | AmdInitEarly ( |
| 105 | IN OUT AMD_EARLY_PARAMS *EarlyParams |
| 106 | ) |
| 107 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 108 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 109 | EarlyParams->StdHeader.Func = AMD_INIT_EARLY; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 110 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 111 | return Dispatcher(EarlyParams); |
| 112 | } |
| 113 | |
| 114 | /********************************************************************** |
| 115 | * Interface call: AmdInitPost |
| 116 | **********************************************************************/ |
| 117 | AGESA_STATUS |
| 118 | AmdInitPost ( |
| 119 | IN OUT AMD_POST_PARAMS *PostParams ///< Amd Cpu init param |
| 120 | ) |
| 121 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 122 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 123 | PostParams->StdHeader.Func = AMD_INIT_POST; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 124 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 125 | return Dispatcher(PostParams); |
| 126 | } |
| 127 | |
| 128 | /********************************************************************** |
| 129 | * Interface call: AmdInitEnv |
| 130 | **********************************************************************/ |
| 131 | AGESA_STATUS |
| 132 | AmdInitEnv ( |
| 133 | IN OUT AMD_ENV_PARAMS *EnvParams |
| 134 | ) |
| 135 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 136 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 137 | EnvParams->StdHeader.Func = AMD_INIT_ENV; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 138 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 139 | return Dispatcher(EnvParams); |
| 140 | } |
| 141 | |
| 142 | /********************************************************************** |
| 143 | * Interface call: AmdInitMid |
| 144 | **********************************************************************/ |
| 145 | AGESA_STATUS |
| 146 | AmdInitMid ( |
| 147 | IN OUT AMD_MID_PARAMS *MidParams |
| 148 | ) |
| 149 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 150 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 151 | MidParams->StdHeader.Func = AMD_INIT_MID; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 152 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 153 | return Dispatcher(MidParams); |
| 154 | } |
| 155 | |
| 156 | /********************************************************************** |
| 157 | * Interface call: AmdInitLate |
| 158 | **********************************************************************/ |
| 159 | AGESA_STATUS |
| 160 | AmdInitLate ( |
| 161 | IN OUT AMD_LATE_PARAMS *LateParams |
| 162 | ) |
| 163 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 164 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 165 | LateParams->StdHeader.Func = AMD_INIT_LATE; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 166 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 167 | return Dispatcher(LateParams); |
| 168 | } |
| 169 | |
| 170 | /********************************************************************** |
| 171 | * Interface call: AmdInitRecovery |
| 172 | **********************************************************************/ |
| 173 | AGESA_STATUS |
| 174 | AmdInitRecovery ( |
| 175 | IN OUT AMD_RECOVERY_PARAMS *RecoveryParams |
| 176 | ) |
| 177 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 178 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 179 | RecoveryParams->StdHeader.Func = AMD_INIT_RECOVERY; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 180 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 181 | return Dispatcher(RecoveryParams); |
| 182 | } |
| 183 | |
| 184 | /********************************************************************** |
| 185 | * Interface call: AmdInitResume |
| 186 | **********************************************************************/ |
| 187 | AGESA_STATUS |
| 188 | AmdInitResume ( |
| 189 | IN AMD_RESUME_PARAMS *ResumeParams |
| 190 | ) |
| 191 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 192 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 193 | ResumeParams->StdHeader.Func = AMD_INIT_RESUME; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 194 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 195 | return Dispatcher(ResumeParams); |
| 196 | } |
| 197 | |
| 198 | /********************************************************************** |
| 199 | * Interface call: AmdS3LateRestore |
| 200 | **********************************************************************/ |
| 201 | AGESA_STATUS |
| 202 | AmdS3LateRestore ( |
| 203 | IN OUT AMD_S3LATE_PARAMS *S3LateParams |
| 204 | ) |
| 205 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 206 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 207 | S3LateParams->StdHeader.Func = AMD_S3LATE_RESTORE; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 208 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 209 | return Dispatcher(S3LateParams); |
| 210 | } |
| 211 | |
| 212 | /********************************************************************** |
| 213 | * Interface call: AmdInitRtb |
| 214 | **********************************************************************/ |
| 215 | AGESA_STATUS |
| 216 | AmdInitRtb ( |
| 217 | IN OUT AMD_RTB_PARAMS *AmdInitRtbParams |
| 218 | ) |
| 219 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 220 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 221 | AmdInitRtbParams->StdHeader.Func = AMD_INIT_RTB; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 222 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 223 | return Dispatcher(AmdInitRtbParams); |
| 224 | } |
| 225 | |
| 226 | /********************************************************************** |
| 227 | * Interface call: AmdLateRunApTask |
| 228 | **********************************************************************/ |
| 229 | AGESA_STATUS |
| 230 | AmdLateRunApTask ( |
| 231 | IN AP_EXE_PARAMS *AmdApExeParams |
| 232 | ) |
| 233 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 234 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 235 | AmdApExeParams->StdHeader.Func = AMD_LATE_RUN_AP_TASK; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 236 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 237 | return Dispatcher(AmdApExeParams); |
| 238 | } |
| 239 | |
| 240 | /********************************************************************** |
| 241 | * Interface service call: AmdGetApicId |
| 242 | **********************************************************************/ |
| 243 | AGESA_STATUS |
| 244 | AmdGetApicId ( |
| 245 | IN OUT AMD_APIC_PARAMS *AmdParamApic |
| 246 | ) |
| 247 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 248 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 249 | AmdParamApic->StdHeader.Func = AMD_GET_APIC_ID; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 250 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 251 | return Dispatcher(AmdParamApic); |
| 252 | } |
| 253 | |
| 254 | /********************************************************************** |
| 255 | * Interface service call: AmdGetPciAddress |
| 256 | **********************************************************************/ |
| 257 | AGESA_STATUS |
| 258 | AmdGetPciAddress ( |
| 259 | IN OUT AMD_GET_PCI_PARAMS *AmdParamGetPci |
| 260 | ) |
| 261 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 262 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 263 | AmdParamGetPci->StdHeader.Func = AMD_GET_PCI_ADDRESS; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 264 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 265 | return Dispatcher(AmdParamGetPci); |
| 266 | } |
| 267 | |
| 268 | /********************************************************************** |
| 269 | * Interface service call: AmdIdentifyCore |
| 270 | **********************************************************************/ |
| 271 | AGESA_STATUS |
| 272 | AmdIdentifyCore ( |
| 273 | IN OUT AMD_IDENTIFY_PARAMS *AmdParamIdentify |
| 274 | ) |
| 275 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 276 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 277 | AmdParamIdentify->StdHeader.Func = AMD_IDENTIFY_CORE; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 278 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 279 | return Dispatcher(AmdParamIdentify); |
| 280 | } |
| 281 | |
| 282 | /********************************************************************** |
| 283 | * Interface service call: AmdReadEventLog |
| 284 | **********************************************************************/ |
| 285 | AGESA_STATUS |
| 286 | AmdReadEventLog ( |
| 287 | IN EVENT_PARAMS *Event |
| 288 | ) |
| 289 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 290 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 291 | Event->StdHeader.Func = AMD_READ_EVENT_LOG; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 292 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 293 | return Dispatcher(Event); |
| 294 | } |
| 295 | |
| 296 | /********************************************************************** |
| 297 | * Interface service call: AmdIdentifyDimm |
| 298 | **********************************************************************/ |
| 299 | AGESA_STATUS |
| 300 | AmdIdentifyDimm ( |
| 301 | IN OUT AMD_IDENTIFY_DIMM *AmdDimmIdentify |
| 302 | ) |
| 303 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 304 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 305 | AmdDimmIdentify->StdHeader.Func = AMD_IDENTIFY_DIMMS; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 306 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 307 | return Dispatcher(AmdDimmIdentify); |
| 308 | } |
| 309 | |
| 310 | AGESA_STATUS |
| 311 | AmdIdsRunApTaskLate ( |
| 312 | IN AP_EXE_PARAMS *AmdApExeParams |
| 313 | ) |
| 314 | { |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 315 | AmdApExeParams->StdHeader.Func = -1; |
| 316 | return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 317 | } |
| 318 | |
| 319 | /********************************************************************** |
| 320 | * Interface service call: AmdGet2DDataEye |
| 321 | **********************************************************************/ |
| 322 | AGESA_STATUS |
| 323 | AmdGet2DDataEye ( |
| 324 | IN OUT AMD_GET_DATAEYE *AmdGetDataEye |
| 325 | ) |
| 326 | { |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 327 | MODULE_ENTRY Dispatcher = agesa_get_dispatcher(); |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 328 | AmdGetDataEye->StdHeader.Func = AMD_GET_2D_DATA_EYE; |
Aaron Durbin | a78319b | 2017-12-08 15:38:59 -0700 | [diff] [blame] | 329 | if (!Dispatcher) return AGESA_UNSUPPORTED; |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 330 | return Dispatcher(AmdGetDataEye); |
| 331 | } |