blob: 2ca9459fc17726d4b3e25a66bbabc0b3b57eb463 [file] [log] [blame]
zbao7d94cf92012-07-02 14:19:14 +08001/* $NoKeywords:$ */
2/**
3 * @file
4 *
5 * AMD AGESA CPU CRAT
6 *
7 * Contains code that declares the AGESA CRAT related APIs
8 *
9 * @xrefitem bom "File Content Label" "Release Content"
10 * @e project: AGESA
11 * @e sub-project: CPU/Feature
12 * @e \$Revision: 63552 $ @e \$Date: 2011-12-26 19:46:05 -0600 (Mon, 26 Dec 2011) $
13 */
14/*
15 ******************************************************************************
16 *
Siyuan Wang641f00c2013-06-08 11:50:55 +080017 * Copyright (c) 2008 - 2012, Advanced Micro Devices, Inc.
18 * All rights reserved.
zbao7d94cf92012-07-02 14:19:14 +080019 *
Siyuan Wang641f00c2013-06-08 11:50:55 +080020 * Redistribution and use in source and binary forms, with or without
21 * modification, are permitted provided that the following conditions are met:
22 * * Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * * Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
27 * * Neither the name of Advanced Micro Devices, Inc. nor the names of
28 * its contributors may be used to endorse or promote products derived
29 * from this software without specific prior written permission.
zbao7d94cf92012-07-02 14:19:14 +080030 *
Siyuan Wang641f00c2013-06-08 11:50:55 +080031 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
32 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34 * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
35 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
38 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
zbao7d94cf92012-07-02 14:19:14 +080041 ******************************************************************************
42 */
43
44#ifndef _CPU_CRAT_H_
45#define _CPU_CRAT_H_
46
47/*----------------------------------------------------------------------------------------
48 * M I X E D (Definitions And Macros / Typedefs, Structures, Enums)
49 *----------------------------------------------------------------------------------------
50 */
51
52/*----------------------------------------------------------------------------------------
53 * D E F I N I T I O N S A N D M A C R O S
54 *----------------------------------------------------------------------------------------
55 */
56
57/**
58 * Make CRAT entry
59 *
60 * @param[in] CratHeaderStructPtr CRAT header pointer
61 * @param[in, out] TableEnd The end of CRAT
62 * @param[in, out] StdHeader Standard Head Pointer
63 *
64 */
65typedef VOID F_MAKE_CRAT_ENTRY (
66 IN CRAT_HEADER *CratHeaderStructPtr,
67 IN OUT UINT8 **TableEnd,
68 IN OUT AMD_CONFIG_PARAMS *StdHeader
69 );
70/// Reference to a Method.
71typedef F_MAKE_CRAT_ENTRY *PF_MAKE_CRAT_ENTRY;
72
73/**
74 * A struct that contains function pointe
75 */
76typedef struct _S_MAKE_CRAT_ENTRY {
77 PF_MAKE_CRAT_ENTRY MakeCratEntry; ///< Function Pointer, which points to the function which makes CRAT entry.
78} S_MAKE_CRAT_ENTRY;
79
80/*----------------------------------------------------------------------------------------
81 * T Y P E D E F S A N D S T R U C T U R E S
82 *----------------------------------------------------------------------------------------
83 */
84
85#endif // _CPU_CRAT_H_