Add the AMD Family10 Agesa code
[coreboot.git] / src / vendorcode / amd / agesa / f10 / Proc / HT / NbCommon / htNbNonCoherent.h
1 /**
2  * @file
3  *
4  *  Northbridge generic non-coherent support routines.
5  *
6  * @xrefitem bom "File Content Label" "Release Content"
7  * @e project:      AGESA
8  * @e sub-project:  HyperTransport
9  * @e \$Revision: 44323 $   @e \$Date: 2010-12-22 01:24:58 -0700 (Wed, 22 Dec 2010) $
10  *
11  */
12 /*
13 *****************************************************************************
14 *
15 * Copyright (c) 2011, Advanced Micro Devices, Inc.
16 * All rights reserved.
17
18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions are met:
20 *     * Redistributions of source code must retain the above copyright
21 *       notice, this list of conditions and the following disclaimer.
22 *     * Redistributions in binary form must reproduce the above copyright
23 *       notice, this list of conditions and the following disclaimer in the
24 *       documentation and/or other materials provided with the distribution.
25 *     * Neither the name of Advanced Micro Devices, Inc. nor the names of 
26 *       its contributors may be used to endorse or promote products derived 
27 *       from this software without specific prior written permission.
28
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
30 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
32 * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
33 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
35 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
36 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
40 * ***************************************************************************
41 *
42 */
43
44 /**
45  * Return the Link to the Southbridge
46  */
47 UINT8
48 ReadSouthbridgeLink (
49   IN       NORTHBRIDGE *Nb
50   );
51
52 /**
53  * Verify that the Link is non-coherent, connected, and ready
54  *
55  */
56 BOOLEAN
57 VerifyLinkIsNonCoherent (
58   IN       UINT8       Node,
59   IN       UINT8       Link,
60   IN       NORTHBRIDGE *Nb
61   );