zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 1 | /* $NoKeywords:$ */ |
| 2 | /** |
| 3 | * @file |
| 4 | * |
| 5 | * The initializer for Family 15h Mode 10h-1Fh northbridge support. |
| 6 | * |
| 7 | * @xrefitem bom "File Content Label" "Release Content" |
| 8 | * @e project: AGESA |
| 9 | * @e sub-project: HyperTransport |
| 10 | * @e \$Revision: 63425 $ @e \$Date: 2011-12-22 11:24:10 -0600 (Thu, 22 Dec 2011) $ |
| 11 | * |
| 12 | */ |
| 13 | /* |
| 14 | ***************************************************************************** |
| 15 | * |
Siyuan Wang | 641f00c | 2013-06-08 11:50:55 +0800 | [diff] [blame] | 16 | * Copyright (c) 2008 - 2012, 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. |
zbao | 7d94cf9 | 2012-07-02 14:19:14 +0800 | [diff] [blame] | 40 | * *************************************************************************** |
| 41 | * |
| 42 | */ |
| 43 | |
| 44 | /* |
| 45 | *---------------------------------------------------------------------------- |
| 46 | * MODULES USED |
| 47 | * |
| 48 | *---------------------------------------------------------------------------- |
| 49 | */ |
| 50 | |
| 51 | #include "AGESA.h" |
| 52 | #include "amdlib.h" |
| 53 | #include "OptionsHt.h" |
| 54 | #include "Ids.h" |
| 55 | #include "Topology.h" |
| 56 | #include "htFeat.h" |
| 57 | #include "htNb.h" |
| 58 | #include "CommonReturns.h" |
| 59 | #include "htNbUtilitiesFam15Mod1x.h" |
| 60 | #include "cpuFamRegisters.h" |
| 61 | #include "Filecode.h" |
| 62 | |
| 63 | #define FILECODE PROC_HT_FAM15MOD1X_HTNBFAM15MOD1X_FILECODE |
| 64 | |
| 65 | extern OPTION_HT_CONFIGURATION OptionHtConfiguration; |
| 66 | |
| 67 | /*---------------------------------------------------------------------------- |
| 68 | * DEFINITIONS AND MACROS |
| 69 | * |
| 70 | *---------------------------------------------------------------------------- |
| 71 | */ |
| 72 | |
| 73 | /*---------------------------------------------------------------------------- |
| 74 | * TYPEDEFS AND STRUCTURES |
| 75 | * |
| 76 | *---------------------------------------------------------------------------- |
| 77 | */ |
| 78 | /*---------------------------------------------------------------------------- |
| 79 | * PROTOTYPES OF LOCAL FUNCTIONS |
| 80 | * |
| 81 | *---------------------------------------------------------------------------- |
| 82 | */ |
| 83 | |
| 84 | /*************************************************************************** |
| 85 | *** FAMILY/NORTHBRIDGE SPECIFIC FUNCTIONS *** |
| 86 | ***************************************************************************/ |
| 87 | |
| 88 | |
| 89 | /** |
| 90 | * Initial construction data for no HT Northbridge. |
| 91 | */ |
| 92 | CONST NORTHBRIDGE ROMDATA HtFam15Mod1xNb = |
| 93 | { |
| 94 | 1, |
| 95 | (PF_WRITE_ROUTING_TABLE)CommonVoid, |
| 96 | (PF_WRITE_NODEID)CommonVoid, |
| 97 | (PF_READ_DEFAULT_LINK)CommonReturnZero8, |
| 98 | (PF_ENABLE_ROUTING_TABLES)CommonVoid, |
| 99 | (PF_DISABLE_ROUTING_TABLES)CommonVoid, |
| 100 | (PF_VERIFY_LINK_IS_COHERENT)CommonReturnFalse, |
| 101 | (PF_READ_TOKEN)CommonReturnZero8, |
| 102 | (PF_WRITE_TOKEN)CommonVoid, |
| 103 | (PF_WRITE_FULL_ROUTING_TABLE)CommonVoid, |
| 104 | (PF_IS_ILLEGAL_TYPE_MIX)CommonReturnFalse, |
| 105 | (PF_IS_EXCEEDED_CAPABLE)CommonReturnFalse, |
| 106 | (PF_STOP_LINK)CommonVoid, |
| 107 | (PF_HANDLE_SPECIAL_LINK_CASE)CommonReturnFalse, |
| 108 | (PF_HANDLE_SPECIAL_NODE_CASE)CommonReturnFalse, |
| 109 | (PF_READ_SB_LINK)CommonReturnZero8, |
| 110 | (PF_VERIFY_LINK_IS_NON_COHERENT)CommonReturnFalse, |
| 111 | (PF_SET_CONFIG_ADDR_MAP)CommonVoid, |
| 112 | (PF_NORTH_BRIDGE_FREQ_MASK)CommonReturnZero32, |
| 113 | (PF_GATHER_LINK_FEATURES)CommonVoid, |
| 114 | (PF_SET_LINK_REGANG)CommonVoid, |
| 115 | (PF_SET_LINK_FREQUENCY)CommonVoid, |
| 116 | (PF_SET_LINK_UNITID_CLUMPING)CommonVoid, |
| 117 | (PF_WRITE_TRAFFIC_DISTRIBUTION)CommonVoid, |
| 118 | (PF_WRITE_LINK_PAIR_DISTRIBUTION)CommonVoid, |
| 119 | (PF_WRITE_VICTIM_DISTRIBUTION)CommonVoid, |
| 120 | (PF_BUFFER_OPTIMIZATIONS)CommonVoid, |
| 121 | Fam15Mod1xGetNumCoresOnNode, |
| 122 | Fam15Mod1xSetTotalCores, |
| 123 | Fam15Mod1xGetNodeCount, |
| 124 | (PF_LIMIT_NODES)CommonVoid, |
| 125 | (PF_READ_TRUE_LINK_FAIL_STATUS)CommonReturnFalse, |
| 126 | (PF_GET_NEXT_LINK)CommonReturnZero32, |
| 127 | (PF_GET_PACKAGE_LINK)CommonReturnZero8, |
| 128 | (PF_MAKE_LINK_BASE)CommonReturnZero32, |
| 129 | (PF_GET_MODULE_INFO)CommonVoid, |
| 130 | (PF_POST_MAILBOX)CommonVoid, |
| 131 | (PF_RETRIEVE_MAILBOX)CommonReturnZero32, |
| 132 | (PF_GET_SOCKET)CommonReturnZero8, |
| 133 | (PF_GET_ENABLED_COMPUTE_UNITS)Fam15Mod1xGetEnabledComputeUnits, |
| 134 | (PF_GET_DUALCORE_COMPUTE_UNITS)Fam15Mod1xGetDualcoreComputeUnits, |
| 135 | 0, |
| 136 | 0, |
| 137 | 0, |
| 138 | TRUE, |
| 139 | TRUE, |
| 140 | AMD_FAMILY_TN , |
| 141 | NULL, |
| 142 | 0, |
| 143 | NULL, |
| 144 | (PF_MAKE_KEY)CommonReturnZero64, |
| 145 | NULL |
| 146 | }; |