4 ; * AGESA Family 10h Revision D support routines.
6 ; * @xrefitem bom "File Content Label" "Release Content"
8 ; * @e sub-project: CPU/F10
9 ; * @e \$Revision: 44324 $ @e \$Date: 2010-12-22 02:16:51 -0700 (Wed, 22 Dec 2010) $
11 ;*****************************************************************************
13 ; Copyright (C) 2012 Advanced Micro Devices, Inc.
14 ; All rights reserved.
16 ; Redistribution and use in source and binary forms, with or without
17 ; modification, are permitted provided that the following conditions are met:
18 ; * Redistributions of source code must retain the above copyright
19 ; notice, this list of conditions and the following disclaimer.
20 ; * Redistributions in binary form must reproduce the above copyright
21 ; notice, this list of conditions and the following disclaimer in the
22 ; documentation and/or other materials provided with the distribution.
23 ; * Neither the name of Advanced Micro Devices, Inc. nor the names of
24 ; its contributors may be used to endorse or promote products derived
25 ; from this software without specific prior written permission.
27 ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
28 ; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 ; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
30 ; DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
31 ; DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32 ; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33 ; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
34 ; ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 ; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 ;*****************************************************************************
45 ;===============================================
46 ;===============================================
48 ;== M E M O R Y P R E S E N T S E G M E N T
50 ;===============================================
51 ;===============================================
55 ;======================================================================
56 ; F10RevDProbeFilterCritical: Performs critical sequence for probe
57 ; filter initialization.
60 ; PciAddress Full PCI address of the node to init
61 ; LocalPciRegister Current value of F3x1D4
70 ;======================================================================
71 F10RevDProbeFilterCritical PROC NEAR C PUBLIC USES EAX ECX EDX, PciAddress:DWORD, LocalPciRegister:DWORD
83 mov ecx, LocalPciRegister
90 db 0Fh, 0AEh, 0F0h ; MFENCE
92 mov dx, 0CF8h ; Set Reg Config Space
93 db 0Fh, 0AEh, 0F0h ; MFENCE
96 db 0Fh, 0AEh, 0F0h ; MFENCE
98 mov dl, 0FCh ; Set DX to Pci Config Data
99 mov eax, ecx ;Set config Reg data
100 db 0Fh, 0AEh, 0F0h ; MFENCE
102 out dx, eax ; move data to return position
103 db 0Fh, 0AEh, 0F0h ; MFENCE
111 F10RevDProbeFilterCritical ENDP