Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 1 | /* $NoKeywords:$ */ |
| 2 | /** |
| 3 | * @file |
| 4 | * |
| 5 | * IDS Option File |
| 6 | * |
| 7 | * This file is used to switch on/off IDS features. |
| 8 | * |
| 9 | * @xrefitem bom "File Content Label" "Release Content" |
| 10 | * @e project: AGESA |
| 11 | * @e sub-project: Core |
| 12 | * @e \$Revision: 192403 $ @e \$Date: 2012-12-12 15:46:25 -0600 (Wed, 12 Dec 2012) $ |
| 13 | */ |
| 14 | /***************************************************************************** |
| 15 | * |
| 16 | * Copyright (c) 2008 - 2015, 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. |
| 40 | * |
| 41 | ***************************************************************************/ |
Martin Roth | ae01634 | 2017-11-16 22:46:56 -0700 | [diff] [blame^] | 42 | |
| 43 | #include <check_for_wrapper.h> |
| 44 | |
Marc Jones | 9ef6e52 | 2016-09-20 20:16:20 -0600 | [diff] [blame] | 45 | #include "Ids.h" |
| 46 | |
| 47 | #ifndef _OPTION_IDS_H_ |
| 48 | #define _OPTION_IDS_H_ |
| 49 | |
| 50 | /** |
| 51 | * |
| 52 | * This file generates the defaults tables for the Integrated Debug Support |
| 53 | * Module. The documented build options are imported from a user controlled |
| 54 | * file for processing. The build options for the Integrated Debug Support |
| 55 | * Module are listed below: |
| 56 | * |
| 57 | * IDSOPT_IDS_ENABLED |
| 58 | * IDSOPT_ERROR_TRAP_ENABLED |
| 59 | * IDSOPT_CONTROL_ENABLED |
| 60 | * |
| 61 | * Warning: When you enable the IDSOPT_CONTROL_NV_TO_CMOS feature. |
| 62 | * please make the cmos region defined by IDS_OPT_CMOS_REGION_START & |
| 63 | * IDS_OPT_CMOS_REGION_END can be touched between IDS HOOK point |
| 64 | * IDS_CPU_Early_Override and IDS_BEFORE_AP_EARLY_HALT of BSP |
| 65 | * |
| 66 | * IDSOPT_CONTROL_NV_TO_CMOS |
| 67 | * IDS_OPT_CMOS_INDEX_PORT |
| 68 | * IDS_OPT_CMOS_DATA_PORT |
| 69 | * IDS_OPT_CMOS_REGION_START |
| 70 | * IDS_OPT_CMOS_REGION_END |
| 71 | * |
| 72 | * IDSOPT_TRACING_ENABLED |
| 73 | * IDSOPT_TRACING_CONSOLE_HDTOUT |
| 74 | * IDSOPT_TRACING_CONSOLE_SERIALPORT |
| 75 | * IDSOPT_SERIAL_PORT (default 0x3F8) |
| 76 | * IDSOPT_TRACING_CONSOLE_REDIRECT_IO |
| 77 | * IDSOPT_DEBUG_PRINT_IO_PORT (default 0x80) |
| 78 | * IDSOPT_TRACING_CONSOLE_RAM |
| 79 | * IDSOPT_DPRAM_BASE |
| 80 | * IDSOPT_DPRAM_SIZE |
| 81 | * IDSOPT_DPRAM_STOP_LOGGING_WHEN_BUFFER_FULL (default FALSE) |
| 82 | * IDSOPT_CUSTOMIZE_TRACING_SERVICE |
| 83 | * IDSOPT_CUSTOMIZE_TRACING_SERVICE_INIT |
| 84 | * IDSOPT_CUSTOMIZE_TRACING_SERVICE_EXIT |
| 85 | * |
| 86 | * IDSOPT_TRACE_BLD_CFG |
| 87 | * IDSOPT_PERF_ANALYSIS |
| 88 | * IDSOPT_ASSERT_ENABLED |
| 89 | * IDS_DEBUG_PORT |
| 90 | * IDSOPT_CAR_CORRUPTION_CHECK_ENABLED |
| 91 | * IDSOPT_DEBUG_CODE_ENABLED |
| 92 | * IDSOPT_IDT_EXCEPTION_TRAP |
| 93 | * IDSOPT_C_OPTIMIZATION_DISABLED |
| 94 | * |
| 95 | **/ |
| 96 | |
| 97 | |
| 98 | |
| 99 | //#include "Ids.h" |
| 100 | |
| 101 | #define IDSOPT_ERROR_TRAP_ENABLED FALSE |
| 102 | |
| 103 | #ifdef DEBUG |
| 104 | #define IDSOPT_IDS_ENABLED TRUE |
| 105 | //#define IDSOPT_CONTROL_ENABLED FALSE |
| 106 | #define IDSOPT_TRACING_ENABLED TRUE |
| 107 | #define IDSOPT_TRACING_CONSOLE_SERIALPORT TRUE |
| 108 | #ifdef IDS_DEBUG_PRINT_MASK |
| 109 | #undef IDS_DEBUG_PRINT_MASK |
| 110 | #endif |
| 111 | #define IDS_DEBUG_PRINT_MASK (GNB_TRACE_ALL | GFX_MISC | CPU_TRACE_ALL | MEM_STATUS | TOPO_TRACE_ALL | FCH_TRACE_ALL | MAIN_FLOW | IDS_TRACE_DEFAULT | TEST_POINT) |
| 112 | #define IDSOPT_SERIAL_PORT 0x3F8 |
| 113 | #define IDSOPT_HEAP_CHECKING TRUE |
| 114 | #define IDSOPT_TRACE_BLD_CFG TRUE |
| 115 | #define IDSOPT_CAR_CORRUPTION_CHECK_ENABLED FALSE |
| 116 | #define IDSOPT_DEBUG_CODE_ENABLED TRUE |
| 117 | #define IDSOPT_C_OPTIMIZATION_DISABLED TRUE |
| 118 | #else |
| 119 | #define IDSOPT_IDS_ENABLED FALSE |
| 120 | //#define IDSOPT_ERROR_TRAP_ENABLED FALSE |
| 121 | //#define IDSOPT_CONTROL_ENABLED FALSE |
| 122 | #define IDSOPT_TRACING_ENABLED FALSE |
| 123 | #define IDSOPT_TRACING_CONSOLE_SERIALPORT TRUE |
| 124 | #define IDS_DEBUG_PRINT_MASK (0) |
| 125 | #endif |
| 126 | |
| 127 | #endif |