blob: d6905148ece0214f85de71f6ff552bab5bda5313 [file] [log] [blame]
zbao7d94cf92012-07-02 14:19:14 +08001/* $NoKeywords:$ */
2/**
3 * @file
4 *
5 * Graphics controller BIF straps control services.
6 *
7 *
8 *
9 * @xrefitem bom "File Content Label" "Release Content"
10 * @e project: AGESA
11 * @e sub-project: GNB
12 * @e \$Revision: 63425 $ @e \$Date: 2011-12-22 11:24:10 -0600 (Thu, 22 Dec 2011) $
13 *
14 */
15/*
16*****************************************************************************
17*
Siyuan Wang641f00c2013-06-08 11:50:55 +080018 * Copyright (c) 2008 - 2012, Advanced Micro Devices, Inc.
19 * All rights reserved.
20 *
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions are met:
23 * * Redistributions of source code must retain the above copyright
24 * notice, this list of conditions and the following disclaimer.
25 * * Redistributions in binary form must reproduce the above copyright
26 * notice, this list of conditions and the following disclaimer in the
27 * documentation and/or other materials provided with the distribution.
28 * * Neither the name of Advanced Micro Devices, Inc. nor the names of
29 * its contributors may be used to endorse or promote products derived
30 * from this software without specific prior written permission.
31 *
32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
33 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35 * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
36 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
37 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
39 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
zbao7d94cf92012-07-02 14:19:14 +080042* ***************************************************************************
43*
44*/
45
46
47#ifndef _GNBFUSETABLE_H_
48#define _GNBFUSETABLE_H_
49
50#pragma pack (push, 1)
51
52#define PP_FUSE_MAX_NUM_DPM_STATE 5
53#define PP_FUSE_MAX_NUM_SW_STATE 6
54
55/// Fuse definition structure
56typedef struct {
57 UINT8 PPlayTableRev; ///< PP table revision
58 UINT8 SclkDpmValid[6]; ///< Valid DPM states
59 UINT8 SclkDpmDid[6]; ///< Sclk DPM DID
60 UINT8 SclkDpmVid[6]; ///< Sclk DPM VID
61 UINT8 SclkDpmCac[5]; ///< Sclk DPM Cac
62 UINT8 PolicyFlags[6]; ///< State policy flags
63 UINT8 PolicyLabel[6]; ///< State policy label
64 UINT8 VclkDid[4]; ///< VCLK DID
65 UINT8 DclkDid[4]; ///< DCLK DID
66 UINT8 SclkThermDid; ///< Thermal SCLK
67 UINT8 VclkDclkSel[6]; ///< Vclk/Dclk selector
68 UINT8 LclkDpmValid[4]; ///< Valid Lclk DPM states
69 UINT8 LclkDpmDid[4]; ///< Lclk DPM DID
70 UINT8 LclkDpmVid[4]; ///< Lclk DPM VID
71 UINT8 DisplclkDid[4]; ///< Displclk DID
72 UINT8 PcieGen2Vid; ///< Pcie Gen 2 VID
73 UINT8 MainPllId; ///< Main PLL Id from fuses
74 UINT8 WrCkDid; ///< WRCK SMU clock Divisor
75 UINT8 SclkVid[4]; ///< Sclk VID
76 UINT8 GpuBoostCap; ///< GPU boost cap
77 UINT16 SclkDpmTdpLimit[6]; ///< Sclk DPM TDP limit
78 UINT16 SclkDpmTdpLimitPG; ///< TDP limit PG
79 UINT32 SclkDpmBoostMargin; ///< Boost margin
80 UINT32 SclkDpmThrottleMargin; ///< Throttle margin
81 BOOLEAN VceSateTableSupport; ///< Support VCE in PP table
82 UINT8 VceFlags[4]; ///< VCE Flags
83 UINT8 VceMclk[4]; ///< MCLK for VCE
84 UINT8 VceReqSclkSel[4]; ///< SCLK selector for VCE
85 UINT8 EclkDid[4]; ///< Eclk DID
86} PP_FUSE_ARRAY;
87
88#pragma pack (pop)
89
90#endif
91